Changeset 50 for ccr/trunk/p/GPLCCR.m


Ignore:
Timestamp:
Jul 7, 2008, 1:30:04 AM (16 years ago)
Author:
George Lilly
Message:

Added "GPLCCR" to TMP globals for SAC compliance

File:
1 edited

Legend:

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

    r47 r50  
    1111       N CCRGLO
    1212       D CCRRPC(.CCRGLO,DFN,"CCR","","","")
    13        S OARY=$NA(^TMP($J,DFN,"CCR",1))
     13       S OARY=$NA(^TMP("GPLCCR",$J,DFN,"CCR",1))
    1414       S ONAM="PAT_"_DFN_"_CCR_V1.xml"
    1515       S ODIR="/home/glilly/CCROUT"
    1616       ;S ODIR="/home/cedwards/"
    17            ;S ODIR="/opt/wv/p/"
     17           ;S ODIR="/opt/wv/p/"
    1818       D OUTPUT^GPLXPATH(OARY,ONAM,ODIR)
    1919       Q
     
    3131    ;    IF NULL WILL DEFAULT TO "FROM" DUZ AND "TO" DFN
    3232    S DEBUG=0
    33     S TGLOBAL=$NA(^TMP($J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE
    34     S CCRGLO=$NA(^TMP($J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR
    35     S ACTGLO=$NA(^TMP($J,DFN,"ACTORS")) ; GLOBAL FOR ALL ACTORS
     33    S TGLOBAL=$NA(^TMP("GPLCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE
     34    S CCRGLO=$NA(^TMP("GPLCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR
     35    S ACTGLO=$NA(^TMP("GPLCCR",$J,DFN,"ACTORS")) ; GLOBAL FOR ALL ACTORS
    3636    ; TO GET PART OF THE CCR RETURNED, PASS CCRPART="PROBLEMS" ETC
    37     S CCRGRTN=$NA(^TMP($J,DFN,CCRPART)) ; RTN GLO NM OF PART OR ALL
     37    S CCRGRTN=$NA(^TMP("GPLCCR",$J,DFN,CCRPART)) ; RTN GLO NM OF PART OR ALL
    3838    D LOAD^GPLCCR0(TGLOBAL)  ; LOAD THE CCR TEMPLATE
    3939    D CP^GPLXPATH(TGLOBAL,CCRGLO) ; COPY THE TEMPLATE TO CCR GLOBAL
     
    4848    D HDRMAP(CCRGLO,DFN,HDRARY) ; MAP HEADER VARIABLES
    4949    ;
    50     K ^TMP($J,"CCRSTEP") ; KILL GLOBAL PRIOR TO ADDING TO IT
    51     S CCRXTAB="^TMP($J,""CCRSTEP"")" ; GLOBAL TO STORE CCR STEPS
     50    K ^TMP("GPLCCR",$J,"CCRSTEP") ; KILL GLOBAL PRIOR TO ADDING TO IT
     51    S CCRXTAB=$NA(^TMP("GPLCCR",$J,"CCRSTEP")) ; GLOBAL TO STORE CCR STEPS
    5252    D INITSTPS(CCRXTAB) ; INITIALIZED CCR PROCESSING STEPS
    5353    N I,XI,TAG,RTN,CALL,XPATH,IXML,OXML,INXML,CCRBLD
     
    7575INITSTPS(TAB)  ; INITIALIZE CCR PROCESSING STEPS
    7676    ; TAB IS PASSED BY NAME
    77     ; W "TAB= ",TAB,!
    78     D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP($J,DFN,""PROBLEMS"")")
    79     D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITALS;//ContinuityOfCareRecord/Body/VitalSigns;^TMP($J,DFN,""VITALS"")")
     77    W "TAB= ",TAB,!
     78    D PUSH^GPLXPATH(TAB,"EXTRACT;GPLPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""GPLCCR"",$J,DFN,""PROBLEMS"")")
     79    D PUSH^GPLXPATH(TAB,"EXTRACT;GPLVITALS;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""GPLCCR"",$J,DFN,""VITALS"")")
    8080    Q
    8181    ;
    8282HDRMAP(CXML,DFN,IHDR)   ; MAP HEADER VARIABLES: FROM, TO ECT
    83     N VMAP S VMAP=$NA(^TMP($J,DFN,"HEADER"))
     83    N VMAP S VMAP=$NA(^TMP("GPLCCR",$J,DFN,"HEADER"))
    8484    ; K @VMAP
    8585    S @VMAP@("DATETIME")=$$FMDTOUTC^CCRUTIL($$FMTHL7^XLFDT($$NOW^XLFDT),"DT")
Note: See TracChangeset for help on using the changeset viewer.