Changeset 1335 for qrda/C0Q/trunk/p/C0QUPDT.m
- Timestamp:
- Jan 4, 2012, 4:37:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qrda/C0Q/trunk/p/C0QUPDT.m
r1232 r1335 1 1 C0QUPDT ; GPL - Quality Reporting List Update Routines ;8/29/11 17:05 2 ;;0.1;C0Q;nopatch;noreleasedate;Build 192 ;;0.1;C0Q;nopatch;noreleasedate;Build 23 3 3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. … … 27 27 RLSTFN() Q 810.5 ; FN FOR REMINDER PATIENT LIST FILE 28 28 RLSTPFN() Q 810.53 ; FN FOR REMINDER PATIENT LIST PATIENT SUBFILE 29 C0QPLF() Q 1130580001.301 ; C0Q PATIENT LIST FILE 29 30 C0QALFN() Q 1130580001.311 ; FILE NUMBER FOR C0Q PATIENT LIST PATIENT SUBFILE ; 30 31 ; … … 39 40 N ZI S ZI="" 40 41 N C0QM ; FOR HOLDING THE MEASURES IN THE SET 41 D LIST^DIC($$C0QMMFN,","_MSET_",",".01I") ; GET ALL THE MEASURES 42 I $$GET1^DIQ($$C0QMFN,MSET_",",.05,"I")="Y" D Q ; IS IT LOCKED? 43 . W !,"ERROR MEASURE SET IS LOCKED, EXITING" 44 D LIST^DIC($$C0QMMFN,","_MSET_",",".01I;1.2I;2.2I") ; GET ALL THE MEASURES 42 45 D DELIST("C0QM") 43 46 N ZII S ZII="" 44 47 F S ZII=$O(C0QM(ZII)) Q:ZII="" D ; FOR EACH MEASURE 48 . N C0QNL,C0QDL,C0QFLTN,C0QFLTD 49 . S C0QFLTN=$P(C0QM(ZII),U,3) ;IEN OF NUMERATOR FILTER LIST 50 . S C0QFLTD=$P(C0QM(ZII),U,4) ; IEN OF DENOMINATOR FILTER LIST 45 51 . S ZI=$P(C0QM(ZII),U,1) ; IEN OF THE MEASURE IN THE C0Q QUALITY MEAS FILE 46 52 . S C0QNL=$$GET1^DIQ($$C0QQFN,ZI_",",1,"I") ; NUMERATOR POINTER … … 60 66 . E D ; USE THE REMINDER PACKAGE PATIENT LISTS 61 67 . . S C0QNEW=$NA(^PXRMXP(810.5,C0QNL,30,"B")) ; REMINDER LIST PATIENTS 68 . I C0QFLTN'="" D ; USE A NUMERATOR FILTER LIST 69 . . N ZNEW 70 . . S ZNEW=$NA(^C0Q(301,C0QFLTN,1,"B")) ; B INDEX OF FILTER LIST 71 . . K C0QFLTRD 72 . . D AND^C0QSET("C0QFLTRD",ZNEW,C0QNEW) 73 . . S C0QNEW="C0QFLTRD" 62 74 . N C0QOLD ; REFERENCE FOR OLD PATIENT LIST 63 75 . S C0QOLD=$NA(^C0Q(201,MSET,5,ZII,1,"B")) ; NUMERATOR LIST IN MEASURE SET … … 105 117 . E D ; USE THE REMINDER PACKAGE PATIENT LISTS 106 118 . . S C0QNEW=$NA(^PXRMXP(810.5,C0QDL,30,"B")) ; REMINDER LIST PATIENTS 119 . I C0QFLTD'="" D ; USE A DENOMINATOR FILTER LIST 120 . . N ZNEW 121 . . S ZNEW=$NA(^C0Q(301,C0QFLTD,1,"B")) ; B INDEX OF FILTER LIST 122 . . K C0QFLTRD 123 . . D AND^C0QSET("C0QFLTRD",ZNEW,C0QNEW) 124 . . S C0QNEW="C0QFLTRD" 107 125 . N C0QOLD ; REFERENCE FOR OLD PATIENT LIST 108 126 . S C0QOLD=$NA(^C0Q(201,MSET,5,ZII,3,"B")) ; DENOMINATOR LIST IN MEASURE SET … … 144 162 . I $D(C0QFDA) D UPDIE ; PROCESS 145 163 . N C0QPCT ; PERCENT 146 . I C0QDCNT>0 D ; 147 . . S C0QPCT=$J(100*C0QNCNT/C0QDCNT,0,0) 164 . D ; 165 . . I C0QDCNT>0 D ; 166 . . . S C0QPCT=$J(100*C0QNCNT/C0QDCNT,0,0) 167 . . E S C0QPCT=0 148 168 . . K C0QFDA 149 169 . . S C0QFDA($$C0QMMFN(),ZII_","_MSET_",",3)=C0QPCT ; PERCENT … … 154 174 ; @RTN@(IEN)=INTERNAL VALUE^EXTERNAL VALUE 155 175 ; ADDED A B INDEX @RTN@("B",INTERNAL VALUE,IEN)=EXTERNAL VALUE 156 N ZI,IV,EV,ZDI,ZIEN 176 N ZI,IV,EV,ZDI,ZIEN,FLTN,FLTD 157 177 S ZI="" 158 178 S ZDI=$NA(^TMP("DILIST",$J)) … … 161 181 . S EV=@ZDI@(1,ZI) ;EXTERNAL VALUE 162 182 . S IV=$G(@ZDI@("ID",ZI,.01)) ; INTERNAL VALUE 183 . S FLTN=$G(@ZDI@("ID",ZI,1.2)) ; NUMERATOR FILTER LIST 184 . S FLTD=$G(@ZDI@("ID",ZI,2.2)) ; DENOMINATOR FILTER LIST 163 185 . S ZIEN=@ZDI@(2,ZI) ; IEN 164 . S @RTN@(ZIEN)=IV_"^"_EV 186 . S @RTN@(ZIEN)=IV_"^"_EV_"^"_FLTN_"^"_FLTD 165 187 . ;S @RTN@("B",IV,ZIEN)=EV 166 188 Q
Note:
See TracChangeset
for help on using the changeset viewer.