Function

IsActiveCode

Module

rPCE

Last Modified

10/7/2014 12:48:38 PM

Scope

Interfaced

Declaration

function  IsActiveCode(ACode: string; LexApp: integer; ADate: TFMDateTime = 0): boolean;

Called-By Hierarchy


                                              IsActiveCode
                                         IsActiveICDCode┤ 
                   TfrmODProc.GetProvDxandValidateCode┤ │ 
                              TfrmODProc.SetupDialog┤ │ │ 
                            TfrmODProc.cboProcSelect┘ │ │ 
                   TfrmODCslt.GetProvDxandValidateCode┤ │ 
                              TfrmODCslt.SetupDialog┤ │ │ 
                         TfrmODCslt.treServiceChange┤ │ │ 
                      TfrmODCslt.treServiceKeyDown┘ │ │ │ 
                         TfrmODCslt.cboServiceSelect┘ │ │ 
                         TfrmODCslt.cboServiceExit┘   │ │ 
                                   ActivateOrderDialog┤ │ 
                           TfrmRemDlg.btnFinishClick┤ │ │ 
           TfrmConsults.mnuActNewConsultRequestClick┤ │ │ 
                   TfrmConsults.cmdNewConsultClick┘ │ │ │ 
                TfrmConsults.mnuActNewProcedureClick┤ │ │ 
                      TfrmConsults.cmdNewProcClick┘ │ │ │ 
                                        ChangeOrders┤ │ │ 
                      TfrmOrders.mnuActChangeClick┤ │ │ │ 
                        TfrmMeds.mnuActChangeClick┘ │ │ │ 
                                     ChangeOrdersEvt┤ │ │ 
                                          CopyOrders┤ │ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │ 
                           TfrmODActive.btnOKClick┘ │ │ │ 
                                      TransferOrders┤ │ │ 
                        TfrmOrders.mnuActCopyClick┤ │ │ │ 
                          TfrmMeds.mnuActCopyClick┤ │ │ │ 
                           TfrmODActive.btnOKClick┘ │ │ │ 
                            TfrmOrders.lstWriteClick┤ │ │ 
               TfrmOrders.PlaceOrderForDefaultDialog┤ │ │ 
                  TfrmOrders.DisplayDefaultDlgList┤ │ │ │ 
                       TfrmOrders.ResetOrderPage┘ │ │ │ │ 
               TfrmOrders.btnDelayedOrderClick┘   │ │ │ │ 
                                 DisplayEvntDialog┤ │ │ │ 
                             SetDelayEventForMed┘ │ │ │ │ 
                      TfrmMeds.mnuActCopyClick┘   │ │ │ │ 
                                 DisplayEvntDialog┤ │ │ │ 
                                  SetViewForCopy┘ │ │ │ │ 
                    TfrmOrders.mnuActCopyClick┘   │ │ │ │ 
                                 DisplayEvntDialog┘ │ │ │ 
                                ExecuteChangeEvt┘   │ │ │ 
                 TfrmOrders.mnuActChgEvntClick┘     │ │ │ 
                             TfrmMeds.mnuActNewClick┤ │ │ 
                           TfrmOMNavA.ActivateDialog┤ │ │ 
                         TfrmOMNavA.grdMenuKeyDown┤ │ │ │ 
                         TfrmOMNavA.grdMenuMouseUp┘ │ │ │ 
                                TfrmOMSet.DoNextItem┘ │ │ 
                              TfrmOMSet.InsertList┤   │ │ 
                               ActivateOrderList┘ │   │ │ 
                     TfrmRemDlg.btnFinishClick┤   │   │ │ 
                             ActivateOrderHTML┤   │   │ │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┘ │   │   │ │ 
                              ActivateOrderSet┤   │   │ │ 
                   TfrmRemDlg.btnFinishClick┤ │   │   │ │ 
TfrmConsults.mnuActNewConsultRequestClick...┤ │   │   │ │ 
     TfrmConsults.mnuActNewProcedureClick...┤ │   │   │ │ 
                    TfrmOrders.lstWriteClick┤ │   │   │ │ 
    TfrmOrders.PlaceOrderForDefaultDialog...┤ │   │   │ │ 
                     TfrmMeds.mnuActNewClick┤ │   │   │ │ 
                TfrmOMNavA.ActivateDialog...┤ │   │   │ │ 
                     TfrmOMSet.DoNextItem...┘ │   │   │ │ 
                       TfrmOMNavA.DoSelectList┘   │   │ │ 
                     TfrmOMNavA.grdMenuKeyUp┤     │   │ │ 
                   TfrmOMNavA.grdMenuMouseUp┘     │   │ │ 
                                        SkipToNext┤   │ │ 
                         TfrmOMSet.DoNextItem...┘ │   │ │ 
                            TfrmOMSet.UMDelayEvent┘   │ │ 
                            TfrmProblems.UpdateProblem┤ │ 
                       TfrmProblems.lstProbActsClick┘ │ │ 
                   TfrmProblems.wgProbDataDblClick┤   │ │ 
                         TfrmProblems.lstViewClick┘   │ │ 
                 TfrmProblems.HighlightDuplicate┘     │ │ 
                       TfrmProblems.AddProblem┤       │ │ 
            TfrmProblems.lstProbActsClick...┤ │       │ │ 
               TfrmProblems.lstProbPickClick┤ │       │ │ 
            TfrmProblems.lstProbPickDblClick┤ │       │ │ 
            TfrmProblems.edProbEntKeyPress┘ │ │       │ │ 
                    TfrmProblems.UMPLLexicon┘ │       │ │ 
                 TfrmdlgProb.bbChangeProbClick┘       │ │ 
                           TfrmProblems.RestoreProblem┤ │ 
                    TfrmProblems.lstProbActsClick...┘ │ │ 
                               TfrmdlgProb.bbFileClick┘ │ 
                                         IsActiveCPTCode┤ 
                                         IsActiveSCTCode┘ 
                         TfrmProblems.UpdateProblem...┤   
                               TfrmdlgProb.bbFileClick┘   

Called-By

Name Declaration Comments
IsActiveCPTCode function IsActiveCPTCode(ACode: string; ADate: TFMDateTime = 0): boolean; -
IsActiveICDCode function IsActiveICDCode(ACode: string; ADate: TFMDateTime = 0): boolean; -
IsActiveSCTCode function IsActiveSCTCode(ACode: string; ADate: TFMDateTime = 0): boolean; -


Source

298   function  IsActiveCode(ACode: string; LexApp: integer; ADate: TFMDateTime = 0): boolean;
299   var
300     CodeSys: string;
301   begin
302     case LexApp of
303     LX_ICD: CodeSys := 'ICD';
304     LX_CPT: CodeSys := 'CHP';
305     LX_SCT: CodeSys := 'GMPX';
306     end;
307     Result := (sCallV('ORWPCE ACTIVE CODE',[ACode, CodeSys, ADate]) = '1');
308   end;