Changeset 165 for ccr/trunk/p/CCRMEDS.m


Ignore:
Timestamp:
Sep 22, 2008, 12:25:53 AM (16 years ago)
Author:
George Lilly
Message:

fixes to CCRMEDS

File:
1 edited

Legend:

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

    r164 r165  
    2121          Q
    2222          ;
    23 EXTRACT(INXML,DFN,OUTXML)       ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE
     23EXTRACT(MINXML,DFN,OUTXML)      ; EXTRACT MEDICATIONS INTO PROVIDED XML TEMPLATE
    2424          ;
    2525          ; INXML AND OUTXML ARE PASSED BY NAME SO GLOBALS CAN BE USED
     
    3535          ; http://www.va.gov/vdl/documents/Clinical/Pharm-Outpatient_Pharmacy/phar_1_api_r0807.pdf
    3636          ; Output of API is ^TMP($J,"SUBSCRIPT",DFN,RXIENS).
    37        
     37          ; D PARY^GPLXPATH(MINXML)
    3838          N MEDS,MAP
    3939          K ^TMP($J)
     
    164164          . N RESULT S RESULT=$NA(^TMP("GPLCCR",$J,"RESULT"))
    165165          . 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)
    167169          . D:MEDCOUNT=1 CP^GPLXPATH(RESULT,OUTXML) ; First one is a copy
    168170          . D:MEDCOUNT>1 INSINNER^GPLXPATH(OUTXML,RESULT) ; AFTER THE FIRST, INSERT INNER XML
Note: See TracChangeset for help on using the changeset viewer.