Changeset 830 for cprs/trunk/CPRS-Chart/rLabs.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/rLabs.pas
r456 r830 4 4 5 5 uses SysUtils, Classes, ORNet, ORFn; 6 7 type 8 9 TLabPatchInstalled = record 10 PatchInstalled: boolean; 11 PatchChecked: boolean; 12 end; 13 6 14 7 15 function AtomicTests(const StartFrom: string; Direction: Integer): TStrings; … … 43 51 function GetChart(const PatientDFN: string; ADate1, ADate2: TFMDateTime; 44 52 spec, test: string): TStrings; //*DFN* 45 procedure PrintLabsToDevice(AReport ,ADaysBack: Integer;53 procedure PrintLabsToDevice(AReport: string; ADaysBack: Integer; 46 54 const PatientDFN, ADevice: string; ATests: TStrings; 47 55 var ErrMsg: string; ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string); 48 function GetFormattedLabReport(AReport ,ADaysBack: Integer; const PatientDFN: string;56 function GetFormattedLabReport(AReport: string; ADaysBack: Integer; const PatientDFN: string; 49 57 ATests: TStrings; ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string): TStrings; 50 58 function TestInfo(Test: String): TStrings; 59 function LabPatchInstalled: boolean; 60 51 61 52 62 implementation 53 63 54 uses rCore, uCore, graphics; 64 uses rCore, uCore, graphics, rMisc; 65 66 const 67 PSI_05_118 = 'LR*5.2*364'; 68 var 69 uLabPatchInstalled: TLabPatchInstalled; 55 70 56 71 function AtomicTests(const StartFrom: string; Direction: Integer): TStrings; … … 258 273 end; 259 274 260 procedure PrintLabsToDevice(AReport ,ADaysBack: Integer;275 procedure PrintLabsToDevice(AReport: string; ADaysBack: Integer; 261 276 const PatientDFN, ADevice: string; ATests: TStrings; var ErrMsg: string; 262 277 ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string); … … 300 315 end; 301 316 302 function GetFormattedLabReport(AReport ,ADaysBack: Integer;317 function GetFormattedLabReport(AReport: String; ADaysBack: Integer; 303 318 const PatientDFN: string; ATests: TStrings; ADate1, ADate2: TFMDateTime; 304 319 ARemoteSiteID, ARemoteQuery: string): TStrings; … … 348 363 end; 349 364 365 function LabPatchInstalled: boolean; 366 begin 367 with uLabPatchInstalled do 368 if not PatchChecked then 369 begin 370 PatchInstalled := ServerHasPatch(PSI_05_118); 371 PatchChecked := True; 372 end; 373 Result := uLabPatchInstalled.PatchInstalled; 374 end; 375 350 376 end.
Note:
See TracChangeset
for help on using the changeset viewer.