- Timestamp:
- Sep 22, 2008, 12:25:53 AM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS.m
r164 r165 21 21 Q 22 22 ; 23 EXTRACT( INXML,DFN,OUTXML) ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE23 EXTRACT(MINXML,DFN,OUTXML) ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE 24 24 ; 25 25 ; INXML AND OUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED … … 35 35 ; http://www.va.gov/vdl/documents/Clinical/Pharm-Outpatient_Pharmacy/phar_1_api_r0807.pdf 36 36 ; Output of API is ^TMP($J,"SUBSCRIPT",DFN,RXIENS). 37 37 ; D PARY^GPLXPATH(MINXML) 38 38 N MEDS,MAP 39 39 K ^TMP($J) … … 164 164 . N RESULT S RESULT=$NA(^TMP("GPLCCR",$J,"RESULT")) 165 165 . K @RESULT 166 . D MAP^GPLXPATH($NA(INXML),MAP,RESULT) 166 . ; D MAP^GPLXPATH($NA(INXML),MAP,RESULT) 167 . D MAP^GPLXPATH(MINXML,MAP,RESULT) 168 . ; D PARY^GPLXPATH(RESULT) 167 169 . D:MEDCOUNT=1 CP^GPLXPATH(RESULT,OUTXML) ; First one is a copy 168 170 . D:MEDCOUNT>1 INSINNER^GPLXPATH(OUTXML,RESULT) ; AFTER THE FIRST, INSERT INNER XML -
ccr/trunk/p/GPLCCR.m
r159 r165 130 130 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""GPLCCR"",$J,DFN,""PROBLEMS"")") 131 131 I TESTMEDS D PUSH^GPLXPATH(TAB,"EXTRACT;CCRMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""GPLCCR"",$J,DFN,""MEDICATIONS"")") 132 ED PUSH^GPLXPATH(TAB,"EXTRACT;GPLMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""GPLCCR"",$J,DFN,""MEDICATIONS"")")132 I 'TESTMEDS D PUSH^GPLXPATH(TAB,"EXTRACT;GPLMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""GPLCCR"",$J,DFN,""MEDICATIONS"")") 133 133 D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""GPLCCR"",$J,DFN,""VITALS"")") 134 134 I TESTLAB D PUSH^GPLXPATH(TAB,"EXTRACT;GPLLABS;//ContinuityOfCareRecord/Body/Results;^TMP(""GPLCCR"",$J,DFN,""RESULTS"")") -
ccr/trunk/p/GPLMEDS.m
r146 r165 34 34 ; I DEBUG ZWR MEDRSLT 35 35 M GPLMEDS=MEDRSLT 36 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MED ICATIONS"))36 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MEDMAP")) 37 37 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 38 38 K @MEDTVMAP,@MEDTARYTMP -
ccr/trunk/p/GPLRIMA.m
r160 r165 63 63 . I $D(^TMP("GPLCCR",$J,"VITALS",1)) D ; VITALS VARS EXISTS 64 64 . . M @RIMBASE@("VARS",RIMDFN,"VITALS")=^TMP("GPLCCR",$J,"VITALS") 65 . I $D(^TMP("GPLCCR",$J,"MED ICATIONS",1)) D ; MEDS VARS EXISTS65 . I $D(^TMP("GPLCCR",$J,"MEDMAP",1)) D ; MEDS VARS EXISTS 66 66 . . M @RIMBASE@("VARS",RIMDFN,"MEDS")=^TMP("GPLCCR",$J,"MEDICATIONS") 67 67 . K ^TMP("GPLCCR",$J) ; KILL WORK AREA FOR CCR BUILDING
Note:
See TracChangeset
for help on using the changeset viewer.