- Timestamp:
- Oct 7, 2008, 11:05:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS.m
r190 r191 33 33 ; INPATIENT MEDS IN EXTRACT^CCRMEDS4 34 34 ; ALL OTHERS HERE 35 S MEDTVMAP=$NA(^TMP("GPLCCR",$J,"MEDMAP")) 36 S @MEDTVMAP@(0)=0 ; INITIALIZE NUMBER OF MEDS PROCESSED 37 S MEDTARYTMP=$NA(^TMP("GPLCCR",$J,"MEDARYTMP")) 35 38 D EXTRACT^CCRMEDS1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS 36 39 I @MEDOUTXML@(0)>0 D ; CCRMEDS FOUND ACTIVE OP MEDS 37 40 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 38 . S MEDCNT=MEDCNT+@MED OUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP41 . S MEDCNT=MEDCNT+@MEDTVMAP@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 39 42 . W MEDCNT,! 40 43 . W "HAS ACTIVE OP MEDS",! … … 47 50 . . D INSINNER^GPLXPATH(MEDOUTXML,PENDINGXML) ;ADD PENDING TO ACTIVE 48 51 . E D CP^GPLXPATH(PENDINGXML,MEDOUTXML) ; NO ACTIVE MEDS, JUST COPY 49 . S MEDCNT=MEDCNT+@MED OUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP52 . S MEDCNT=MEDCNT+@MEDTVMAP@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 50 53 . W MEDCNT,! 51 54 . W "HAS OP PENDING MEDS",!
Note:
See TracChangeset
for help on using the changeset viewer.