Changeset 1205 for ccr/trunk/p/C0CNMED4.m
- Timestamp:
- Jul 8, 2011, 3:24:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CNMED4.m
r1204 r1205 83 83 . S @MAP@("MEDDETAILUNADORNED")="" ; Leave blank, field has its uses 84 84 . ;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 86 89 . ;S @MAP@("MEDSOURCEACTORID")="ACTORPROVIDER_"_$P(MED(1),U) 87 90 . S @MAP@("MEDSOURCEACTORID")="ACTORPROVIDER_"_$G(MED("orderingProvider@code")) … … 112 115 . ;I $L(MEDIEN) N DOSEDATA M DOSEDATA=^TMP($J,"DOSE",MEDIEN) 113 116 . ;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")) 115 118 . ;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")) 117 120 . ; Units, concentration, etc, come from another call 118 121 . ; $$CPRS^PSNAPIS which returns dosage-form^va class^strengh^unit … … 135 138 . S @MAP@("MEDFORMTEXT")=$G(MED("form@value")) 136 139 . ;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")) 138 141 . ;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")) 140 143 . ;S @MAP@("MEDQUANTITYVALUE")="" ; not provided for in Non-VA meds. 141 . S @MAP@("MEDQUANTITYVALUE")= ""144 . S @MAP@("MEDQUANTITYVALUE")=$G(MED("doses.dose@unitsPerDose")) ; 142 145 . ; Oddly, there is no easy place to find the dispense unit. 143 146 . ; 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.