Changeset 416 for ccr/trunk/p


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

Changed CCRMEDS* to C0CMED*

Location:
ccr/trunk/p
Files:
3 edited
6 moved

Legend:

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

    r396 r416  
    151151    ; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS
    152152    D PUSH^C0CXPATH(TAB,"EXTRACT;C0CPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""C0CCCR"",$J,DFN,""PROBLEMS"")")
    153     ;D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")
     153    ;D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")
    154154    I 'CCD D PUSH^C0CXPATH(TAB,"EXTRACT;C0CVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""C0CCCR"",$J,DFN,""VITALS"")")
    155155    Q
  • ccr/trunk/p/C0CCCR.m

    r396 r416  
    7979 I '$D(TESTLAB) S TESTLAB=0 ; FLAG FOR TESTING RESULTS SECTION
    8080 I '$D(TESTALERT) S TESTALERT=1 ; FLAG FOR TESTING ALERTS SECTION
    81  I '$D(TESTMEDS) S TESTMEDS=0 ; FLAG FOR TESTING CCRMEDS SECTION
     81 I '$D(TESTMEDS) S TESTMEDS=0 ; FLAG FOR TESTING C0CMED SECTION
    8282 S TGLOBAL=$NA(^TMP("C0CCCR",$J,"TEMPLATE")) ; GLOBAL FOR STORING TEMPLATE
    8383 S CCRGLO=$NA(^TMP("C0CCCR",$J,DFN,"CCR")) ; GLOBAL FOR BUILDING THE CCR
     
    135135 ; ORDER FOR CCR IS PROBLEMS,FAMILYHISTORY,SOCIALHISTORY,MEDICATIONS,VITALSIGNS,RESULTS,HEALTHCAREPROVIDERS
    136136 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CPROBS;//ContinuityOfCareRecord/Body/Problems;^TMP(""C0CCCR"",$J,DFN,""PROBLEMS"")")
    137  D PUSH^C0CXPATH(TAB,"EXTRACT;CCRMEDS;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")
     137 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CMED;//ContinuityOfCareRecord/Body/Medications;^TMP(""C0CCCR"",$J,DFN,""MEDICATIONS"")")
    138138 D PUSH^C0CXPATH(TAB,"EXTRACT;C0CVITAL;//ContinuityOfCareRecord/Body/VitalSigns;^TMP(""C0CCCR"",$J,DFN,""VITALS"")")
    139139 D PUSH^C0CXPATH(TAB,"MAP;C0CLABS;//ContinuityOfCareRecord/Body/Results;^TMP(""C0CCCR"",$J,DFN,""RESULTS"")")
  • 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"))
  • ccr/trunk/p/C0CMED1.m

    r414 r416  
    1 CCRMEDS1 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS ;01/10/09
     1C0CMED1 ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS ;01/10/09
    22 ;;0.1;CCDCCR;;JUL 16,2008;
    33 ;;Last modified Sat Jan 10 21:42:27 PST 2009
     
    5353 . I DEBUG W "RXIEN IS ",RXIEN,!
    5454 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCOUNT))
    55  . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN CCRMEDS
     55 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C0CMED
    5656 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; INCREMENT TOTAL MEDS IN VAR ARRAY
    5757 . I DEBUG W "MAP= ",MAP,!
  • ccr/trunk/p/C0CMED2.m

    r414 r416  
    1 CCRMEDS2 ; WV/CCDCCR/SMH - CCR/CCD Meds - Pending for Vista
     1C0CMED2 ; WV/CCDCCR/SMH - CCR/CCD Meds - Pending for Vista
    22 ;;0.1;CCDCCR;;JUL 16,2008;
    33 ;;Last Modified Sat Jan 10 21:41:14 PST 2009
     
    5858 . I DEBUG W "RXIEN IS ",RXIEN,!
    5959 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCOUNT))
    60  . ; K @MAP DON'T KILL MAP HERE, IT IS DONE IN CCRMEDS
     60 . ; K @MAP DON'T KILL MAP HERE, IT IS DONE IN C0CMED
    6161 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; INCREMENT TOTAL MEDS IN VAR ARRAY
    6262 . I DEBUG W "MAP= ",MAP,!
  • ccr/trunk/p/C0CMED3.m

    r414 r416  
    1 CCRMEDS3 ; WV/CCDCCR/SMH - Meds: Non-VA/Outside Meds for Vista
     1C0CMED3 ; WV/CCDCCR/SMH - Meds: Non-VA/Outside Meds for Vista
    22 ;;0.1;CCDCCR;;;
    33 ;;Last Modified: Sun Jan 11 05:45:03 UTC 2009
  • ccr/trunk/p/C0CMED4.m

    r414 r416  
    1 CCRMEDS4         ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS - Inpatient Meds/Unit Dose ;10/13/08
     1C0CMED4         ; WV/CCDCCR/SMH - CCR/CCD PROCESSING FOR MEDICATIONS - Inpatient Meds/Unit Dose ;10/13/08
    22 ;;0.1;CCDCCR;;;
    33 ; Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     
    3232 ;
    3333 ; Inpatient Meds will be extracted using this routine and and the one following.
    34  ; Inpatient Meds Unit Dose is going to be CCRMEDS4
    35  ; Inpatient Meds IVs is going to be CCRMEDS5
     34 ; Inpatient Meds Unit Dose is going to be C0CMED4
     35 ; Inpatient Meds IVs is going to be C0CMED5
    3636 ;
    3737 ; We will use two Pharmacy ReEnginnering API's:
  • ccr/trunk/p/C0CMED6.m

    r414 r416  
    1 CCRMEDS6 ; WV/CCDCCR/SMH - Meds from RPMS: Outpatient Meds;01/10/09
     1C0CMED6 ; WV/CCDCCR/SMH - Meds from RPMS: Outpatient Meds;01/10/09
    22 ;;0.1;CCDCCR;;JUL 16,2008;
    33 ; Copyright 2008 WorldVistA.  Licensed under the terms of the GNU
     
    6464 . I DEBUG W "MEDCNT IS ",MEDCNT,!
    6565 . S MAP=$NA(^TMP("C0CCCR",$J,"MEDMAP",MEDCNT))
    66  . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN CCRMEDS
     66 . ; K @MAP DO NOT KILL HERE, WAS CLEARED IN C0CMED
    6767 . S @MEDMAP@(0)=@MEDMAP@(0)+1 ; increment total meds in var array
    6868 . I DEBUG W "MAP= ",MAP,!
  • ccr/trunk/p/C0CUNIT.m

    r415 r416  
    166166 W "QUERY^GPLXPATH(T,XPATH,""INXML"")",!!
    167167 D QUERY^GPLXPATH(T,XPATH,"INXML")
    168  W "Executing EXTRACT^CCRMEDS(INXML,DFN,OUTXML)",!
     168 W "Executing EXTRACT^C0CMED(INXML,DFN,OUTXML)",!
    169169 W "OUTXML will be ^TMP($J,""OUT"")",!
    170170 N OUTXML S OUTXML=$NA(^TMP($J,"OUT"))
    171  D EXTRACT^CCRMEDS6("INXML",DFN,OUTXML)
     171 D EXTRACT^C0CMED6("INXML",DFN,OUTXML)
    172172 D FILEOUT^C0CRNF(OUTXML,"TESTMEDS.xml")
    173173 Q
Note: See TracChangeset for help on using the changeset viewer.