Ignore:
Timestamp:
Jul 8, 2011, 3:24:07 PM (13 years ago)
Author:
George Lilly
Message:

version for certification

File:
1 edited

Legend:

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

    r1204 r1205  
    8383 . S @MAP@("MEDDETAILUNADORNED")=""  ; Leave blank, field has its uses
    8484 . ;S @MAP@("MEDSTATUSTEXT")="ACTIVE"
    85  . S @MAP@("MEDSTATUSTEXT")=$G(MED("vaStatus@value")) ; need to filter status
     85 . N C0CMST S C0CMST=$G(MED("vaStatus@value")) ; need to filter status
     86 . I C0CMST="EXPIRED" S C0CMST="Prior History No Longer Active"
     87 . I C0CMST="ACTIVE" S C0CMST="Active" ;
     88 . S @MAP@("MEDSTATUSTEXT")=C0CMST
    8689 . ;S @MAP@("MEDSOURCEACTORID")="ACTORPROVIDER_"_$P(MED(1),U)
    8790 . S @MAP@("MEDSOURCEACTORID")="ACTORPROVIDER_"_$G(MED("orderingProvider@code"))
     
    112115 . ;I $L(MEDIEN) N DOSEDATA M DOSEDATA=^TMP($J,"DOSE",MEDIEN)
    113116 . ;S @MAP@("MEDSTRENGTHVALUE")=$S($L(MEDIEN):DOSEDATA(901),1:"")
    114  . S @MAP@("MEDSTRENGTHVALUE")=$G(MED("dose.dose@dose"))
     117 . S @MAP@("MEDSTRENGTHVALUE")=$G(MED("doses.dose@dose"))
    115118 . ;S @MAP@("MEDSTRENGTHUNIT")=$S($P(DOSEDATA(902),U,2),1:"")
    116  . S @MAP@("MEDSTRENGTHUNIT")=$G(MED("dose.dose@units"))
     119 . S @MAP@("MEDSTRENGTHUNIT")=$G(MED("doses.dose@units"))
    117120 . ; Units, concentration, etc, come from another call
    118121 . ; $$CPRS^PSNAPIS which returns dosage-form^va class^strengh^unit
     
    135138 . S @MAP@("MEDFORMTEXT")=$G(MED("form@value"))
    136139 . ;S @MAP@("MEDCONCVALUE")=$S($L(MEDIEN):$P(CONCDATA,U,3),1:"")
    137  . S @MAP@("MEDCONCVALUE")=$G(MED("dose.dose@dose"))
     140 . S @MAP@("MEDCONCVALUE")=$G(MED("doses.dose@dose"))
    138141 . ;S @MAP@("MEDCONCUNIT")=$S($L(MEDIEN):$P(CONCDATA,U,4),1:"")
    139  . S @MAP@("MEDCONCUNIT")=$G(MED("dose.does@units"))
     142 . S @MAP@("MEDCONCUNIT")=$G(MED("doses.does@units"))
    140143 . ;S @MAP@("MEDQUANTITYVALUE")=""  ; not provided for in Non-VA meds.
    141  . S @MAP@("MEDQUANTITYVALUE")=""
     144 . S @MAP@("MEDQUANTITYVALUE")=$G(MED("doses.dose@unitsPerDose")) ;
    142145 . ; Oddly, there is no easy place to find the dispense unit.
    143146 . ; It's not included in the original call, so we have to go to the drug file.
Note: See TracChangeset for help on using the changeset viewer.