- Timestamp:
- Mar 22, 2009, 3:26:00 PM (16 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 3 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CCCD.m
r396 r416 151 151 ; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS 152 152 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""C0CCCR"",$J,DFN,""PROBLEMS"")") 153 ;D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED S;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")153 ;D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")") 154 154 I 'CCD D PUSH^C0CXPATH(TAB,"EXTRACT;C0CVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""C0CCCR"",$J,DFN,""VITALS"")") 155 155 Q -
ccr/trunk/p/C0CCCR.m
r396 r416 79 79 I '$D(TESTLAB) S TESTLAB=0 ; FLAG FOR TESTING RESULTS SECTION 80 80 I '$D(TESTALERT) S TESTALERT=1 ; FLAG FOR TESTING ALERTS SECTION 81 I '$D(TESTMEDS) S TESTMEDS=0 ; FLAG FOR TESTING C CRMEDSSECTION81 I '$D(TESTMEDS) S TESTMEDS=0 ; FLAG FOR TESTING C0CMED SECTION 82 82 S TGLOBAL=$NA(^TMP("C0CCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE 83 83 S CCRGLO=$NA(^TMP("C0CCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR … … 135 135 ; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS 136 136 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""C0CCCR"",$J,DFN,""PROBLEMS"")") 137 D PUSH^C0CXPATH(TAB,"EXTRACT;C CRMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")137 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")") 138 138 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""C0CCCR"",$J,DFN,""VITALS"")") 139 139 D PUSH^C0CXPATH(TAB,"MAP;C0CLABS;//ContinuityOfCareRecord/Body/Results;^TMP(""C0CCCR"",$J,DFN,""RESULTS"")") -
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")) -
ccr/trunk/p/C0CMED1.m
r414 r416 1 C CRMEDS1 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS ;01/10/091 C0CMED1 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS ;01/10/09 2 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 3 ;;Last modified Sat Jan 10 21:42:27 PST 2009 … … 53 53 . I DEBUG W "RXIEN IS ",RXIEN,! 54 54 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCOUNT)) 55 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C CRMEDS55 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C0CMED 56 56 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; INCREMENT TOTAL MEDS IN VAR ARRAY 57 57 . I DEBUG W "MAP= ",MAP,! -
ccr/trunk/p/C0CMED2.m
r414 r416 1 C CRMEDS2 ; WV/CCDCCR/SMH - CCR/CCD Meds - Pending for Vista1 C0CMED2 ; WV/CCDCCR/SMH - CCR/CCD Meds - Pending for Vista 2 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 3 ;;Last Modified Sat Jan 10 21:41:14 PST 2009 … … 58 58 . I DEBUG W "RXIEN IS ",RXIEN,! 59 59 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCOUNT)) 60 . ; K @MAP DON'T KILL MAP HERE, IT IS DONE IN C CRMEDS60 . ; K @MAP DON'T KILL MAP HERE, IT IS DONE IN C0CMED 61 61 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; INCREMENT TOTAL MEDS IN VAR ARRAY 62 62 . I DEBUG W "MAP= ",MAP,! -
ccr/trunk/p/C0CMED3.m
r414 r416 1 C CRMEDS3 ; WV/CCDCCR/SMH - Meds: Non-VA/Outside Meds for Vista1 C0CMED3 ; WV/CCDCCR/SMH - Meds: Non-VA/Outside Meds for Vista 2 2 ;;0.1;CCDCCR;;; 3 3 ;;Last Modified: Sun Jan 11 05:45:03 UTC 2009 -
ccr/trunk/p/C0CMED4.m
r414 r416 1 C CRMEDS4 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS - Inpatient Meds/Unit Dose ;10/13/081 C0CMED4 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS - Inpatient Meds/Unit Dose ;10/13/08 2 2 ;;0.1;CCDCCR;;; 3 3 ; Copyright 2008 WorldVistA. Licensed under the terms of the GNU … … 32 32 ; 33 33 ; Inpatient Meds will be extracted using this routine and and the one following. 34 ; Inpatient Meds Unit Dose is going to be C CRMEDS435 ; Inpatient Meds IVs is going to be C CRMEDS534 ; Inpatient Meds Unit Dose is going to be C0CMED4 35 ; Inpatient Meds IVs is going to be C0CMED5 36 36 ; 37 37 ; We will use two Pharmacy ReEnginnering API's: -
ccr/trunk/p/C0CMED6.m
r414 r416 1 C CRMEDS6 ; WV/CCDCCR/SMH - Meds from RPMS: Outpatient Meds;01/10/091 C0CMED6 ; WV/CCDCCR/SMH - Meds from RPMS: Outpatient Meds;01/10/09 2 2 ;;0.1;CCDCCR;;JUL 16,2008; 3 3 ; Copyright 2008 WorldVistA. Licensed under the terms of the GNU … … 64 64 . I DEBUG W "MEDCNT IS ",MEDCNT,! 65 65 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCNT)) 66 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C CRMEDS66 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C0CMED 67 67 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; increment total meds in var array 68 68 . I DEBUG W "MAP= ",MAP,! -
ccr/trunk/p/C0CUNIT.m
r415 r416 166 166 W "QUERY^GPLXPATH(T,XPATH,""INXML"")",!! 167 167 D QUERY^GPLXPATH(T,XPATH,"INXML") 168 W "Executing EXTRACT^C CRMEDS(INXML,DFN,OUTXML)",!168 W "Executing EXTRACT^C0CMED(INXML,DFN,OUTXML)",! 169 169 W "OUTXML will be ^TMP($J,""OUT"")",! 170 170 N OUTXML S OUTXML=$NA(^TMP($J,"OUT")) 171 D EXTRACT^C CRMEDS6("INXML",DFN,OUTXML)171 D EXTRACT^C0CMED6("INXML",DFN,OUTXML) 172 172 D FILEOUT^C0CRNF(OUTXML,"TESTMEDS.xml") 173 173 Q
Note:
See TracChangeset
for help on using the changeset viewer.