Changeset 185
- Timestamp:
- Oct 5, 2008, 10:40:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS.m
r184 r185 38 38 . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 39 39 . W "HAS ACTIVE OP MEDS",! 40 N PENDINGXML 41 D EXTRACT^CCRMEDS2(MEDXML,DFN,"PENDINGXML") ; FIRST EXTRACT OUTPATIENT MEDS 42 I PENDINGXML(0)>0 D ; CCRMEDS FOUND PENDING OP MEDS 40 N PENDINGXML,MEDPENDING 41 S PENDINGXML="MEDPENDING" ;NAME FOR ARRAY 42 D EXTRACT^CCRMEDS2(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS 43 I @PENDINGXML@(0)>0 D ; CCRMEDS FOUND PENDING OP MEDS 43 44 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 44 45 . I @MEDOUTXML@(0)>0 D ; IF WE NEED TO COMBINE MEDS 45 . . D INSINNER^GPLXPATH(MEDOUTXML, "PENDINGXML") ;ADD PENDING TO ACTIVE46 . E D CP^GPLXPATH( "PENDINXML",MEDOUTXML) ; NO ACTIVE MEDS, JUST COPY46 . . D INSINNER^GPLXPATH(MEDOUTXML,PENDINGXML) ;ADD PENDING TO ACTIVE 47 . E D CP^GPLXPATH(PENDINGXML,MEDOUTXML) ; NO ACTIVE MEDS, JUST COPY 47 48 . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 48 . W "HAS OP MEDS",!49 . W "HAS OP PENDING MEDS",! 49 50 N MEDRSLT,I,J,K,MEDPTMP,X,MEDVMAP,TBUF 50 51 D ACTIVE^ORWPS(.MEDRSLT,DFN)
Note:
See TracChangeset
for help on using the changeset viewer.