Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/fVitals.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/fVitals.pas
r459 r460 37 37 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 38 38 StdCtrls, ORCtrls, TeEngine, Series, TeeProcs, Chart, ExtCtrls, Grids, 39 Buttons, ORNet, ORFn, uConst, Menus, ORDtTmRng; {*KCM*} 39 Buttons, ORNet, ORFn, uConst, Menus, ORDtTmRng 40 , ComCtrls 41 , uVitals 42 ; {*KCM*} 40 43 41 44 type … … 114 117 end; 115 118 119 116 120 var 117 121 frmVitals: TfrmVitals; … … 120 124 121 125 procedure SelectVital(FontSize:integer; idx: integer); 122 procedure SelectVitals( FontSize: Integer);126 procedure SelectVitals(VitalType: String); 123 127 function VitalsGrid(const patient: string; date1, date2: TFMDateTime; restrictdates: integer; tests: TStrings): TStrings; //*DFN* 124 128 function VitalsMemo(const patient: string; date1, date2: TFMDateTime; tests: TStrings): TStrings; //*DFN* … … 127 131 128 132 uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports, 129 uAccessibleStringGrid ;133 uAccessibleStringGrid, uInit; 130 134 131 135 const … … 157 161 end; 158 162 159 163 function getVitalsStartDate : String; 164 begin 165 result := ''; 166 if Patient.Inpatient then 167 result := FormatDateTime('mm/dd/yy',Now - 7) 168 else 169 result := FormatDateTime('mm/dd/yy',IncMonth(Now,-6)); 170 end; 171 172 procedure SelectVitals(VitalType: String); 173 var 174 VLPtVitals : TGMV_VitalsViewForm; 175 GMV_FName, 176 GMV_LibName: String; 177 begin 178 { Availble Forms: 179 GMV_FName :='GMV_VitalsEnterDLG'; 180 GMV_FName :='GMV_VitalsEnterForm'; 181 GMV_FName :='GMV_VitalsViewForm'; 182 GMV_FName :='GMV_VitalsViewDLG'; 183 } 184 GMV_FName :='GMV_VitalsViewDLG'; 185 GMV_LibName :='GMV_VitalsViewEnter.dll'; 186 GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName; 187 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 188 // UpdateTimeOutInterval(5000); 189 if VitalsDLLHandle <> 0 then 190 begin 191 @VLPtVitals := GetProcAddress(VitalsDLLHandle,PChar(GMV_FName)); 192 if assigned(VLPtVitals) then 193 VLPtVitals(RPCBrokerV,Patient.DFN,FloatToStr(Encounter.Location), 194 getVitalsStartDate(),FormatDateTime('mm/dd/yy',Now), 195 GMV_APP_SIGNATURE, 196 GMV_CONTEXT,GMV_CONTEXT, 197 Patient.Name, 198 frmFrame.lblPtSSN.Caption + ' ' + frmFrame.lblPtAge.Caption, 199 Encounter.LocationName +U+ VitalType) 200 else 201 MessageDLG('Can''t find function "'+GMV_FName+'".',mtError,[mbok],0); 202 end 203 else 204 MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0); 205 @VLPtVitals := nil; 206 FreeLibrary(VitalsDLLHandle); 207 if DLLForceClose then 208 frmFrame.Close; // Fix for CQ: 7535 209 end; 210 211 (* 160 212 procedure SelectVitals(FontSize: Integer); 161 213 var … … 209 261 end; 210 262 end; 211 263 *) 212 264 procedure TfrmVitals.VGrid(griddata: TStrings); 213 265 var … … 249 301 function VitalsGrid(const patient: string; date1, date2: TFMDateTime; restrictdates: integer; tests: TStrings): TStrings; //*DFN* 250 302 begin 251 CallV(' ORQQVI1 GRID', [patient, date1, date2, restrictdates, tests]);303 CallV('GMV ORQQVI1 GRID', [patient, date1, date2, restrictdates, tests]); 252 304 Result := RPCBrokerV.Results; 253 305 end; … … 255 307 function VitalsMemo(const patient: string; date1, date2: TFMDateTime; tests: TStrings): TStrings; //*DFN* 256 308 begin 257 CallV(' ORQQVI1 DETAIL', [patient, date1, date2, 0, tests]);309 CallV('GMV ORQQVI1 DETAIL', [patient, date1, date2, 0, tests]); 258 310 Result := RPCBrokerV.Results; 259 311 end;
Note:
See TracChangeset
for help on using the changeset viewer.