Changeset 783 for ccr/trunk/p
- Timestamp:
- May 23, 2010, 10:07:57 PM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CCCR.m
r781 r783 131 131 D EXTRACT^C0CACTOR("ACTT",ACTGLO,"ACTT2") 132 132 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 133 138 N TRIMI,J,DONE S DONE=0 134 139 F TRIMI=0:0 D Q:DONE ; DELETE UNTIL ALL EMPTY ELEMENTS ARE GONE -
ccr/trunk/p/C0CENC.m
r782 r783 22 22 Q 23 23 ; 24 SETVARS ; INITIAL TEMPORARY VARIABLES25 S C0CENC=$NA(^TMP("C0CENC",$J,DFN))26 S C0CPRC=$NA(^TMP("C0CPRC",$J,DFN))27 S C0CNTE=$NA(^TMP("C0CNTE",$J,DFN))28 Q29 ;30 24 EXTRACT(ENCXML,DFN,ENCOUT) ; EXTRACT ENCOUNTERS INTO XML TEMPLATE 31 25 ; ENCXML AND ENCOUT ARE PASSED BY NAME SO GLOBALS CAN BE USED 32 26 ; 33 D SETVARS ;27 D SETVARS^C0CPROC ; SET UP VARIABLES FOR PROCEDUCRES, ENCOUNTERS, AND NOTES 34 28 I '$D(@C0CENC) D TIUGET(DFN,C0CENC,C0CPRC,C0CNTE) ; GET VARS IF NOT THERE 35 29 D MAP(ENCXML,C0CENC,ENCOUT) ;MAP RESULTS FOR ENCOUNTERS … … 45 39 ; 46 40 ;K VISIT,LST,NOTE 47 I '$D(C0CPRC) D SETVARS ; INITIALIZE WORK AREAS IF NOT ALREADY THERE41 I '$D(C0CPRC) D SETVARS^C0CPROC ; INITIALIZE WORK AREAS IF NOT ALREADY THERE 48 42 I '$D(VISIT) D ENTRY^C0CCPT(DFN,,,1) ; RETURNS VISIT LOCAL VARIABLE 49 43 ; NEED TO ADD START AND END DATES FROM PARAMETERS … … 99 93 . . S @C0CNTE@(ZI,"COMMENTOBJECTID")="NOTE_"_ZI 100 94 . . S @C0CNTE@(ZI,"CMTDATETIME")=ZDATE ; DATE OF THE NOTE 95 . . S @C0CNTE@(ZI,"ACTORSOURCEID")=ZPRV ; SOURCE OF THE NOTE 101 96 . . S ZRNF("ENCCOMMENTID")="NOTE_"_ZI ; POINT TO THE NOTE FROM THE ENCOUNTER 102 97 . D RNF1TO2^C0CRNF(C0CENC,"ZRNF") ; ADD THIS ROW TO THE ARRAY -
ccr/trunk/p/C0CPROC.m
r781 r783 22 22 Q 23 23 ; 24 SETVARS ; 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 ; 24 30 EXTRACT(PROCXML,DFN,PROCOUT) ; EXTRACT PROCEDURES INTO XML TEMPLATE 25 31 ; PROCXML AND PROCOUT ARE PASSED BY NAME SO GLOBALS CAN BE USED 26 32 ; 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 30 34 I '$D(@C0CPRC) D TIUGET(DFN,C0CENC,C0CPRC,C0CNTE) ; GET VARS IF NOT THERE 31 35 D MAP(PROCXML,C0CPRC,PROCOUT) ;MAP RESULTS FOR PROCEDURES
Note:
See TracChangeset
for help on using the changeset viewer.