- Timestamp:
- Nov 12, 2008, 9:14:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLLABS.m
r274 r275 44 44 I RMIXML="" D ; INPUT XML NOT PASSED 45 45 . D LOAD^GPLCCR0("C0CT0") ; LOAD ENTIRE CCR TEMPLATE 46 . D QUERY^GPLXPATH("C0CT0","//ContinuityOfCareRecord/Body/Results","C0CT") 46 . D QUERY^GPLXPATH("C0CT0","//ContinuityOfCareRecord/Body/Results","C0CT0R") 47 . S C0CT="C0CT0R" ; NAME OF EXTRACTED RESULTS TEMPLATE 47 48 E S C0CT=RMIXML ; WE ARE PASSED THE RESULTS PART OF THE TEMPLATE 48 49 I RMIVAR="" D ; LOCATION OF VARIABLES NOT PASSED … … 128 129 I '$D(DFN) S DFN=1 ; DEFAULT TEST PATIENT 129 130 I '$D(^KVAI(0)) D SETTBL ; INITIALIZE LAB TABLE 130 I ^KBAI(0)'="V 1" D SETTBL ; NEED NEWEST VERSION131 I ^KBAI(0)'="V2" D SETTBL ; NEED NEWEST VERSION 131 132 I '$D(^TMP("HLS",$J,1)) D GHL7 ; GET HL7 MGS IF NOT ALREADY DONE 132 133 S C0CTAB=$NA(^KBAI) ; BASE OF OBX TABLE … … 142 143 . . S @C0CLB@(0)=@C0CLB@(0)+1 ; INCREMENT COUNT 143 144 . . S C0CLI=@C0CLB@(0) ; INDEX FOR THIS RESULT 145 . . M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS 144 146 . . S @C0CLB@(C0CLI,"RESULTOBJECTID")="RESULT_"_C0CLI 145 . . M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS146 147 . . S C0CLOBX=0 ; MARK THE BEGINNING OF A NEW SECTION 147 148 . I C0CTYP="OBX" D ; SPECIAL CASE FOR OBX3 … … 322 323 S X("OBX","OBX17")="17^00936^Observation Method" 323 324 M ^KBAI=X ; SET VALUES IN ^KBAI 324 S ^KBAI(0)="V 1"325 Q 326 ; 325 S ^KBAI(0)="V2" 326 Q 327 ;
Note:
See TracChangeset
for help on using the changeset viewer.