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


Ignore:
Timestamp:
Oct 4, 2010, 1:46:18 PM (14 years ago)
Author:
George Lilly
Message:

modifications to clean up temp storage after processing

File:
1 edited

Legend:

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

    r973 r974  
    7676 N PEND S PEND=$NA(^TMP($J,"MED","PEND")) ; Pending Meds
    7777 N NVA S NVA=$NA(^TMP($J,"MED","NVA")) ; non-VA Meds
     78 K @HIST K @PEND K @NVA ; MAKE SURE THEY ARE EMPTY
    7879 S @HIST@(0)=0,@PEND@(0)=0,@NVA@(0)=0 ; At first, they are all empty... (prevent undefined errors)
    7980 ; N IPIV ; Inpatient IV Meds
     
    9495 . E  D CP^C0CXPATH(NVA,MEDOUTXML)
    9596 . W:$G(DEBUG) "HAS NON-VA MEDS",!
     97 N ZI
     98 S ZI=$NA(^TMP("C0CCCR",$J,"MEDMAP"))
     99 M ^TMP("C0CRIM","VARS",DFN,"MEDS")=@ZI ; PERSIST MEDS VARIABLES
     100 K @ZI ; CLEAN UP MED MAP AFTER - GPL 10/10
     101 K @PEND
     102 K @HIST
     103 K @NVA
    96104 Q
    97105 
Note: See TracChangeset for help on using the changeset viewer.