Changeset 281 for ccr/trunk/p/CCRMEDS2.m


Ignore:
Timestamp:
Nov 17, 2008, 2:48:14 PM (16 years ago)
Author:
George Lilly
Message:

check for no dose data present

File:
1 edited

Legend:

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

    r227 r281  
    8585 . S @MAP@("MEDBRANDNAMETEXT")=""
    8686 . D DOSE^PSS50(MEDIEN,,,,,"DOSE")
    87  . N DOSEDATA M DOSEDATA=^TMP($J,"DOSE",MEDIEN)
    88  . S @MAP@("MEDSTRENGTHVALUE")=DOSEDATA(901)
    89  . S @MAP@("MEDSTRENGTHUNIT")=$P(DOSEDATA(902),U,2)
     87 . I $D(^TMP($J,"DOSE",MEDIEN)) D  ; GPL ; CALL SUCCESSFUL
     88 . . N DOSEDATA M DOSEDATA=^TMP($J,"DOSE",MEDIEN)
     89 . . S @MAP@("MEDSTRENGTHVALUE")=DOSEDATA(901)
     90 . . S @MAP@("MEDSTRENGTHUNIT")=$P(DOSEDATA(902),U,2)
     91 . E  D  ; GPL CALL UNSUCCESSUFL
     92 . . S @MAP@("MEDSTRENGTHVALUE")="" ; NO DOSE INFORMATION AVAILABLE
     93 . . S @MAP@("MEDSTRENGTHUNIT")="" ;
    9094 . ; Units, concentration, etc, come from another call
    9195 . ; $$CPRS^PSNAPIS which returns dosage-form^va class^strengh^unit
Note: See TracChangeset for help on using the changeset viewer.