Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/fVitals.pas

    r459 r460  
    3737  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    3838  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*}
    4043
    4144type
     
    114117  end;
    115118
     119
    116120var
    117121  frmVitals: TfrmVitals;
     
    120124
    121125procedure SelectVital(FontSize:integer; idx: integer);
    122 procedure SelectVitals(FontSize: Integer);
     126procedure SelectVitals(VitalType: String);
    123127function VitalsGrid(const patient: string; date1, date2: TFMDateTime; restrictdates: integer; tests: TStrings): TStrings;  //*DFN*
    124128function VitalsMemo(const patient: string; date1, date2: TFMDateTime; tests: TStrings): TStrings;  //*DFN*
     
    127131
    128132uses fCover, uCore, rCore, fVit, fFrame, fEncnt, fVisit, fRptBox, rReports,
    129   uAccessibleStringGrid;
     133  uAccessibleStringGrid, uInit;
    130134
    131135const
     
    157161end;
    158162
    159 
     163function getVitalsStartDate : String;
     164begin
     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));
     170end;
     171
     172procedure SelectVitals(VitalType: String);
     173var
     174  VLPtVitals : TGMV_VitalsViewForm;
     175  GMV_FName,
     176  GMV_LibName: String;
     177begin
     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
     209end;
     210
     211(*
    160212procedure SelectVitals(FontSize: Integer);
    161213var
     
    209261  end;
    210262end;
    211 
     263  *)
    212264procedure TfrmVitals.VGrid(griddata: TStrings);
    213265var
     
    249301function VitalsGrid(const patient: string; date1, date2: TFMDateTime; restrictdates: integer; tests: TStrings): TStrings;  //*DFN*
    250302begin
    251   CallV('ORQQVI1 GRID', [patient, date1, date2, restrictdates, tests]);
     303  CallV('GMV ORQQVI1 GRID', [patient, date1, date2, restrictdates, tests]);
    252304  Result := RPCBrokerV.Results;
    253305end;
     
    255307function VitalsMemo(const patient: string; date1, date2: TFMDateTime; tests: TStrings): TStrings;  //*DFN*
    256308begin
    257   CallV('ORQQVI1 DETAIL', [patient, date1, date2, 0, tests]);
     309  CallV('GMV ORQQVI1 DETAIL', [patient, date1, date2, 0, tests]);
    258310  Result := RPCBrokerV.Results;
    259311end;
Note: See TracChangeset for help on using the changeset viewer.