Changeset 165 for ccr/trunk/p/CCRMEDS.m
- Timestamp:
- Sep 22, 2008, 12:25:53 AM (16 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.