Procedure

TfrmODVitals.SetupDialog

Directives

Override

Module

fODVitals

Last Modified

7/15/2014 3:26:42 PM

Visibility

Public

Overrides

TfrmODBase.SetupDialog

Owner

TfrmODVitals

Declaration

procedure SetupDialog(OrderAction: Integer; const ID: string); override;

Calls Hierarchy


TfrmODVitals.SetupDialog
 ├TResponses.SetControl
 │ ├TResponses.FindResponseByName
 │ └AssignBPText
 │   ├DisplayGroupToLinkType
 │   │ └DisplayGroupByName
 │   ├TResponses.EValueFor
 │   ├GetServiceIEN
 │   ├TResponses.IValueFor
 │   ├GetProcedureIEN
 │   ├ExpandOrderObjects
 │   │ ├TdmodShared.BoilerplateOK
 │   │ │ ├ErrCount
 │   │ │ ├AddErr
 │   │ │ └TdmodShared.LoadTIUObjects
 │   │ │   └GetObjectList
 │   │ └GetTemplateText
 │   │   └TEncounter.GetVisitStr
 │   │     └TEncounter.GetVisitCategory
 │   ├SetTemplateDialogCanceled
 │   ├CheckBoilerplate4Fields
 │   ├ExecuteTemplateOrBoilerPlate
 │   └WasTemplateDialogCanceled
 └TfrmODVitals.ControlChange
   ├TResponses.Clear
   ├TResponses.Update
   │ ├TResponses.FindResponseByName
   │ └TResponses.IENForPrompt
   └TResponses.GetOrderText
     ├TResponses.NextInstance
     ├TResponses.FindResponseByName
     ├TResponses.FormatResponse
     │ └TResponses.FindResponseByIEN
     └TResponses.AppendChildren
       ├TResponses.FindPromptByIEN
       ├TResponses.FindResponseByIEN
       └TResponses.FormatResponse...

Calls

Name Declaration Comments
TfrmODVitals.ControlChange procedure ControlChange(Sender: TObject); -
TResponses.SetControl procedure SetControl(AControl: TControl; const APromptID: string; AnInstance: Integer); -


Source

92    procedure TfrmODVitals.SetupDialog(OrderAction: Integer; const ID: string);
93    begin
94      inherited;
95      if OrderAction in [ORDER_COPY, ORDER_EDIT, ORDER_QUICK] then with Responses do
96      begin
97        Changing := True;
98        SetControl(cboMeasurement, 'ORDERABLE', 1);
99        SetControl(cboSchedule,    'SCHEDULE',  1);
100       SetControl(calStart,       'START',     1);
101       SetControl(calStop,        'STOP',      1);
102       SetControl(txtComment,     'COMMENT',   1);
103       Changing := False;
104       ControlChange(Self);
105     end;
106   end;