Changeset 1572 for qrda/C0Q/trunk/p/C0QMU12.m
- Timestamp:
- Oct 14, 2012, 4:06:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qrda/C0Q/trunk/p/C0QMU12.m
r1501 r1572 1 C0QMU12 ;JJOH/ZAG/GPL - Patient Reminder List ; 7/31/12 12:34pm2 ;;1.0; C0Q;;May 21, 2012;Build 631 C0QMU12 ;JJOH/ZAG/GPL - Patient Reminder List ; 10/10/12 11:28am 2 ;;1.0;QUALITY MEASURES;**1**;May 21, 2012;Build 32 3 3 ; 4 4 ;2011 Zach Gonzales<zach@linux.com> - Licensed under the terms of the GNU … … 78 78 K C0QLIST 79 79 S C0QLIST(ZYR_"HasDemographics")="" 80 S C0QLIST(ZYR_"Patient")="" 80 S C0QLIST(ZYR_"Patient")="" ; VEN/SMH - Is this needed? Not used in EP. 81 81 S C0QLIST(ZYR_"HasProblem")="" 82 82 S C0QLIST(ZYR_"HasAllergy")="" 83 83 S C0QLIST(ZYR_"HasMed")="" 84 S C0QLIST(ZYR_"HasERX")="" ; VEN/SMH C0Q*1*5 85 S C0QLIST(ZYR_"HasMedRecon")="" ; VEN/SMH C0Q*1*5 84 86 S C0QLIST(ZYR_"HasVitalSigns")="" 85 87 S C0QLIST(ZYR_"HasMedOrders")="" … … 224 226 D DT^DILF(,"JULY 3,2011",.C0QSDT) ; START DATE 225 227 D DT^DILF(,"T",.C0QEDT) ; END DATE TODAY 228 S C0QEDT=C0QEDT+.999999 ; Move to the end of the day! VEN/SMH C0Q*1*5 226 229 D VITALS^ORQQVI(.VITRSLT,DFN,C0QSDT,C0QEDT) ; CALL FAST VITALS 227 230 I $D(VITRSLT) D ;ZWR VITRSLT B ; … … 347 350 S ZI="" ; BEGIN AT LATEST DATE FOR THIS LOC IN VISIT FILE 348 351 F S ZI=$O(^AUPNVSIT("AHL",ULOC,ZI)) Q:(ZI="")!(ZI>IDTE) D ; FOR EACH DATE 349 . W !,$$FMTE^XLFDT(9999999-ZI) ;B ; 352 . N C0QDATE S C0QDATE=9999999-$P(ZI,".")_"."_$P(ZI,".",2) ; VEN/SMH *5 353 . W !,$$FMTE^XLFDT(C0QDATE) ; VEN/SMH *5 350 354 . I ZI="" Q ; 351 355 . N ZJ S ZJ="" … … 389 393 S DFN="" 390 394 S ZYR=ZYR_"EP-" 395 D INITCLST ; VEN/SMH - Initialize Empty Lists just in case we don't have 396 ; any. C0Q*1*5 391 397 F S DFN=$O(C0QLIST(ZYR_"ALL-PATIENTS",DFN)) Q:DFN="" D ; EACH PATIENT 392 398 . D DEMO^C0QMU122 … … 398 404 . D VITALS 399 405 D FILE ; FILE THE PATIENT LISTS 400 N C0QCIEN 401 S ZI="" 406 ; 407 ; Now process eRx MU measures for these patients 408 ; Check for eRx template and code first; if they exist, run the code 409 I $D(^C0PX("B","GETMEDS6")),$L($T(SOAP^C0PWS2)) DO 410 . N C0QDEBUG S C0QDEBUG=1 ; This causes the code to print out data; 411 . D EN^C0QMUERX($$PATLN^C0QMU12(ZYR_"HasERX")) ; Pass the eRx patient list 412 ; 413 N ZI S ZI="" 402 414 F S ZI=$O(C0QPARM(ZI)) Q:ZI="" D ; 403 . S C0QCIEN=C0QPARM(ZI,"EPMeasurementSet") ; ien of measurement set 404 . D UPDATE^C0QUPDT(.G,C0QCIEN) ; UPDATE THE MU MEASUREMENT SET 415 . N C0QDEBUG S C0QDEBUG=1 ; This causes the code to print out data; 416 . D UPDATE^C0QUPDT(.G,C0QPARM(ZI,"EPMeasurementSet")) ; UPDATE THE MU MEASUREMENT SET 417 . ; VEN/SMH -- Quality Set missing for Outpatient -- adding 418 . D UPDATE^C0QUPDT(.G,C0QPARM(ZI,"EPQualitySet")) ; C0Q*1*5 405 419 Q 406 420 ;
Note:
See TracChangeset
for help on using the changeset viewer.