Changeset 184 for ccr/trunk/p/CCRMEDS.m


Ignore:
Timestamp:
Oct 5, 2008, 9:16:50 PM (16 years ago)
Author:
George Lilly
Message:

rename MEDS routines to CCRMEDSx

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:33
     1CCRMEDS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08  14:33
    22   ;;0.1;CCDCCR;;JUL 16,2008;
    33   ;Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     
    2828   N HASOP S HASOP=0 ; FLAG FOR HAS OUTPATIENT MEDS
    2929   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
    3236   I @MEDOUTXML@(0)>0 D  ; CCRMEDS FOUND ACTIVE OP MEDS
    3337   . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML
    3438   . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP
    3539   . 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
    3843   . 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
    3947   . S MEDCNT=@MEDOUTXML@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP
    4048   . W "HAS OP MEDS",!
Note: See TracChangeset for help on using the changeset viewer.