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/Vitals/uVitals.pas

    r459 r460  
    55
    66uses
    7   SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms;
     7  SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms
     8  , TRPCB
     9  ;
    810
    911const
     
    3234procedure SetVitalsMetric(const Value: boolean);
    3335procedure SetVitCVPmmHg(const Value: boolean);
    34 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE): boolean;
     36function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE; Show: boolean = true): boolean;
    3537function IsNumericWeight(const x: string): Boolean;
     38procedure CloseVitalsDLL;
    3639
    3740const
     
    7780  VitalLocationStr = 'VST^HL^';
    7881
     82  SHARE_DIR = '\VISTA\Common Files\';
     83  GMV_CONTEXT = 'OR CPRS GUI CHART';
     84  GMV_APP_SIGNATURE = 'CPRS';
     85  GMV_DEFAULT_TEMPLATE = '';
     86
    7987type
    8088  VitalTags = TAG_VITBP..TAG_VITPAIN;
     89
     90  TGMV_VitalsEnterForm = function(
     91        aBroker:TRPCBroker;
     92        aPatient, aLocation, aTemplate,aSignature:String;
     93        aDateTime:TDateTime): TCustomForm; stdcall;
     94
     95  TGMV_VitalsEnterDLG = function(
     96        aBroker:TRPCBroker;
     97        aDFN, aLocation, aTemplate,aSignature:String;
     98        aDateTime:TDateTime;
     99        aName,anInfo:String): Integer; stdcall;
     100
     101  TGFM_VitalsViewDLG = function(
     102        aBroker:TRPCBroker;
     103        aDFN, aLocation,
     104        DateStart, DateStop,
     105        aSignature,
     106        aContextIn,aContextOut,
     107        aName,anInfo,aHospitalName:String): Integer; stdcall;
     108
     109  TGMV_VitalsViewForm = function(
     110        aBroker:TRPCBroker;
     111        aDFN, aLocation,
     112        DateStart, DateStop,
     113        aSignature,
     114        aContextIn,aContextOut,
     115        aName,anInfo,
     116        aDynamicParameter {HospitolName^Vital Type Abbreviation} :String): TCustomForm; stdcall;
     117
     118  TGMV_LatestVitalsList = function (
     119        aBroker:TRPCBroker;
     120        aDFN,
     121        aDelim:String;
     122        bSilent:Boolean
     123        ): TStringList; stdcall;
     124
     125  TGMV_VitalsExit = Procedure;
     126
     127var
     128  VitalsDLLHandle : THandle;
     129  DLLForceClose : Boolean = False;
     130
    81131
    82132const
     
    128178uses
    129179  uCore, rCore, rVitals, Contnrs, mVitBase, mVitMetric, fVitalsDate;
    130 
     180 
    131181var
    132182  uVitalFrames: TComponentList = nil;
     183
     184procedure CloseVitalsDLL;
     185var
     186  VitalsExit : TGMV_VitalsExit;
     187begin
     188  if VitalsDLLHandle <> 0 then
     189  begin
     190    @VitalsExit := GetProcAddress(VitalsDLLHandle,PChar('GMV_VitalsExit'));
     191    if assigned(VitalsExit) then
     192      VitalsExit();
     193    DLLForceClose := True;
     194  end;
     195end;
    133196
    134197function VitalErrorText(VType: TVitalType): string;
     
    545608end;
    546609
    547 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE): boolean;
     610
     611function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE; Show: boolean = true): boolean;   //AGP Change 26.1
    548612var
    549613  frmVitalsDate: TfrmVitalsDate;
     
    571635      try
    572636        frmVitalsDate.dteVitals.FMDateTime := ADate;
     637        frmVitalsDate.btnNow.Visible := Show; //AGP Change 26.1
    573638        if frmVitalsDate.ShowModal = mrOK then
    574639          ADate := frmVitalsDate.dteVitals.FMDateTime;
     
    581646  end;
    582647end;
     648
    583649function IsNumericWeight(const x: string): Boolean;
    584650var
Note: See TracChangeset for help on using the changeset viewer.