Changeset 416 for ccr/trunk/p/C0CMED.m
- Timestamp:
- Mar 22, 2009, 3:26:00 PM (16 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CMED.m
r414 r416 1 C CRMEDS; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08 14:331 C0CMED ; CCDCCR/GPL - CCR/CCD PROCESSING FOR MEDICATIONS ;07/23/08 14:33 2 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 3 ;Copyright 2008,2009 George Lilly, University of Minnesota and Sam Habiel. … … 29 29 N HASOP S HASOP=0 ; FLAG FOR HAS OUTPATIENT MEDS 30 30 N MEDCNT S MEDCNT=0 ; COUNT FOR MEDS ALREADY PROCESSED 31 ; OUTPATIENT ACTIVE MEDS ARE PROCESSED IN EXTRACT^C CRMEDS132 ; OUTPATIENT PENDING MEDS IN EXTRACT^C CRMEDS233 ; NON-VA MEDS IN EXTRACT^C CRMEDS334 ; INPATIENT MEDS IN EXTRACT^C CRMEDS431 ; 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 35 35 ; ALL OTHERS HERE 36 36 S MEDTVMAP=$NA(^TMP("C0CCCR",$J,"MEDMAP")) … … 41 41 I $G(DUZ("AG"))="I" D Q ; 42 42 . ; I '$D(C0CTESTMEDS) G USERPC ; DELETE THIS LINE AFTER TESTING IS DONE 43 . D EXTRACT^C CRMEDS6(MEDXML,DFN,MEDOUTXML)43 . D EXTRACT^C0CMED6(MEDXML,DFN,MEDOUTXML) 44 44 . ; I @MEDOUTXML@(0)=0 D USERPC ; FOR RPMS, USE THE RPC FOR MEDS 45 D EXTRACT^C CRMEDS1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS46 I @MEDOUTXML@(0)>0 D ; C CRMEDSFOUND ACTIVE OP MEDS45 D EXTRACT^C0CMED1(MEDXML,DFN,MEDOUTXML) ; FIRST EXTRACT OUTPATIENT MEDS 46 I @MEDOUTXML@(0)>0 D ; C0CMED FOUND ACTIVE OP MEDS 47 47 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 48 48 . S MEDCNT=MEDCNT+@MEDTVMAP@(0) ; SAVE COUNT TO KNOW HOW TO ADD TO MAP … … 51 51 N PENDINGXML,MEDPENDING 52 52 S PENDINGXML="MEDPENDING" ;NAME FOR ARRAY 53 D EXTRACT^C CRMEDS2(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS54 I @PENDINGXML@(0)>0 D ; C CRMEDSFOUND PENDING OP MEDS53 D EXTRACT^C0CMED2(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS 54 I @PENDINGXML@(0)>0 D ; C0CMED FOUND PENDING OP MEDS 55 55 . S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 56 56 . I @MEDOUTXML@(0)>0 D ; IF WE NEED TO COMBINE MEDS … … 62 62 N PENDINGXML,MEDPENDING 63 63 S PENDINGXML="MEDPENDING" ;NAME FOR ARRAY 64 D EXTRACT^C CRMEDS3(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS65 I @PENDINGXML@(0)>0 D ; C CRMEDSFOUND PENDING OP MEDS64 D EXTRACT^C0CMED3(MEDXML,DFN,PENDINGXML) ; FIRST EXTRACT OUTPATIENT MEDS 65 I @PENDINGXML@(0)>0 D ; C0CMED FOUND PENDING OP MEDS 66 66 . ; S HASOP=1 ; SET FLAG TO KNOW HOW TO ADD XML 67 67 . I @MEDOUTXML@(0)>0 D ; IF WE NEED TO COMBINE MEDS … … 73 73 THEND ; 74 74 Q ; SKIPPING ALL THE REST OF THIS LOGIC.. IT IS NOT GOING TO BE NEEDED 75 ; ONCE NON-VA AND IP MEDS WORK (C CRMEDS3 AND CCRMEDS4)75 ; ONCE NON-VA AND IP MEDS WORK (C0CMED3 AND C0CMED4) 76 76 USERPC ; ENTRY POINT FOR RPMS 77 77 N MEDRSLT,I,J,K,MEDPTMP,X,MEDVMAP,TBUF … … 82 82 . Q 83 83 ; I DEBUG ZWR MEDRSLT 84 M C0CMEDS=MEDRSLT85 84 S MEDTVMAP=$NA(^TMP("C0CCCR",$J,"MEDMAP")) 86 85 S MEDTARYTMP=$NA(^TMP("C0CCCR",$J,"MEDARYTMP"))
Note:
See TracChangeset
for help on using the changeset viewer.