Changeset 783 for ccr


Ignore:
Timestamp:
May 23, 2010, 10:07:57 PM (15 years ago)
Author:
George Lilly
Message:

encounters

Location:
ccr/trunk/p
Files:
3 edited

Legend:

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

    r781 r783  
    131131 D EXTRACT^C0CACTOR("ACTT",ACTGLO,"ACTT2")
    132132 D INSINNER^C0CXPATH(CCRGLO,"ACTT2","//ContinuityOfCareRecord/Actors")
     133 K ACTT,ACTT2
     134 D QUERY^C0CXPATH(TGLOBAL,"//ContinuityOfCareRecord/Comments","CMTT")
     135 D EXTRACT^C0CCMT("CMTT",DFN,"CMTT2")
     136 D INSINNER^C0CXPATH(CCRGLO,"CMTT2","//ContinuityOfCareRecord/Comments")
     137 K CMTT,CMTT2
    133138 N TRIMI,J,DONE S DONE=0
    134139 F TRIMI=0:0 D  Q:DONE  ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE
  • ccr/trunk/p/C0CENC.m

    r782 r783  
    2222 Q
    2323 ;
    24 SETVARS ; INITIAL TEMPORARY VARIABLES
    25  S C0CENC=$NA(^TMP("C0CENC",$J,DFN))
    26  S C0CPRC=$NA(^TMP("C0CPRC",$J,DFN))
    27  S C0CNTE=$NA(^TMP("C0CNTE",$J,DFN))
    28  Q
    29  ;
    3024EXTRACT(ENCXML,DFN,ENCOUT) ; EXTRACT ENCOUNTERS INTO  XML TEMPLATE
    3125 ; ENCXML AND ENCOUT ARE PASSED BY NAME SO GLOBALS CAN BE USED
    3226 ;
    33  D SETVARS ;
     27 D SETVARS^C0CPROC ; SET UP VARIABLES FOR PROCEDUCRES, ENCOUNTERS, AND NOTES
    3428 I '$D(@C0CENC) D TIUGET(DFN,C0CENC,C0CPRC,C0CNTE) ; GET VARS IF NOT THERE
    3529 D MAP(ENCXML,C0CENC,ENCOUT) ;MAP RESULTS FOR ENCOUNTERS
     
    4539 ;
    4640 ;K VISIT,LST,NOTE
    47  I '$D(C0CPRC) D SETVARS ; INITIALIZE WORK AREAS IF NOT ALREADY THERE
     41 I '$D(C0CPRC) D SETVARS^C0CPROC ; INITIALIZE WORK AREAS IF NOT ALREADY THERE
    4842 I '$D(VISIT) D ENTRY^C0CCPT(DFN,,,1) ; RETURNS VISIT LOCAL VARIABLE
    4943 ; NEED TO ADD START AND END DATES FROM PARAMETERS
     
    9993 . . S @C0CNTE@(ZI,"COMMENTOBJECTID")="NOTE_"_ZI
    10094 . . S @C0CNTE@(ZI,"CMTDATETIME")=ZDATE ; DATE OF THE NOTE
     95 . . S @C0CNTE@(ZI,"ACTORSOURCEID")=ZPRV ; SOURCE OF THE NOTE
    10196 . . S ZRNF("ENCCOMMENTID")="NOTE_"_ZI ; POINT TO THE NOTE FROM THE ENCOUNTER
    10297 . D RNF1TO2^C0CRNF(C0CENC,"ZRNF") ; ADD THIS ROW TO THE ARRAY
  • ccr/trunk/p/C0CPROC.m

    r781 r783  
    2222 Q
    2323 ;
     24SETVARS ; SET UP VARIABLES FOR PROCEDURES, ENCOUNTERS, AND NOTES
     25 S C0CENC=$NA(^TMP("C0CCCR",$J,"C0CENC",DFN))
     26 S C0CPRC=$NA(^TMP("C0CCCR",$J,"C0CPRC",DFN))
     27 S C0CNTE=$NA(^TMP("C0CCCR",$J,"C0CNTE",DFN))
     28 Q
     29 ;
    2430EXTRACT(PROCXML,DFN,PROCOUT) ; EXTRACT PROCEDURES INTO  XML TEMPLATE
    2531 ; PROCXML AND PROCOUT ARE PASSED BY NAME SO GLOBALS CAN BE USED
    2632 ;
    27  S C0CENC=$NA(^TMP("C0CENC",$J,DFN))
    28  S C0CPRC=$NA(^TMP("C0CPRC",$J,DFN))
    29  S C0CNTE=$NA(^TMP("C0CNTE",$J,DFN))
     33 D SETVARS ; SET UP VARIABLES
    3034 I '$D(@C0CPRC) D TIUGET(DFN,C0CENC,C0CPRC,C0CNTE) ; GET VARS IF NOT THERE
    3135 D MAP(PROCXML,C0CPRC,PROCOUT) ;MAP RESULTS FOR PROCEDURES
Note: See TracChangeset for help on using the changeset viewer.