Changeset 416 for ccr/trunk/p/C0CMED.m


Ignore:
Timestamp:
Mar 22, 2009, 3:26:00 PM (16 years ago)
Author:
George Lilly
Message:

Changed CCRMEDS* to C0CMED*

File:
1 moved

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CMED.m

    r414 r416  
    1 CCRMEDS ; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08  14:33
     1C0CMED ; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08  14:33
    22 ;;0.1;CCDCCR;;JUL 16,2008;
    33 ;Copyright 2008,2009 George Lilly, University of Minnesota and Sam Habiel.
     
    2929 N HASOP S HASOP=0 ; FLAG FOR HAS OUTPATIENT MEDS
    3030 N MEDCNT S MEDCNT=0 ; COUNT FOR MEDS ALREADY PROCESSED
    31  ; OUTPATIENT ACTIVE MEDS ARE PROCESSED IN EXTRACT^CCRMEDS1
    32  ; OUTPATIENT PENDING MEDS IN EXTRACT^CCRMEDS2
    33  ; NON-VA MEDS IN EXTRACT^CCRMEDS3
    34  ; INPATIENT MEDS IN EXTRACT^CCRMEDS4
     31 ; OUTPATIENT ACTIVE MEDS ARE PROCESSED IN EXTRACT^C0CMED1
     32 ; OUTPATIENT PENDING MEDS IN EXTRACT^C0CMED2
     33 ; NON-VA MEDS IN EXTRACT^C0CMED3
     34 ; INPATIENT MEDS IN EXTRACT^C0CMED4
    3535 ; ALL OTHERS HERE
    3636 S MEDTVMAP=$NA(^TMP("C0CCCR",$J,"MEDMAP"))
     
    4141 I $G(DUZ("AG"))="I" D  Q  ;
    4242 . ; I '$D(C0CTESTMEDS) G USERPC ; DELETE THIS LINE AFTER TESTING IS DONE
    43  . D EXTRACT^CCRMEDS6(MEDXML,DFN,MEDOUTXML)
     43 . D EXTRACT^C0CMED6(MEDXML,DFN,MEDOUTXML)
    4444 . ; I @MEDOUTXML@(0)=0 D USERPC ; FOR RPMS, USE THE RPC FOR MEDS
    45  D EXTRACT^CCRMEDS1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS
    46  I @MEDOUTXML@(0)>0 D  ; CCRMEDS FOUND ACTIVE OP MEDS
     45 D EXTRACT^C0CMED1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS
     46 I @MEDOUTXML@(0)>0 D  ; C0CMED FOUND ACTIVE OP MEDS
    4747 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML
    4848 . S MEDCNT=MEDCNT+@MEDTVMAP@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP
     
    5151 N PENDINGXML,MEDPENDING
    5252 S PENDINGXML="MEDPENDING" ;NAME FOR ARRAY
    53  D EXTRACT^CCRMEDS2(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS
    54  I @PENDINGXML@(0)>0 D  ; CCRMEDS FOUND PENDING OP MEDS
     53 D EXTRACT^C0CMED2(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS
     54 I @PENDINGXML@(0)>0 D  ; C0CMED FOUND PENDING OP MEDS
    5555 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML
    5656 . I @MEDOUTXML@(0)>0 D  ; IF WE NEED TO COMBINE MEDS
     
    6262 N PENDINGXML,MEDPENDING
    6363 S PENDINGXML="MEDPENDING" ;NAME FOR ARRAY
    64  D EXTRACT^CCRMEDS3(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS
    65  I @PENDINGXML@(0)>0 D  ; CCRMEDS FOUND PENDING OP MEDS
     64 D EXTRACT^C0CMED3(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS
     65 I @PENDINGXML@(0)>0 D  ; C0CMED FOUND PENDING OP MEDS
    6666 . ; S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML
    6767 . I @MEDOUTXML@(0)>0 D  ; IF WE NEED TO COMBINE MEDS
     
    7373THEND ;
    7474 Q ; SKIPPING ALL THE REST OF THIS LOGIC.. IT IS NOT GOING TO BE NEEDED
    75  ; ONCE NON-VA AND IP MEDS WORK (CCRMEDS3 AND CCRMEDS4)
     75 ; ONCE NON-VA AND IP MEDS WORK (C0CMED3 AND C0CMED4)
    7676USERPC ; ENTRY POINT FOR RPMS
    7777 N MEDRSLT,I,J,K,MEDPTMP,X,MEDVMAP,TBUF
     
    8282 . Q
    8383 ; I DEBUG ZWR MEDRSLT
    84  M C0CMEDS=MEDRSLT
    8584 S MEDTVMAP=$NA(^TMP("C0CCCR",$J,"MEDMAP"))
    8685 S MEDTARYTMP=$NA(^TMP("C0CCCR",$J,"MEDARYTMP"))
Note: See TracChangeset for help on using the changeset viewer.