- Timestamp:
- Nov 12, 2008, 2:09:42 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLACTOR.m
r214 r277 67 67 . . D ORG("ATMP",AIEN,AOID,"ATMP2") 68 68 . ; 69 . ;W "PROCESSING:",ATYP,! 69 70 . D INSINNER^GPLXPATH(AXML,"ATMP2") ; INSERT INTO ROOT 70 . K ATYP,AIEN,AOID ; BE SURE TO GET THE NEXT ONE71 . K ATYP,AIEN,AOID,ATMP,ATMP2 ; BE SURE TO GET THE NEXT ONE 71 72 ; 72 73 N ACTTMP … … 136 137 S @AMAP@("ACTOROBJECTID")=AOID ;ACTOR OBJECT ID 137 138 S @AMAP@("ACTORINFOSYSNAME")=$$SYSNAME^CCRSYS 138 139 S @AMAP@("ACTORINFOSYSVER")=$$SYSVER^CCRSYS 139 140 S @AMAP@("ACTORINFOSYSSOURCEID")=AOID 140 141 D MAP^GPLXPATH(INXML,AMAP,OUTXML) ; MAP THE VARIABLE … … 174 175 S @AMAP@("ACTORMIDDLENAME")=$$MIDDLE^CCRVA200(AIEN) 175 176 S @AMAP@("ACTORFAMILYNAME")=$$FAMILY^CCRVA200(AIEN) 176 177 178 179 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) 180 181 S @AMAP@("ACTORSPECIALITY")=$$SPEC^CCRVA200(AIEN) 181 182 S @AMAP@("ACTORADDRESSTYPE")=$$ADDTYPE^CCRVA200(AIEN) -
ccr/trunk/p/GPLLABS.m
r276 r277 59 59 . W "DFN:",DFN,! 60 60 . ;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) 63 63 D EXTRACT("C0CT",DFN,) ; FIRST CALL EXTRACT 64 64 I '$D(@C0CV@(0)) D Q ; NO VARS THERE 65 65 . 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 66 69 N C0CI,C0CJ,C0CMAP,C0CTMAP,C0CTMP 67 70 S C0CIN=@C0CV@(0) ; COUNT OF RESULTS (OBR) … … 86 89 . . . ; 87 90 . . . D PUSHA^GPLXPATH("C0CTO","C0CTMP") ;ADD THE TEST TO BUFFER 88 . . I 'C0CQT D PARY^GPLXPATH("C0CTO")91 . . ; I 'C0CQT D PARY^GPLXPATH("C0CTO") 89 92 . . D INSINNER^GPLXPATH("C0CRTMP","C0CTO","//Results/Result/Test") ;INSERT TST 90 93 . I C0CI=1 D ; FIRST TIME, COPY INSTEAD OF INSERT … … 143 146 . . S @C0CLB@(0)=@C0CLB@(0)+1 ; INCREMENT COUNT 144 147 . . 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 147 156 . . S C0CLOBX=0 ; MARK THE BEGINNING OF A NEW SECTION 148 157 . I C0CTYP="OBX" D ; SPECIAL CASE FOR OBX3 … … 171 180 . . S @C0CLB2@(0)=C0CLOBX ; STORE THE TEST COUNT 172 181 . . 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 174 190 . . M @C0CLB2@(C0CLOBX)=XV ; PERSIST THE TEST RESULT VARIABLES 175 191 . I 'C0CQT D ;
Note:
See TracChangeset
for help on using the changeset viewer.