Changeset 600
- Timestamp:
- Nov 5, 2009, 2:53:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CLABS.m
r508 r600 1 C0CALABS 1 C0CALABS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR LAB RESULTS ; 10/01/08 2 2 ;;1.0;C0C;;May 19, 2009; 3 3 ;Copyright 2008,2009 George Lilly, University of Minnesota. … … 19 19 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 ; 21 MAP(MIXML,DFN,MOXML) 21 MAP(MIXML,DFN,MOXML) ;TO MAKE THIS COMPATIBLE WITH OLD CALLING FOR EXTRACT 22 22 ; ASSUMES THAT EXTRACT HAS BEEN RUN AND THE VARIABLES STORED IN MIVAR 23 23 ; MIXML,MIVAR, AND MOXML ARE PASSED BY NAME … … 37 37 Q 38 38 ; 39 RPCMAP(RTN,DFN,RMIVAR,RMIXML) 39 RPCMAP(RTN,DFN,RMIVAR,RMIXML) ; RPC ENTRY POINT FOR MAPPING RESULTS 40 40 ; RTN IS PASSED BY REFERENCE 41 41 ;N C0CT0,C0CT,C0CV ; CCR TEMPLATE, RESULTS SUBTEMPLATE, VARIABLES … … 114 114 Q 115 115 ; 116 EXTRACT(ILXML,DFN,OLXML) 116 EXTRACT(ILXML,DFN,OLXML) ; EXTRACT LABS INTO THE C0CLVAR GLOBAL 117 117 ; 118 118 ; LABXML AND LABOUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED … … 135 135 Q 136 136 ; 137 GHL7 137 GHL7 ; GET HL7 MESSAGE FOR LABS FOR THIS PATIENT 138 138 ; N C0CPTID,C0CSPC,C0CSDT,C0CEDT,C0CR 139 139 ; SET UP FOR LAB API CALL … … 155 155 Q 156 156 ; 157 LIST 157 LIST ; LIST THE HL7 MESSAGE; ALSO, EXTRACT THE RESULT VARIABLES TO C0CLB 158 158 ; 159 159 ; N C0CI,C0CJ,C0COBT,C0CHB,C0CVAR … … 205 205 . . . S XV("RESULTTESTDESCRIPTIONTEXT")=C0CVAR("C2") ; USE PRIMARY TEXT 206 206 . . N C0CZG S C0CZG=XV("RESULTTESTNORMALDESCTEXT") ; 207 . . S XV("RESULTTESTNORMALDESCTEXT")=$$SYMENC^MXMLUTL(C0CZG) ;ESCAPE 207 . . ; mod to remove local XML escaping rely upon MAP^C0CXPATH 208 . . ;S XV("RESULTTESTNORMALDESCTEXT")=$$SYMENC^MXMLUTL(C0CZG) ;ESCAPE 209 . . S XV("RESULTTESTNORMALDESCTEXT")=C0CZG 208 210 . . S C0CZG=XV("RESULTTESTVALUE") 209 . . S XV("RESULTTESTVALUE")=$$SYMENC^MXMLUTL(C0CZG) ;ESCAPE 211 . . ; mod to remove local XML escaping rely upon MAP^C0CXPATH 212 . . ;S XV("RESULTTESTVALUE")=$$SYMENC^MXMLUTL(C0CZG) ;ESCAPE 213 . . S XV("RESULTTESTVALUE")=C0CZG 210 214 . I C0CTYP="OBX" D ; PROCESS TEST RESULTS 211 215 . . I C0CLOBX=0 D ; FIRST TEST RESULT FOR THIS SECTION … … 229 233 ;M ^TMP("C0CRIM","VARS",DFN,"RESULTS")=@C0CLB 230 234 Q 231 LTYP(OSEG,OTYP,OVARA,OC0CQT) 235 LTYP(OSEG,OTYP,OVARA,OC0CQT) ; 232 236 S OTAB=$NA(@C0CTAB@(OTYP)) ; TABLE FOR SEGMENT TYPE 233 237 I '$D(OC0CQT) S C0CQT=0 ; NOT C0CQT IS DEFAULT … … 246 250 . . . I OV'="" W OI_": "_$P(@OTAB@(OI),"^",3),": ",OVAR,": ",OV,! 247 251 Q 248 LOBX 249 Q 250 ; 251 OUT(DFN) 252 LOBX ; 253 Q 254 ; 255 OUT(DFN) ; WRITE OUT A CCR THAT HAS JUST BEEN PROCESSED (FOR TESTING) 252 256 N GA,GF,GD 253 257 S GA=$NA(^TMP("C0CCCR",$J,DFN,"CCR",1)) … … 257 261 Q 258 262 ; 259 SETTBL 263 SETTBL ; 260 264 K X ; CLEAR X 261 265 S X("PID","PID1")="1^00104^Set ID - Patient ID"
Note:
See TracChangeset
for help on using the changeset viewer.