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/Orders/rODDiet.pas

    r459 r460  
    3131    Alarms: string;
    3232    OPMaxDays: integer;
     33    OPDefaultDiet: integer;
    3334  end;
    3435
     
    3940procedure AppendTFProducts(Dest: TStrings);
    4041function SubSetOfDiets(const StartFrom: string; Direction: Integer): TStrings;
    41 function SubSetOfOPDiets(const StartFrom: string; Direction: Integer): TStrings;
     42function SubSetOfOPDiets: TStrings;
    4243procedure OrderLateTray(NewOrder: TOrder; Meal: Char; const MealTime: string; Bagged: Boolean);
    4344function IsolationID: string;
     
    4849function OutpatientPatchInstalled: boolean;
    4950function UserHasFHAUTHKey: boolean;
     51procedure GetCurrentRecurringOPMeals(Dest: TStrings; MealType: string = '');
     52function OutpatientLocationConfigured(ALocation: string): boolean;
    5053
    5154
     
    9699    else
    97100      OPMaxDays := 30;
     101    if Results.Count > 4 then
     102      OPDefaultDiet := StrToIntDef(Results[4], 0)
    98103  end;
    99104end;
     
    131136end;
    132137
    133 function SubSetOfOPDiets(const StartFrom: string; Direction: Integer): TStrings;
    134 begin
    135   CallV('ORWDFH OPDIETS', [StartFrom, Direction]);
     138function SubSetOfOPDiets: TStrings;
     139begin
     140  CallV('ORWDFH OPDIETS', [nil]);
    136141  Result := RPCBrokerV.Results;
    137142end;
     
    176181    if not PatchChecked then
    177182      begin
    178         PatchInstalled := False;
    179 { TODO -oRich V. -cOutpatient Meals : Uncomment when patch available - need number }
    180         //PatchInstalled := ServerHasPatch('FH_TEST*1.0*1');
     183        //PatchInstalled := True;
     184        { TODO -oRich V. -cOutpatient Meals : Uncomment when available }
     185        PatchInstalled := (PackageVersion('FH') >= '5.5');
    181186        PatchChecked := True;
    182187      end;
     
    195200end;
    196201
     202procedure GetCurrentRecurringOPMeals(Dest: TStrings; MealType: string = '');
     203begin
     204  CallV('ORWDFH CURRENT MEALS', [Patient.DFN, MealType]);
     205  Dest.Assign(RPCBrokerV.Results);
     206  MixedCaseList(Dest);
     207end;
     208
     209function OutpatientLocationConfigured(ALocation: string): boolean;
     210begin
     211  Result := (sCallV('ORWDFH NFSLOC READY', [ALocation]) = '1');
     212end;
     213
    197214end.
Note: See TracChangeset for help on using the changeset viewer.