Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/rReports.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/rReports.pas
r459 r460 24 24 procedure RemoteQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback, 25 25 AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String); 26 procedure DirectQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback, 27 AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String); 26 28 function ReportQualifierType(ReportType: Integer): Integer; 27 29 function ImagingParams: String; 30 function AutoRDV: String; 31 function HDRActive: String; 28 32 procedure PrintReportsToDevice(AReport: string; const Qualifier, Patient, 29 33 ADevice: string; var ErrMsg: string; aComponents: TStringlist; … … 52 56 procedure SetAdhocLookup(aLookup: integer); 53 57 procedure GetRemoteData(Dest: TStrings; aHandle: string; aItem: PChar); 58 procedure ModifyHDRData(Dest: string; aHandle: string; aID: string); 54 59 procedure PrintVReports(Dest, ADevice, AHeader: string; AReport: TStringList); 55 60 … … 157 162 LoadTree; 158 163 end; 159 for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 1 4));164 for i := 0 to uTree.Count - 1 do Dest.Add(Pieces(uTree[i], '^', 1, 15)); 160 165 end; 161 166 … … 292 297 var 293 298 HSType, DaysBack, ExamID, MaxOcc, AReport, x: string; 294 Alpha, Omega : double;299 Alpha, Omega, Trans: double; 295 300 begin 296 301 HSType := ''; … … 303 308 Alpha := StrToFMDateTime(Piece(Qualifier,';',1)); 304 309 Omega := StrToFMDateTime(Piece(Qualifier,';',2)); 310 if Alpha > Omega then 311 begin 312 Trans := Omega; 313 Omega := Alpha; 314 Alpha := Trans; 315 end; 305 316 MaxOcc := Piece(Qualifier,';',3); 306 317 SetPiece(AHSTag,';',4,MaxOcc); … … 346 357 end; 347 358 359 procedure DirectQuery(Dest: TStrings; AReportType: string; AHSType, ADaysback, 360 AExamID: string; Alpha, AOmega: Double; ASite, ARemoteRPC, AHSTag: String); 361 var 362 AReport: string; 363 begin 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); 370 end; 371 348 372 function ReportQualifierType(ReportType: Integer): Integer; 349 373 var … … 359 383 begin 360 384 Result := sCallV('ORWTPD GETIMG',[nil]); 385 end; 386 387 function AutoRDV: String; 388 begin 389 Result := sCallV('ORWCIRN AUTORDV', [nil]); 390 end; 391 392 function HDRActive: String; 393 begin 394 Result := sCallV('ORWCIRN HDRON', [nil]); 361 395 end; 362 396 … … 740 774 end; 741 775 776 procedure ModifyHDRData(Dest: string; aHandle: string; aID: string); 777 begin 778 CallV('ORWRP4 HDR MODIFY', [aHandle, aID]); 779 end; 780 742 781 procedure PrintBitmap(Canvas: TCanvas; DestRect: TRect; Bitmap: TBitmap); 743 782 var
Note:
See TracChangeset
for help on using the changeset viewer.