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

    r456 r830  
    2626procedure ResetTIUPreferences;
    2727function AskCosignerForNotes: Boolean;
    28 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64): Boolean;
     28function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean;
    2929function AskCosignerForTitle(ATitle: integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean;
    3030function AskSubjectForNotes: Boolean;
     
    186186begin
    187187  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
    189190  if uNoteTitles.ShortList.Count > 0 then
    190191  begin
     
    198199begin
    199200  CallV('TIU LOAD BOILERPLATE TEXT', [Title, Patient.DFN, Encounter.VisitStr]);
    200   Dest.Assign(RPCBrokerV.Results);
     201  FastAssign(RPCBrokerV.Results, Dest);
    201202end;
    202203
     
    253254end;
    254255
    255 function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64): Boolean;
    256 begin
    257   Result := Piece(sCallV('TIU REQUIRES COSIGNATURE', [0, ADocument, AnAuthor]), U, 1) = '1';
     256function AskCosignerForDocument(ADocument: Integer; AnAuthor: Int64; ADate: TFMDateTime): Boolean;
     257begin
     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';
    258262end;
    259263
     
    372376  if RPCBrokerV.Results.Count > 0 then RPCBrokerV.Results.Delete(0);
    373377  SetListFMDateTime('mmm dd,yy hh:nn', TStringList(RPCBrokerV.Results), U, 2);
    374   Dest.Assign(RPCBrokerV.Results);
     378  FastAssign(RPCBrokerV.Results, Dest);
    375379end;
    376380
     
    399403      Results[i] := x;
    400404    end; {for}
    401     Dest.Assign(Results);
     405    FastAssign(RPCBrokerV.Results, Dest);
    402406  end; {with}
    403407end;
     
    417421    begin
    418422      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);
    420424    end;
    421425end;
     
    439443      Results[i] := x;
    440444    end; {for}
    441     Dest.Assign(Results);
     445    FastAssign(RPCBrokerV.Results, Dest);
    442446  end; {with}
    443447end;
     
    447451begin
    448452  CallV('TIU GET RECORD TEXT', [IEN]);
    449   Dest.Assign(RPCBrokerV.Results);
     453  FastAssign(RPCBrokerV.Results, Dest);
    450454end;
    451455
     
    453457begin
    454458  CallV('TIU DETAILED DISPLAY', [IEN]);
    455   Dest.Assign(RPCBrokerV.Results);
     459  FastAssign(RPCBrokerV.Results, Dest);
    456460end;
    457461
     
    558562      //Lines := Results;   'Lines' is being overwritten by subsequent Broker calls
    559563      if not Assigned(Lines) then Lines := TStringList.Create;
    560       Lines.Assign(Results);
     564      FastAssign(RPCBrokerV.Results, Lines);
    561565      // -----------------------------------------------------------------------
    562566    end;
Note: See TracChangeset for help on using the changeset viewer.