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/rReports.pas

    r459 r460  
    2424procedure RemoteQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback,
    2525            AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String);
     26procedure DirectQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback,
     27            AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String);
    2628function ReportQualifierType(ReportType: Integer): Integer;
    2729function ImagingParams: String;
     30function AutoRDV: String;
     31function HDRActive: String;
    2832procedure PrintReportsToDevice(AReport: string; const Qualifier, Patient,
    2933     ADevice: string; var ErrMsg: string; aComponents: TStringlist;
     
    5256procedure SetAdhocLookup(aLookup: integer);
    5357procedure GetRemoteData(Dest: TStrings; aHandle: string; aItem: PChar);
     58procedure ModifyHDRData(Dest: string; aHandle: string; aID: string);
    5459procedure PrintVReports(Dest, ADevice, AHeader: string; AReport: TStringList);
    5560
     
    157162      LoadTree;
    158163    end;
    159   for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 14));
     164  for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 15));
    160165end;
    161166
     
    292297var
    293298  HSType, DaysBack, ExamID, MaxOcc, AReport, x: string;
    294   Alpha, Omega: double;
     299  Alpha, Omega, Trans: double;
    295300begin
    296301  HSType := '';
     
    303308      Alpha := StrToFMDateTime(Piece(Qualifier,';',1));
    304309      Omega := StrToFMDateTime(Piece(Qualifier,';',2));
     310      if Alpha > Omega then
     311        begin
     312          Trans := Omega;
     313          Omega := Alpha;
     314          Alpha := Trans;
     315        end;
    305316      MaxOcc := Piece(Qualifier,';',3);
    306317      SetPiece(AHSTag,';',4,MaxOcc);
     
    346357end;
    347358
     359procedure DirectQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback,
     360            AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String);
     361var
     362  AReport: string;
     363begin
     364  AReport := AReportType + ';1' + '~' + AHSTag;
     365  if length(AHSType) > 0 then
     366    AHSType := piece(AHSType,':',1) + ';' + piece(AHSType,':',2);  //format for backward compatibility
     367  CallV('XWB DIRECT RPC', [ASite, ARemoteRPC, 0, Patient.DFN + ';' + Patient.ICN,
     368            AReport, AHSType, ADaysBack, AExamID, Alpha, AOmega]);
     369  QuickCopy(RPCBrokerV.Results,Dest);
     370end;
     371
    348372function ReportQualifierType(ReportType: Integer): Integer;
    349373var
     
    359383begin
    360384  Result := sCallV('ORWTPD GETIMG',[nil]);
     385end;
     386
     387function AutoRDV: String;
     388begin
     389  Result := sCallV('ORWCIRN AUTORDV', [nil]);
     390end;
     391
     392function HDRActive: String;
     393begin
     394  Result := sCallV('ORWCIRN HDRON', [nil]);
    361395end;
    362396
     
    740774end;
    741775
     776procedure ModifyHDRData(Dest: string; aHandle: string; aID: string);
     777begin
     778  CallV('ORWRP4 HDR MODIFY', [aHandle, aID]);
     779end;
     780
    742781procedure PrintBitmap(Canvas:  TCanvas; DestRect:  TRect;  Bitmap:  TBitmap);
    743782var
Note: See TracChangeset for help on using the changeset viewer.