Changeset 277 for ccr


Ignore:
Timestamp:
Nov 12, 2008, 2:09:42 PM (16 years ago)
Author:
George Lilly
Message:

repairs to Lab processing

Location:
ccr/trunk/p
Files:
2 edited

Legend:

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

    r214 r277  
    6767 . . D ORG("ATMP",AIEN,AOID,"ATMP2")
    6868 . ;
     69 . ;W "PROCESSING:",ATYP,!
    6970 . D INSINNER^GPLXPATH(AXML,"ATMP2") ; INSERT INTO ROOT
    70  . K ATYP,AIEN,AOID ; BE SURE TO GET THE NEXT ONE
     71 . K ATYP,AIEN,AOID,ATMP,ATMP2 ; BE SURE TO GET THE NEXT ONE
    7172 ;
    7273 N ACTTMP
     
    136137     S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID
    137138     S @AMAP@("ACTORINFOSYSNAME")=$$SYSNAME^CCRSYS
    138          S @AMAP@("ACTORINFOSYSVER")=$$SYSVER^CCRSYS
     139     S @AMAP@("ACTORINFOSYSVER")=$$SYSVER^CCRSYS
    139140     S @AMAP@("ACTORINFOSYSSOURCEID")=AOID
    140141     D MAP^GPLXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE
     
    174175     S @AMAP@("ACTORMIDDLENAME")=$$MIDDLE^CCRVA200(AIEN)
    175176     S @AMAP@("ACTORFAMILYNAME")=$$FAMILY^CCRVA200(AIEN)
    176          S @AMAP@("ACTORTITLE")=$$TITLE^CCRVA200(AIEN)
    177          S @AMAP@("IDTYPE")=$P($$NPI^CCRVA200(AIEN),U,1)
    178          S @AMAP@("ID")=$P($$NPI^CCRVA200(AIEN),U,2)
    179          S @AMAP@("IDDESC")=$P($$NPI^CCRVA200(AIEN),U,3)
     177     S @AMAP@("ACTORTITLE")=$$TITLE^CCRVA200(AIEN)
     178     S @AMAP@("IDTYPE")=$P($$NPI^CCRVA200(AIEN),U,1)
     179     S @AMAP@("ID")=$P($$NPI^CCRVA200(AIEN),U,2)
     180     S @AMAP@("IDDESC")=$P($$NPI^CCRVA200(AIEN),U,3)
    180181     S @AMAP@("ACTORSPECIALITY")=$$SPEC^CCRVA200(AIEN)
    181182     S @AMAP@("ACTORADDRESSTYPE")=$$ADDTYPE^CCRVA200(AIEN)
  • ccr/trunk/p/GPLLABS.m

    r276 r277  
    5959 . W "DFN:",DFN,!
    6060 . ;D PARY^GPLXPATH("C0CT") ; SECTION TEMPLATE
    61  . D PARY^GPLXPATH("C0CRT") ;REQUEST TEMPLATE (OCR)
    62  . D PARY^GPLXPATH("C0CTT") ;TEST TEMPLATE (OCX)
     61 . ;D PARY^GPLXPATH("C0CRT") ;REQUEST TEMPLATE (OCR)
     62 . ;D PARY^GPLXPATH("C0CTT") ;TEST TEMPLATE (OCX)
    6363 D EXTRACT("C0CT",DFN,) ; FIRST CALL EXTRACT
    6464 I '$D(@C0CV@(0)) D  Q  ; NO VARS THERE
    6565 . S @C0CO@(0)=0 ; PASS BACK NO RESULTS INDICATOR
     66 S RIMVARS=$NA(^TMP("GPLRIM","VARS",DFN,"RESULTS"))
     67 K @RIMVARS
     68 M @RIMVARS=@C0CV ; UPDATE RIMVARS SO THEY STAY IN SYNCH
    6669 N C0CI,C0CJ,C0CMAP,C0CTMAP,C0CTMP
    6770 S C0CIN=@C0CV@(0) ; COUNT OF RESULTS (OBR)
     
    8689 . . . ;
    8790 . . . D PUSHA^GPLXPATH("C0CTO","C0CTMP") ;ADD THE TEST TO BUFFER
    88  . . I 'C0CQT D PARY^GPLXPATH("C0CTO")
     91 . . ; I 'C0CQT D PARY^GPLXPATH("C0CTO")
    8992 . . D INSINNER^GPLXPATH("C0CRTMP","C0CTO","//Results/Result/Test") ;INSERT TST
    9093 . I C0CI=1 D  ; FIRST TIME, COPY INSTEAD OF INSERT
     
    143146 . . S @C0CLB@(0)=@C0CLB@(0)+1 ; INCREMENT COUNT
    144147 . . S C0CLI=@C0CLB@(0) ; INDEX FOR THIS RESULT
    145  . . M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS
    146  . . S @C0CLB@(C0CLI,"RESULTOBJECTID")="RESULT_"_C0CLI
     148 . . ;M @C0CLB@(C0CLI)=C0CVAR ; PERSIST THE OBR VARS
     149 . . S XV("RESULTOBJECTID")="RESULT_"_C0CLI
     150 . . S C0CX1=XV("RESULTSOURCEACTORID") ; SOURCE FROM OBR
     151 . . S XV("RESULTSOURCEACTORID")="ACTORPROVIDER_"_$P($P(C0CX1,"^",1),"-",1)
     152 . . S C0CX1=XV("RESULTASSESSMENTDATETIME") ;DATE TIME IN HL7 FORMAT
     153 . . S C0CX2=$$HL7TFM^XLFDT(C0CX1,"L") ;FM DT LOCAL
     154 . . S XV("RESULTASSESSMENTDATETIME")=$$FMDTOUTC^CCRUTIL(C0CX2,"DT") ;UTC TIME
     155 . . M @C0CLB@(C0CLI)=XV ; PERSIST THE OBR VARS
    147156 . . S C0CLOBX=0 ; MARK THE BEGINNING OF A NEW SECTION
    148157 . I C0CTYP="OBX" D  ; SPECIAL CASE FOR OBX3
     
    171180 . . S @C0CLB2@(0)=C0CLOBX ; STORE THE TEST COUNT
    172181 . . S XV("RESULTTESTOBJECTID")="RESULTTEST_"_C0CLI_"_"_C0CLOBX
    173  . . I 'C0CQT ZWR XV
     182 . . S C0CX1=XV("RESULTTESTSOURCEACTORID") ; TEST SOURCE
     183 . . S C0CX2=$P($P(C0CX1,"^",1),"-",1) ; PULL OUT STATION NUMBER
     184 . . S XV("RESULTTESTSOURCEACTORID")="ACTORORGANIZATION_"_C0CX2
     185 . . S XV("RESULTTESTNORMALSOURCEACTORID")=XV("RESULTTESTSOURCEACTORID")
     186 . . S C0CX1=XV("RESULTTESTDATETIME") ;DATE TIME IN HL7 FORMAT
     187 . . S C0CX2=$$HL7TFM^XLFDT(C0CX1,"L") ;FM DT LOCAL
     188 . . S XV("RESULTTESTDATETIME")=$$FMDTOUTC^CCRUTIL(C0CX2,"DT") ;UTC TIME
     189 . . ; I 'C0CQT ZWR XV
    174190 . . M @C0CLB2@(C0CLOBX)=XV ; PERSIST THE TEST RESULT VARIABLES
    175191 . I 'C0CQT D  ;
Note: See TracChangeset for help on using the changeset viewer.