Changeset 1184


Ignore:
Timestamp:
May 13, 2011, 1:11:53 PM (14 years ago)
Author:
George Lilly
Message:

VistACom changes

Location:
ccr/trunk/p
Files:
2 added
1 edited

Legend:

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

    r910 r1184  
    2424 ; FOR TEMPLATE FILE RELATED ROUTINES, SEE C0CMXP
    2525 ;
    26 TEST ;
     26TEST ; TEST DRIVER ASSUMES A CCR IN ^GPL("CCR")
     27 ; LOOK FOR TEST RESULTS IN VARIABLE G
     28 ; ACTUALLY, IF NO CCR IS THERE, IT WILL PUT ONE THERE FOR PAT DFN 2
     29 ;
     30 N GPLCCR S GPLCCR=$NA(^GPL("CCR"))
     31 I '$D(@GPLCCR@(1)) D  ; NO CCR THERE
     32 . N TGPL
     33 . D CCRRPC^C0CCCR(.TGPL,2) ; GET A CCR FOR PAT 2
     34 . M @GPLCCR=TGPL ; PUT IT IN THE TEST GLOBAL
     35 . K @GPLCCR@(0) ; KILL THE LINE COUNT FOR THE PARSER
     36 D EN(.G,GPLCCR)
     37 Q
     38 ;
     39EN(ZRTN,C0CIN) ; PARSE THE CCR PASSED BY NAME IN C0CIN
     40 ; AND RETURN THE XPATH ARRAY THAT RESULTS IN ZRTN, PASSED BY REFERENCE
     41 I '$D(@C0CIN@(1)) Q  ;NOTHING PASSED IN
     42 K ZRTN
     43 N C0CDOCID,REDUX,GARY,GARY2,GARY3
     44 S C0CDOCID=$$PARSE(C0CIN)
     45 S REDUX="//ContinuityOfCareRecord/Body"
     46 D XPATH(1,"/","GIDX","GARY",,REDUX)
     47 D SEPARATE^C0CMCCD("GARY2","GARY")
     48 S ZI=""
     49 F  S ZI=$O(GARY2(ZI)) Q:ZI=""  D  ;
     50 . N GTMP,G2
     51 . M G2=GARY2(ZI)
     52 . D DEMUX2^C0CMXP("GTMP","G2",2)
     53 . M GARY3(ZI)=GTMP
     54 M ZRTN=GARY3
     55 Q
     56 ;
     57TEST0 ;
    2758 S C0CXMLIN=$NA(^TMP("C0CMXML",$J))
    2859 K GARY
    29  W $$FTG^%ZISH("/home/vademo2/EHR/p/","mxml-test.xml",$NA(@C0CXMLIN@(1)),3)
     60 M @C0CXMLIN=^GPL("CCR")
     61 ;W $$FTG^%ZISH("/home/vademo2/CCR/","PAT_774_CCR_V1_0_0.xml",$NA(@C0CXMLIN@(1)),3)
    3062 S C0CDOCID=$$PARSE(C0CXMLIN) W !,"DocID: ",C0CDOCID
    3163 S REDUX="//ContinuityOfCareRecord/Body"
Note: See TracChangeset for help on using the changeset viewer.