Changeset 404
- Timestamp:
- Mar 16, 2009, 6:08:55 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CEWD1.m
r393 r404 1 1 C0CEWD1 ; CCDCCR/GPL - CCR FILEMAN utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 33 33 ;s ok=$$gtmImportFile^%zewdHTMLParser(zfilepath) 34 34 s ok=$$LOAD(zfilepath) ;load the XML file to the EWD global 35 s ok=$$parseDocument^%zewdHTMLParser("DerekDOM",0) 35 s ok=$$parseDocument^%zewdHTMLParser("DerekDOM",0) 36 36 ;s ok=$$parseXMLFile^%zewdAPI(zfilepath,"fourthDOM") 37 37 w ok,! … … 39 39 ; 40 40 LOAD(filepath) ; load an xml file into the EWD global for DOM processing 41 ; need to call s error=$$parseDocument^%zewdHTMLParser(docName,isHTML) 41 ; need to call s error=$$parseDocument^%zewdHTMLParser(docName,isHTML) 42 42 ; after to process it to the DOM - isHTML=0 for XML files 43 43 n i -
ccr/trunk/p/C0CFM1.m
r364 r404 1 1 C0CFM1 ; CCDCCR/GPL - CCR FILEMAN utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 56 56 S ZSRC=1 ; CCR SOURCE IS ASSUMED TO BE THIS EHR, WHICH IS ALWAYS SOURCE 1 57 57 ; PUT THIS IN PARAMETERS - SO SOURCE NUMBER FOR PROCESSING IN CONFIGURABLE 58 N ZF,ZFV S ZF=171.201 S ZFV=171.2012 58 N ZF,ZFV S ZF=171.201 S ZFV=171.2012 59 59 S ZSUBF=171.20122 ;FILE AND SUBFILE NUMBERS 60 60 N ZSFV S ZSFV=171.201221 ; SUBFILE VARIABLE FILE NUMBER … … 94 94 ; 95 95 VARPTR(ZVAR,ZTYP) ;EXTRINSIC WHICH RETURNS THE POINTER TO ZVAR IN THE 96 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 96 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 97 97 ; THE CCR DICTIONARY IF IT IS NOT THERE. ZTYP IS REQUIRED FOR LAYGO 98 98 ; … … 114 114 . . W "ADDED ",ZVAR," TO CCR DICTIONARY, IEN:",ZVARN,! 115 115 Q ZVARN 116 ; 116 ; 117 117 BLDTYPS ; ROUTINE TO POPULATE THE CCR NODE TYPES FILE (^C0CDIC(170.101,) 118 118 ; THE CCR DICTIONARY (^C0CDIC(170, ) HAS MOST OF WHAT'S NEEDED 119 ; 119 ; 120 120 N C0CDIC,C0CNODE ; 121 121 S C0CDIC=$$FILEREF^C0CRNF(170) ; CLOSED FILE REFERENCE TO THE CCR DICTIONARY … … 135 135 . . W "SECTION ",C0CI," VAR ",C0CZX 136 136 . . S C0CV=$O(^C0CDIC(170.101,"B",C0CI,"")) 137 . . W " TYPE: ",C0CV,! 137 . . W " TYPE: ",C0CV,! 138 138 . . D SETFDA("SECTION",C0CV) 139 139 . . ;ZWR C0CFDA -
ccr/trunk/p/C0CFM2.m
r370 r404 1 1 C0CFM2 ; CCDCCR/GPL - CCR FILEMAN utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 20 20 W "This is the CCR FILEMAN Utility Library ",! 21 21 ; THIS SET OF ROUTINES USE CCR E2 (^C0CE(, FILE 171.101) INSTEAD OF 22 ; CCR ELEMENTS (^C0C(179.201, 23 ; E2 IS A SIMPLIFICATION OF CCR ELEMENTS WHERE SUB-ELEMENTS ARE 22 ; CCR ELEMENTS (^C0C(179.201, 23 ; E2 IS A SIMPLIFICATION OF CCR ELEMENTS WHERE SUB-ELEMENTS ARE 24 24 ; AT THE TOP LEVEL. OCCURANCE, THE 4TH PART OF THE KEY IS NOW FREE TEXT 25 25 ; AND HAS THE FORM X;Y FOR SUB-ELEMENTS … … 104 104 N ZTYPN S ZTYPN=$O(^C0CDIC(170.101,"B",ZTYPE,"")) ; FIND THE ELE TYPE 105 105 S C0CFDA(C0CFTYP,"?+1,"_ZSRC_","_PATN_",",.01)=ZTYPN 106 D UPDIE ; ADD THE ELEMENT TYPE 106 D UPDIE ; ADD THE ELEMENT TYPE 107 107 S ZTYP=$O(^C0CE(PATN,1,ZSRC,1,"B",ZTYPN,"")) ; IEN OF ELEMENT TYPE 108 108 S C0CFDA(C0CFOCC,"?+1,"_ZTYP_","_ZSRC_","_PATN_",",.01)=" "_ZOCC ; STRING OCC 109 ; OCC IS PRECEDED BY " " TO FORCE STRING STORAGE AND PRESERVE 109 ; OCC IS PRECEDED BY " " TO FORCE STRING STORAGE AND PRESERVE 110 110 ; STRING COLLATION ON THE INDEX 111 111 D UPDIE ; ADD THE OCCURANCE … … 134 134 . . ;S ZZVALS=$NA(@ZZVALS@(ZT)) ; PAST MULTIPLE TYPE INDICATOR 135 135 . . ;W "MULTIPLE:",ZZVALS,! 136 . . ;B 136 . . ;B 137 137 . . ;F S ZZC0CI=$O(@ZZVALS@(ZZC0CI)) Q:ZZC0CI="" D ; EACH MULTIPLE 138 138 . . ;. S ZZCNT=ZZCNT+1 ;INCREMENT COUNT … … 154 154 K C0CFDA 155 155 Q 156 ; 156 ; 157 157 PUTELSOLD(DFN,ZTYPE,ZOCC,ZVALS) ; PUT CCR VALUES INTO THE CCR ELEMENTS FILE 158 158 ; 171.101, ^C0CE DFN IS THE PATIENT IEN PASSED BY VALUE … … 165 165 S ZSRC=1 ; CCR SOURCE IS ASSUMED TO BE THIS EHR, WHICH IS ALWAYS SOURCE 1 166 166 ; PUT THIS IN PARAMETERS - SO SOURCE NUMBER FOR PROCESSING IN CONFIGURABLE 167 N ZF,ZFV S ZF=171.101 S ZFV=171.1011 167 N ZF,ZFV S ZF=171.101 S ZFV=171.1011 168 168 ;S ZSUBF=171.20122 ;FILE AND SUBFILE NUMBERS 169 169 ;N ZSFV S ZSFV=171.201221 ; SUBFILE VARIABLE FILE NUMBER … … 210 210 ; 211 211 VARPTR(ZVAR,ZTYP) ;EXTRINSIC WHICH RETURNS THE POINTER TO ZVAR IN THE 212 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 212 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 213 213 ; THE CCR DICTIONARY IF IT IS NOT THERE. ZTYP IS REQUIRED FOR LAYGO 214 214 ; … … 230 230 . . W "ADDED ",ZVAR," TO CCR DICTIONARY, IEN:",ZVARN,! 231 231 Q ZVARN 232 ; 232 ; 233 233 BLDTYPS ; ROUTINE TO POPULATE THE CCR NODE TYPES FILE (^C0CDIC(170.101,) 234 234 ; THE CCR DICTIONARY (^C0CDIC(170, ) HAS MOST OF WHAT'S NEEDED 235 ; 235 ; 236 236 N C0CDIC,C0CNODE ; 237 237 S C0CDIC=$$FILEREF^C0CRNF(170) ; CLOSED FILE REFERENCE TO THE CCR DICTIONARY … … 251 251 . . W "SECTION ",C0CI," VAR ",C0CZX 252 252 . . S C0CV=$O(^C0CDIC(170.101,"B",C0CI,"")) 253 . . W " TYPE: ",C0CV,! 253 . . W " TYPE: ",C0CV,! 254 254 . . D SETFDA("SECTION",C0CV) 255 255 . . ;ZWR C0CFDA -
ccr/trunk/p/C0CFM3.m
r388 r404 1 1 C0CFM3 ; CCDCCR/GPL - CCR FILEMAN utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 20 20 W "This is the CCR FILEMAN Utility Library ",! 21 21 ; THIS SET OF ROUTINES USE CCR E2 (^C0CE(, FILE 171.101) INSTEAD OF 22 ; CCR ELEMENTS (^C0C(179.201, 23 ; E2 IS A SIMPLIFICATION OF CCR ELEMENTS WHERE SUB-ELEMENTS ARE 22 ; CCR ELEMENTS (^C0C(179.201, 23 ; E2 IS A SIMPLIFICATION OF CCR ELEMENTS WHERE SUB-ELEMENTS ARE 24 24 ; AT THE TOP LEVEL. OCCURANCE, THE 4TH PART OF THE KEY IS NOW FREE TEXT 25 25 ; AND HAS THE FORM X;Y FOR SUB-ELEMENTS … … 121 121 . . ;S ZZVALS=$NA(@ZZVALS@(ZT)) ; PAST MULTIPLE TYPE INDICATOR 122 122 . . ;W "MULTIPLE:",ZZVALS,! 123 . . ;B 123 . . ;B 124 124 . . ;F S ZZC0CI=$O(@ZZVALS@(ZZC0CI)) Q:ZZC0CI="" D ; EACH MULTIPLE 125 125 . . ;. S ZZCNT=ZZCNT+1 ;INCREMENT COUNT … … 141 141 K C0CFDA 142 142 Q 143 ; 143 ; 144 144 PUTELSOLD(DFN,ZTYPE,ZOCC,ZVALS) ; PUT CCR VALUES INTO THE CCR ELEMENTS FILE 145 145 ; 171.101, ^C0CE DFN IS THE PATIENT IEN PASSED BY VALUE … … 152 152 S ZSRC=1 ; CCR SOURCE IS ASSUMED TO BE THIS EHR, WHICH IS ALWAYS SOURCE 1 153 153 ; PUT THIS IN PARAMETERS - SO SOURCE NUMBER FOR PROCESSING IN CONFIGURABLE 154 N ZF,ZFV S ZF=171.101 S ZFV=171.1011 154 N ZF,ZFV S ZF=171.101 S ZFV=171.1011 155 155 ;S ZSUBF=171.20122 ;FILE AND SUBFILE NUMBERS 156 156 ;N ZSFV S ZSFV=171.201221 ; SUBFILE VARIABLE FILE NUMBER … … 197 197 ; 198 198 VARPTR(ZVAR,ZTYP) ;EXTRINSIC WHICH RETURNS THE POINTER TO ZVAR IN THE 199 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 199 ; CCR DICTIONARY. IT IS LAYGO, AS IT WILL ADD THE VARIABLE TO 200 200 ; THE CCR DICTIONARY IF IT IS NOT THERE. ZTYP IS REQUIRED FOR LAYGO 201 201 ; … … 217 217 . . W "ADDED ",ZVAR," TO CCR DICTIONARY, IEN:",ZVARN,! 218 218 Q ZVARN 219 ; 219 ; 220 220 BLDTYPS ; ROUTINE TO POPULATE THE CCR NODE TYPES FILE (^C0CDIC(170.101,) 221 221 ; THE CCR DICTIONARY (^C0CDIC(170, ) HAS MOST OF WHAT'S NEEDED 222 ; 222 ; 223 223 N C0CDIC,C0CNODE ; 224 224 S C0CDIC=$$FILEREF^C0CRNF(170) ; CLOSED FILE REFERENCE TO THE CCR DICTIONARY … … 238 238 . . W "SECTION ",C0CI," VAR ",C0CZX 239 239 . . S C0CV=$O(^C0CDIC(170.101,"B",C0CI,"")) 240 . . W " TYPE: ",C0CV,! 240 . . W " TYPE: ",C0CV,! 241 241 . . D SETFDA("SECTION",C0CV) 242 242 . . ;ZWR C0CFDA -
ccr/trunk/p/C0CRNF.m
r351 r404 1 1 C0CRNF ; CCDCCR/GPL - Reference Name Format (RNF) utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 99 99 . . . S GIEN=$QS(ZG,4) ; PULL OUT THE IEN 100 100 . . E S GIEN="" ; NOT FOUND IN INDEX 101 . E S GIEN="" ; 101 . E S GIEN="" ; 102 102 ;W "IEN: ",GIEN,! 103 103 ;N C0CTMP,C0CI,C0CJ,C0CREF,C0CNAME … … 163 163 . . . S GIEN=$QS(ZG,4) ; PULL OUT THE IEN 164 164 . . E S GIEN="" ; NOT FOUND IN INDEX 165 . E S GIEN="" ; 165 . E S GIEN="" ; 166 166 ;W "IEN: ",GIEN,! 167 167 ;N C0CTMP,C0CI,C0CJ,C0CREF,C0CNAME -
ccr/trunk/p/C0CRPMS.m
r396 r404 1 C0CRPMS 1 C0CRPMS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR RPMS ;1/14/09 14:33 2 2 ;;0.1;CCDCCR;;JUL 16,2008;Build 7 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2008 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 37 37 F S G=$O(^AUPNVSIT("AA",C0CDFN,G)) Q:(G="")!(GN>C0CCNT) D ; 38 38 . S GN=GN+1 39 . W $$FMDTOUTC^C0CUTIL(9999999-G),! 39 . W $$FMDTOUTC^C0CUTIL(9999999-G),! 40 40 Q 41 41 ; 42 VISITS2(C0CDFN,C0CCNT) ;SECOND VERSION USING NEXTV 42 VISITS2(C0CDFN,C0CCNT) ;SECOND VERSION USING NEXTV 43 43 ; 44 44 N C0CG,GN … … 55 55 ; RECENT VISIT 56 56 N G 57 S G=C0CVDT 57 S G=C0CVDT 58 58 I G'="" S G=9999999-C0CVDT ;INVERT FOR INDEX 59 59 S G=$O(^AUPNVSIT("AA",C0CDFN,G)) -
ccr/trunk/p/C0CRXN.m
r309 r404 1 1 C0CRXN ; CCDCCR/GPL - CCR RXN utilities; 12/6/08 2 2 ;;0.1;CCDCCR;nopatch;noreleasedate 3 ;Copyright 200 8 WorldVistA. Licensed under the terms of the GNU3 ;Copyright 2009 George Lilly. Licensed under the terms of the GNU 4 4 ;General Public License See attached copy of the License. 5 5 ; … … 135 135 . . D SETFDA("VAMAP","N") ;MARK AS MISSING FROM VA MAPPING FILE 136 136 . ; NATIONAL DRUG FILE TESTS 137 . I ($$ZVALUE("VUID","C0CD")=C0CZX)!($$ZVALUE("VUID","C0CE")=C0CZX) D ; 137 . I ($$ZVALUE("VUID","C0CD")=C0CZX)!($$ZVALUE("VUID","C0CE")=C0CZX) D ; 138 138 . . ;FOUND IN NATIONAL DRUG FILE OR DRUG INGREDIENT FILE 139 139 . . S NDFVCNT=NDFVCNT+1 ;INCREMENT VUID FOUND COUNT
Note:
See TracChangeset
for help on using the changeset viewer.