Changeset 105


Ignore:
Timestamp:
Aug 26, 2008, 11:57:10 PM (16 years ago)
Author:
George Lilly
Message:

fixed crash in MEDS where med has no 3rd line of description

File:
1 edited

Legend:

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

    r95 r105  
    6464   . S @MEDVMAP@("MEDQUANTITYUNIT")=""
    6565   . S @MEDVMAP@("MEDRFNO")=""
    66    . S @MEDVMAP@("MEDICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2)
    67    . S @MEDVMAP@("MEDDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2)
     66   . I $D(MEDRSLT(J+1)) D  ; IF SECOND LINE EXISTS
     67   . . S @MEDVMAP@("MEDICATIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+1)," *",2)
     68   . I $D(MEDRSLT(J+2)) D  ; IF THIRD LINE EXISTS
     69   . . S @MEDVMAP@("MEDDIRECTIONDESCRIPTIONTEXT")=$P(MEDRSLT(J+2),"\ Sig: ",2)
    6870   . S @MEDVMAP@("MEDICATIONDIRECTIONDOSEVALUE")=""
    6971   . S @MEDVMAP@("MEDICATIONDIRECTIONROUTETEXT")=""
Note: See TracChangeset for help on using the changeset viewer.