Ignore:
Timestamp:
Jul 7, 2010, 4:51:54 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrading to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/rLabs.pas

    r456 r830  
    44
    55uses SysUtils, Classes, ORNet, ORFn;
     6
     7type
     8
     9  TLabPatchInstalled = record
     10    PatchInstalled: boolean;
     11    PatchChecked: boolean;
     12  end;
     13
    614
    715function AtomicTests(const StartFrom: string; Direction: Integer): TStrings;
     
    4351function GetChart(const PatientDFN: string; ADate1, ADate2: TFMDateTime;
    4452  spec, test: string): TStrings;  //*DFN*
    45 procedure PrintLabsToDevice(AReport, ADaysBack: Integer;
     53procedure PrintLabsToDevice(AReport: string; ADaysBack: Integer;
    4654  const PatientDFN, ADevice: string; ATests: TStrings;
    4755  var ErrMsg: string; ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string);
    48 function GetFormattedLabReport(AReport, ADaysBack: Integer; const PatientDFN: string;
     56function GetFormattedLabReport(AReport: string; ADaysBack: Integer; const PatientDFN: string;
    4957  ATests: TStrings; ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string): TStrings;
    5058function TestInfo(Test: String): TStrings;
     59function LabPatchInstalled: boolean;
     60
    5161
    5262implementation
    5363
    54 uses rCore, uCore, graphics;
     64uses rCore, uCore, graphics, rMisc;
     65
     66const
     67  PSI_05_118 = 'LR*5.2*364';
     68var
     69  uLabPatchInstalled: TLabPatchInstalled;
    5570
    5671function AtomicTests(const StartFrom: string; Direction: Integer): TStrings;
     
    258273end;
    259274
    260 procedure PrintLabsToDevice(AReport, ADaysBack: Integer;
     275procedure PrintLabsToDevice(AReport: string; ADaysBack: Integer;
    261276 const PatientDFN, ADevice: string; ATests: TStrings; var ErrMsg: string;
    262277 ADate1, ADate2: TFMDateTime; ARemoteSiteID, ARemoteQuery: string);
     
    300315end;
    301316
    302 function GetFormattedLabReport(AReport, ADaysBack: Integer;
     317function GetFormattedLabReport(AReport: String; ADaysBack: Integer;
    303318  const PatientDFN: string; ATests: TStrings; ADate1, ADate2: TFMDateTime;
    304319  ARemoteSiteID, ARemoteQuery: string): TStrings;
     
    348363end;
    349364
     365function LabPatchInstalled: boolean;
     366begin
     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;
     374end;
     375
    350376end.
Note: See TracChangeset for help on using the changeset viewer.