Changeset 275 for ccr/trunk/p


Ignore:
Timestamp:
Nov 12, 2008, 9:14:51 AM (16 years ago)
Author:
George Lilly
Message:

fix for RESULTTESTFLAG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/GPLLABS.m

    r274 r275  
    4444 I RMIXML="" D  ; INPUT XML NOT PASSED
    4545 . 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
    4748 E  S C0CT=RMIXML ; WE ARE PASSED THE RESULTS PART OF THE TEMPLATE
    4849 I RMIVAR="" D  ; LOCATION OF VARIABLES NOT PASSED
     
    128129 I '$D(DFN) S DFN=1 ; DEFAULT TEST PATIENT
    129130 I '$D(^KVAI(0)) D SETTBL ; INITIALIZE LAB TABLE
    130  I ^KBAI(0)'="V1" D SETTBL ; NEED NEWEST VERSION
     131 I ^KBAI(0)'="V2" D SETTBL ; NEED NEWEST VERSION
    131132 I '$D(^TMP("HLS",$J,1)) D GHL7 ; GET HL7 MGS IF NOT ALREADY DONE
    132133 S C0CTAB=$NA(^KBAI) ; BASE OF OBX TABLE
     
    142143 . . S @C0CLB@(0)=@C0CLB@(0)+1 ; INCREMENT COUNT
    143144 . . S C0CLI=@C0CLB@(0) ; INDEX FOR THIS RESULT
     145 . . M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS
    144146 . . S @C0CLB@(C0CLI,"RESULTOBJECTID")="RESULT_"_C0CLI
    145  . . M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS
    146147 . . S C0CLOBX=0 ; MARK THE BEGINNING OF A NEW SECTION
    147148 . I C0CTYP="OBX" D  ; SPECIAL CASE FOR OBX3
     
    322323 S X("OBX","OBX17")="17^00936^Observation Method"
    323324 M ^KBAI=X ; SET VALUES IN ^KBAI
    324  S ^KBAI(0)="V1"
    325  Q
    326  ;
     325 S ^KBAI(0)="V2"
     326 Q
     327 ;
Note: See TracChangeset for help on using the changeset viewer.