Changeset 829 for cprs/trunk/CPRS-Chart/Orders/rODBase.pas
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Orders/rODBase.pas
r456 r829 1 1 unit rODBase; 2 2 3 interface 3 interface 4 4 5 5 uses SysUtils, Windows, Classes, ORNet, ORFn, uCore, uConst, rOrders; … … 132 132 implementation 133 133 134 uses TRPCB, uOrders, uODBase ;134 uses TRPCB, uOrders, uODBase, fODBase; 135 135 136 136 var … … 182 182 begin 183 183 IVDurVal := Copy(IVDuration,1,length(IVDuration)-1); 184 TResponse(ResponseList.Items[j]).IValue := 'for ' + IVDurVal + ' hours';184 TResponse(ResponseList.Items[j]).IValue := 'for ' + IVDurVal + ' hours'; 185 185 end 186 186 else if (Pos('D',upperCase(IVDuration))>0) then 187 187 begin 188 IVDurVal := Copy(IVDuration,1,length(IVDuration)-1); 189 TResponse(ResponseList.Items[j]).IValue := 'for ' + IVDurVal + 'days'; 188 if Pos('DOSES', upperCase(IVDuration)) > 0 then 189 begin 190 IVDurVal := Copy(IVDuration, 1, length(IVDuration)-5); 191 TResponse(ResponseList.Items[j]).IValue := 'for a total of ' + IVDurVal + ' doses'; 192 end 193 else 194 begin 195 IVDurVal := Copy(IVDuration,1,length(IVDuration)-1); 196 TResponse(ResponseList.Items[j]).IValue := 'for ' + IVDurVal + ' days'; 197 end; 190 198 end 191 199 else if ((Pos('ML',upperCase(IVDuration))>0) or (Pos('CC',upperCase(IVDuration))>0)) then … … 245 253 begin 246 254 CallV('ORWDXQ GETQLST', [DGroup]); 247 Dest.Assign(RPCBrokerV.Results);255 FastAssign(RPCBrokerV.Results, Dest); 248 256 end; 249 257 … … 389 397 HasObjects := FALSE; 390 398 TempBroker := TStringlist.Create; 391 TempBroker.Assign(RPCBrokerV.Results);399 FastAssign(RPCBrokerV.Results, TempBroker); 392 400 try 393 401 with TempBroker do while i < Count do … … 427 435 428 436 procedure LoadResponses(Dest: TList; const OrderID: string; var HasObjects: boolean); 429 begin 430 CallV('ORWDX LOADRSP', [OrderID]); 437 var 438 Transfer: boolean; 439 begin 440 if ((XferOuttoInOnMeds = True) or (XfInToOutNow = True)) and (CharAt(OrderID,1)='C') then Transfer := true 441 else Transfer := false; 442 CallV('ORWDX LOADRSP', [OrderID, Transfer]); 431 443 ExtractToResponses(Dest, HasObjects); 432 444 end; … … 704 716 begin 705 717 uMedRoutes := TStringList.Create; 706 uMedRoutes.Assign(Results);718 FastAssign(RPCBrokerV.Results, uMedRoutes); 707 719 for i := 0 to Results.Count - 1 do if Length(Piece(Results[i], U, 3)) > 0 then 708 720 begin … … 714 726 end; {with RPCBrokerV} 715 727 end; {if uMedRoutes} 716 Dest.AddStrings(uMedRoutes);728 FastAddStrings(uMedRoutes, Dest); 717 729 end; 718 730 … … 758 770 begin 759 771 CallV('ORWDPS32 FORMALT', [AnIEN, PSType]); 760 AList.Assign(RPCBrokerV.Results);772 FastAssign(RPCBrokerV.Results, AList); 761 773 end; 762 774 … … 783 795 { Returns init values for inpatient meds dialog. The results must be used immediately. } 784 796 begin 785 CallV('ORWDPS32 DLGSLCT', [PST_UNIT_DOSE ]);797 CallV('ORWDPS32 DLGSLCT', [PST_UNIT_DOSE, patient.dfn, patient.location]); 786 798 Result := RPCBrokerV.Results; 787 799 end; … … 790 802 { Returns init values for IV Fluids dialog. The results must be used immediately. } 791 803 begin 792 CallV('ORWDPS32 DLGSLCT', [PST_IV_FLUIDS ]);804 CallV('ORWDPS32 DLGSLCT', [PST_IV_FLUIDS, patient.dfn, patient.location]); 793 805 Result := RPCBrokerV.Results; 794 806 end; … … 802 814 { Returns init values for outpatient meds dialog. The results must be used immediately. } 803 815 begin 804 CallV('ORWDPS32 DLGSLCT', [PST_OUTPATIENT ]);816 CallV('ORWDPS32 DLGSLCT', [PST_OUTPATIENT, patient.dfn, patient.location]); 805 817 Result := RPCBrokerV.Results; 806 818 end;
Note:
See TracChangeset
for help on using the changeset viewer.