Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Orders/rODDiet.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/Orders/rODDiet.pas
r459 r460 31 31 Alarms: string; 32 32 OPMaxDays: integer; 33 OPDefaultDiet: integer; 33 34 end; 34 35 … … 39 40 procedure AppendTFProducts(Dest: TStrings); 40 41 function SubSetOfDiets(const StartFrom: string; Direction: Integer): TStrings; 41 function SubSetOfOPDiets (const StartFrom: string; Direction: Integer): TStrings;42 function SubSetOfOPDiets: TStrings; 42 43 procedure OrderLateTray(NewOrder: TOrder; Meal: Char; const MealTime: string; Bagged: Boolean); 43 44 function IsolationID: string; … … 48 49 function OutpatientPatchInstalled: boolean; 49 50 function UserHasFHAUTHKey: boolean; 51 procedure GetCurrentRecurringOPMeals(Dest: TStrings; MealType: string = ''); 52 function OutpatientLocationConfigured(ALocation: string): boolean; 50 53 51 54 … … 96 99 else 97 100 OPMaxDays := 30; 101 if Results.Count > 4 then 102 OPDefaultDiet := StrToIntDef(Results[4], 0) 98 103 end; 99 104 end; … … 131 136 end; 132 137 133 function SubSetOfOPDiets (const StartFrom: string; Direction: Integer): TStrings;134 begin 135 CallV('ORWDFH OPDIETS', [ StartFrom, Direction]);138 function SubSetOfOPDiets: TStrings; 139 begin 140 CallV('ORWDFH OPDIETS', [nil]); 136 141 Result := RPCBrokerV.Results; 137 142 end; … … 176 181 if not PatchChecked then 177 182 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'); 181 186 PatchChecked := True; 182 187 end; … … 195 200 end; 196 201 202 procedure GetCurrentRecurringOPMeals(Dest: TStrings; MealType: string = ''); 203 begin 204 CallV('ORWDFH CURRENT MEALS', [Patient.DFN, MealType]); 205 Dest.Assign(RPCBrokerV.Results); 206 MixedCaseList(Dest); 207 end; 208 209 function OutpatientLocationConfigured(ALocation: string): boolean; 210 begin 211 Result := (sCallV('ORWDFH NFSLOC READY', [ALocation]) = '1'); 212 end; 213 197 214 end.
Note:
See TracChangeset
for help on using the changeset viewer.