Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Vitals
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/Vitals/uVitals.pas
r459 r460 5 5 6 6 uses 7 SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms; 7 SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms 8 , TRPCB 9 ; 8 10 9 11 const … … 32 34 procedure SetVitalsMetric(const Value: boolean); 33 35 procedure SetVitCVPmmHg(const Value: boolean); 34 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE ): boolean;36 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE; Show: boolean = true): boolean; 35 37 function IsNumericWeight(const x: string): Boolean; 38 procedure CloseVitalsDLL; 36 39 37 40 const … … 77 80 VitalLocationStr = 'VST^HL^'; 78 81 82 SHARE_DIR = '\VISTA\Common Files\'; 83 GMV_CONTEXT = 'OR CPRS GUI CHART'; 84 GMV_APP_SIGNATURE = 'CPRS'; 85 GMV_DEFAULT_TEMPLATE = ''; 86 79 87 type 80 88 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 127 var 128 VitalsDLLHandle : THandle; 129 DLLForceClose : Boolean = False; 130 81 131 82 132 const … … 128 178 uses 129 179 uCore, rCore, rVitals, Contnrs, mVitBase, mVitMetric, fVitalsDate; 130 180 131 181 var 132 182 uVitalFrames: TComponentList = nil; 183 184 procedure CloseVitalsDLL; 185 var 186 VitalsExit : TGMV_VitalsExit; 187 begin 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; 195 end; 133 196 134 197 function VitalErrorText(VType: TVitalType): string; … … 545 608 end; 546 609 547 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE): boolean; 610 611 function ValidVitalsDate(var ADate: TFMDateTime; SkipFirst: boolean = FALSE; Show: boolean = true): boolean; //AGP Change 26.1 548 612 var 549 613 frmVitalsDate: TfrmVitalsDate; … … 571 635 try 572 636 frmVitalsDate.dteVitals.FMDateTime := ADate; 637 frmVitalsDate.btnNow.Visible := Show; //AGP Change 26.1 573 638 if frmVitalsDate.ShowModal = mrOK then 574 639 ADate := frmVitalsDate.dteVitals.FMDateTime; … … 581 646 end; 582 647 end; 648 583 649 function IsNumericWeight(const x: string): Boolean; 584 650 var
Note:
See TracChangeset
for help on using the changeset viewer.