Changeset 184 for ccr/trunk/p/CCRMEDS.m
- Timestamp:
- Oct 5, 2008, 9:16:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/CCRMEDS.m
r183 r184 1 GPLMEDS ; CCDCCR/CJE- CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08 14:331 CCRMEDS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08 14:33 2 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 3 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU … … 28 28 N HASOP S HASOP=0 ; FLAG FOR HAS OUTPATIENT MEDS 29 29 N MEDCNT S MEDCNT=0 ; COUNT FOR MEDS ALREADY PROCESSED 30 ; OUTPATIENT MEDS ARE PROCESSED IN EXTRACT^CCRMEDS, ALL OTHERS HERE 31 D EXTRACT^CCRMEDS(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS 30 ; OUTPATIENT ACTIVE MEDS ARE PROCESSED IN EXTRACT^CCRMEDS1 31 ; OUTPATIENT PENDING MEDS IN EXTRACT^CCRMEDS2 32 ; NON-VA MEDS IN EXTRACT^CCRMEDS3 33 ; INPATIENT MEDS IN EXTRACT^CCRMEDS4 34 ; ALL OTHERS HERE 35 D EXTRACT^CCRMEDS1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS 32 36 I @MEDOUTXML@(0)>0 D ; CCRMEDS FOUND ACTIVE OP MEDS 33 37 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 34 38 . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 35 39 . W "HAS ACTIVE OP MEDS",! 36 D EXTRACT^CCRMEDS2(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS 37 I @MEDOUTXML@(0)>0 D ; CCRMEDS FOUND 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 38 43 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 44 . I @MEDOUTXML@(0)>0 D ; IF WE NEED TO COMBINE MEDS 45 . . D INSINNER^GPLXPATH(MEDOUTXML,"PENDINGXML") ;ADD PENDING TO ACTIVE 46 . E D CP^GPLXPATH("PENDINXML",MEDOUTXML) ; NO ACTIVE MEDS, JUST COPY 39 47 . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP 40 48 . W "HAS OP MEDS",!
Note:
See TracChangeset
for help on using the changeset viewer.