Changeset 830 for cprs/trunk/CPRS-Chart/rTIU.pas
- Timestamp:
- Jul 7, 2010, 4:51:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/rTIU.pas
r456 r830 26 26 procedure ResetTIUPreferences; 27 27 function AskCosignerForNotes: Boolean; 28 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64 ): Boolean;28 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean; 29 29 function AskCosignerForTitle(ATitle: integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean; 30 30 function AskSubjectForNotes: Boolean; … … 186 186 begin 187 187 if uNoteTitles = nil then LoadNoteTitles; 188 Dest.AddStrings(uNoteTitles.ShortList); 188 Dest.AddStrings(uNoteTitles.Shortlist); 189 //FastAddStrings(uNoteTitles.ShortList, Dest); // backed out from v27.27 - CQ #14619 - RV 189 190 if uNoteTitles.ShortList.Count > 0 then 190 191 begin … … 198 199 begin 199 200 CallV('TIU LOAD BOILERPLATE TEXT', [Title, Patient.DFN, Encounter.VisitStr]); 200 Dest.Assign(RPCBrokerV.Results);201 FastAssign(RPCBrokerV.Results, Dest); 201 202 end; 202 203 … … 253 254 end; 254 255 255 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64): Boolean; 256 begin 257 Result := Piece(sCallV('TIU REQUIRES COSIGNATURE', [0, ADocument, AnAuthor]), U, 1) = '1'; 256 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean; 257 begin 258 if TIUPatch175Installed then 259 Result := Piece(sCallV('TIU REQUIRES COSIGNATURE', [0, ADocument, AnAuthor, ADate]), U, 1) = '1' 260 else 261 Result := Piece(sCallV('TIU REQUIRES COSIGNATURE', [0, ADocument, AnAuthor]), U, 1) = '1'; 258 262 end; 259 263 … … 372 376 if RPCBrokerV.Results.Count > 0 then RPCBrokerV.Results.Delete(0); 373 377 SetListFMDateTime('mmm dd,yy hh:nn', TStringList(RPCBrokerV.Results), U, 2); 374 Dest.Assign(RPCBrokerV.Results);378 FastAssign(RPCBrokerV.Results, Dest); 375 379 end; 376 380 … … 399 403 Results[i] := x; 400 404 end; {for} 401 Dest.Assign(Results);405 FastAssign(RPCBrokerV.Results, Dest); 402 406 end; {with} 403 407 end; … … 417 421 begin 418 422 CallV('TIU DOCUMENTS BY CONTEXT', [3, Context, Patient.DFN, Early, Late, Person, OccLim, SortSeq, SHOW_ADDENDA]); 419 Dest.Assign(RPCBrokerV.Results);423 FastAssign(RPCBrokerV.Results, Dest); 420 424 end; 421 425 end; … … 439 443 Results[i] := x; 440 444 end; {for} 441 Dest.Assign(Results);445 FastAssign(RPCBrokerV.Results, Dest); 442 446 end; {with} 443 447 end; … … 447 451 begin 448 452 CallV('TIU GET RECORD TEXT', [IEN]); 449 Dest.Assign(RPCBrokerV.Results);453 FastAssign(RPCBrokerV.Results, Dest); 450 454 end; 451 455 … … 453 457 begin 454 458 CallV('TIU DETAILED DISPLAY', [IEN]); 455 Dest.Assign(RPCBrokerV.Results);459 FastAssign(RPCBrokerV.Results, Dest); 456 460 end; 457 461 … … 558 562 //Lines := Results; 'Lines' is being overwritten by subsequent Broker calls 559 563 if not Assigned(Lines) then Lines := TStringList.Create; 560 Lines.Assign(Results);564 FastAssign(RPCBrokerV.Results, Lines); 561 565 // ----------------------------------------------------------------------- 562 566 end;
Note:
See TracChangeset
for help on using the changeset viewer.