Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/rMeds.pas

    r459 r460  
    3535procedure Refill(AnOrderID, PickUpAt: string);
    3636function IsFirstDoseNowOrder(OrderID: string): boolean;
     37function GetMedStatus(MedID: TStringList): boolean;
    3738
    3839implementation
     
    9697    if NonVAMed then
    9798        Instruct := 'Non-VA  ' + Instruct;
    98     IVFluid   := Piece(x, U, 1) = 'IV';
     99    IVFluid   := Piece(x, U, 1) = '~IV';
    99100    SrvSeq    := 0;
    100101    LastFill  := MakeFMDateTime(Piece(x, U, 11));
     
    135136  AMed: TMedListRec;
    136137begin
     138  //Check for CQ 9814 this should prevent an M error is DFn is not defined.
     139  if patient=nil then exit;
     140  if patient.DFN='' then exit;
    137141  ClinMeds := TList.Create;           //IMO new
    138142  tmpInPtMeds := TList.Create;        //IMO new
     
    176180  OutPtMeds.Sort(ByStatusThenStop);
    177181  NonVAMeds.Sort(ByStatusThenStop);
     182  if Assigned(ClinMeds) then FreeAndNil(ClinMeds);
     183  if Assigned(tmpInPtMeds) then FreeAndNil(tmpInPtMeds);
    178184end;
    179185
     
    201207end;
    202208
     209function GetMedStatus(MedID: TStringList): boolean;
     210begin
     211 Result := SCallV('ORWDX1 STCHANGE',[Patient.DFN, MedID])= '1';
     212end;
     213
    203214end.
Note: See TracChangeset for help on using the changeset viewer.