Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/rMeds.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/rMeds.pas
r459 r460 35 35 procedure Refill(AnOrderID, PickUpAt: string); 36 36 function IsFirstDoseNowOrder(OrderID: string): boolean; 37 function GetMedStatus(MedID: TStringList): boolean; 37 38 38 39 implementation … … 96 97 if NonVAMed then 97 98 Instruct := 'Non-VA ' + Instruct; 98 IVFluid := Piece(x, U, 1) = ' IV';99 IVFluid := Piece(x, U, 1) = '~IV'; 99 100 SrvSeq := 0; 100 101 LastFill := MakeFMDateTime(Piece(x, U, 11)); … … 135 136 AMed: TMedListRec; 136 137 begin 138 //Check for CQ 9814 this should prevent an M error is DFn is not defined. 139 if patient=nil then exit; 140 if patient.DFN='' then exit; 137 141 ClinMeds := TList.Create; //IMO new 138 142 tmpInPtMeds := TList.Create; //IMO new … … 176 180 OutPtMeds.Sort(ByStatusThenStop); 177 181 NonVAMeds.Sort(ByStatusThenStop); 182 if Assigned(ClinMeds) then FreeAndNil(ClinMeds); 183 if Assigned(tmpInPtMeds) then FreeAndNil(tmpInPtMeds); 178 184 end; 179 185 … … 201 207 end; 202 208 209 function GetMedStatus(MedID: TStringList): boolean; 210 begin 211 Result := SCallV('ORWDX1 STCHANGE',[Patient.DFN, MedID])= '1'; 212 end; 213 203 214 end.
Note:
See TracChangeset
for help on using the changeset viewer.