Function

SetConsultFlags

Module

UBACore

Last Modified

7/15/2014 3:26:34 PM

Comments

Return updated flags.
return updated flags.

Scope

Interfaced

Declaration

function  SetConsultFlags(pPLFactors: string;pFlagsAsIs: string):string; //  return updated flags.

Called-By Hierarchy


                                                       SetConsultFlags
                                                     GetConsultFlags┘ 
                                           TSigItems.UpdateListBox┘   
                                               ExecuteSignOrders┤     
                                    TfrmOrders.mnuActSignClick┘ │     
                                            TfrmReview.BuildList┘     
                                      TfrmReview.BuildFullList┤       
                                               ReviewChanges┘ │       
                           TfrmFrame.AllowContextChangeAll┤   │       
                                TfrmFrame.FormCloseQuery┤ │   │       
                              TfrmFrame.mnuFileNextClick┤ │   │       
                            TfrmFrame.mnuFileOpenClick┤ │ │   │       
                                TfrmFrame.UMInitiate┤ │ │ │   │       
                       TfrmFrame.mnuFileNextClick...┤ │ │ │   │       
                       TfrmFrame.mnuFileRefreshClick┤ │ │ │   │       
                       TfrmOrders.CheckOrderStatus┤ │ │ │ │   │       
                   TfrmOrders.mnuActChgEvntClick┤ │ │ │ │ │   │       
                      TfrmOrders.mnuActHoldClick┤ │ │ │ │ │   │       
                    TfrmOrders.mnuActUnholdClick┤ │ │ │ │ │   │       
                     TfrmOrders.mnuActRenewClick┤ │ │ │ │ │   │       
                    TfrmOrders.mnuActChangeClick┤ │ │ │ │ │   │       
                      TfrmOrders.mnuActCopyClick┘ │ │ │ │ │   │       
                            TfrmMeds.mnuActDCClick┤ │ │ │ │   │       
                           TfrmMeds.CheckMedStatus┘ │ │ │ │   │       
                        TfrmMeds.mnuActHoldClick┤   │ │ │ │   │       
                       TfrmMeds.mnuActRenewClick┤   │ │ │ │   │       
                      TfrmMeds.mnuActUnholdClick┤   │ │ │ │   │       
                      TfrmMeds.mnuActChangeClick┤   │ │ │ │   │       
                        TfrmMeds.mnuActCopyClick┤   │ │ │ │   │       
                      TfrmMeds.mnuActRefillClick┘   │ │ │ │   │       
                                  TfrmFrame.ViewInfo┘ │ │ │   │       
                               TfrmDCSumm.ViewInfo┤   │ │ │   │       
                             TfrmConsults.ViewInfo┤   │ │ │   │       
                     TfrmFrame.pnlRemindersMouseUp┤   │ │ │   │       
                      TfrmFrame.RemindersChanged┘ │   │ │ │   │       
                          TfrmFrame.FormCreate┘   │   │ │ │   │       
                            TfrmFrame.pnlCIRNClick┤   │ │ │   │       
                      TfrmFrame.pnlVistaWebClick┤ │   │ │ │   │       
                           TfrmFrame.FormKeyDown┘ │   │ │ │   │       
                         TfrmFrame.pnlPatientClick┤   │ │ │   │       
                           TfrmFrame.pnlVisitClick┤   │ │ │   │       
                     TfrmFrame.pnlPrimaryCareClick┤   │ │ │   │       
                       TfrmFrame.pnlRemindersClick┤   │ │ │   │       
                        TfrmFrame.pnlPostingsClick┤   │ │ │   │       
                            TfrmFrame.pnlFlagClick┤   │ │ │   │       
                              TfrmFrame.laMHVClick┤   │ │ │   │       
                             TfrmFrame.laVAA2Click┤   │ │ │   │       
                               TfrmOrders.ViewInfo┤   │ │ │   │       
                                 TfrmMeds.ViewInfo┤   │ │ │   │       
                              TfrmSurgery.ViewInfo┤   │ │ │   │       
                                TfrmNotes.ViewInfo┤   │ │ │   │       
                             TfrmProblems.ViewInfo┘   │ │ │   │       
                     TfrmFrame.mnuFileNotifRemoveClick┤ │ │   │       
                             TfrmFrame.NextButtonClick┘ │ │   │       
                           TfrmFrame.SetUpNextButton┘   │ │   │       
                     TfrmFrame.mnuFileOpenClick...┤     │ │   │       
                              TfrmFrame.FormResize┘     │ │   │       
                            TfrmFrame.ChangeFont┘       │ │   │       
                    TfrmFrame.LoadSizesForUser┤         │ │   │       
               TfrmFrame.LoadUserPreferences┘ │         │ │   │       
                      TfrmFrame.UMInitiate┘   │         │ │   │       
                    TfrmFrame.mnuFontSizeClick┘         │ │   │       
                           TfrmFrame.mnuFileOpenClick...┤ │   │       
                           TfrmFrame.ctxContextorPending┤ │   │       
                          TfrmFrame.StartCCOWContextor┘ │ │   │       
                                TfrmFrame.FormCreate┘   │ │   │       
                         TfrmFrame.ctxContextorCommitted┤ │   │       
                       TfrmFrame.StartCCOWContextor...┘ │ │   │       
                  TfrmFrame.mnuFileResumeContextGetClick┤ │   │       
                  TfrmFrame.mnuFileResumeContextSetClick┘ │   │       
                                  TfrmFrame.FormCloseQuery┤   │       
                              TfrmFrame.mnuFileReviewClick┤   │       
                                           UpdateEncounter┘   │       
                         TfrmFrame.mnuFileEncounterClick┤     │       
                                 TfrmFrame.ViewInfo...┤ │     │       
                    TfrmODMedIV.SetValuesFromResponses┤ │     │       
                             TfrmODMedIV.SetupDialog┤ │ │     │       
                   TfrmODMedIV.cboSolutionMouseClick┘ │ │     │       
                       TfrmODMedIV.cboSolutionExit┘   │ │     │       
                  TfrmODMedIV.cboSolutionMouseClick...┤ │     │       
                     TfrmODMedIV.cboAdditiveMouseClick┤ │     │       
                         TfrmODMedIV.cboAdditiveExit┘ │ │     │       
                                TfrmODAuto.SetupDialog┤ │     │       
                                   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┘   │ │     │       
                               TfrmOMSet.InsertList...┤ │     │       
                                TfrmODMeds.SetupDialog┤ │     │       
                             TfrmODMeds.btnSelectClick┤ │     │       
                             TfrmODMeds.UMDelayClick┘ │ │     │       
                                    ExecuteRenewOrders┘ │     │       
                         TfrmOrders.mnuActRenewClick┤   │     │       
                           TfrmMeds.mnuActRenewClick┘   │     │       
                                        EncounterPresent┤     │       
                                      ReadyForNewOrder┤ │     │       
                           TfrmRemDlg.btnFinishClick┤ │ │     │       
        TfrmConsults.mnuActNewConsultRequestClick...┤ │ │     │       
             TfrmConsults.mnuActNewProcedureClick...┤ │ │     │       
                                     ChangeOrders...┤ │ │     │       
                                     ChangeOrdersEvt┤ │ │     │       
                                       CopyOrders...┤ │ │     │       
                                   TransferOrders...┤ │ │     │       
                            TfrmOrders.lstWriteClick┤ │ │     │       
                             TfrmMeds.mnuActNewClick┘ │ │     │       
                                     ReadyForNewOrder1┤ │     │       
            TfrmOrders.PlaceOrderForDefaultDialog...┘ │ │     │       
                              TfrmOrders.mnuActDCClick┤ │     │       
                             TfrmOrders.mnuActRelClick┤ │     │       
                            TfrmOrders.mnuActHoldClick┤ │     │       
                          TfrmOrders.mnuActUnholdClick┤ │     │       
                           TfrmOrders.mnuActRenewClick┤ │     │       
                         TfrmOrders.mnuActReleaseClick┤ │     │       
                         TfrmOrders.mnuActOnChartClick┤ │     │       
                            TfrmOrders.mnuActSignClick┤ │     │       
                                TfrmMeds.mnuActDCClick┤ │     │       
                              TfrmMeds.mnuActHoldClick┤ │     │       
                             TfrmMeds.mnuActRenewClick┤ │     │       
                            TfrmMeds.mnuActUnholdClick┤ │     │       
                              TfrmMeds.mnuActCopyClick┤ │     │       
                            TfrmMeds.mnuActRefillClick┘ │     │       
                                     EncounterPresentEDO┤     │       
                                   ReadyForNewOrder...┤ │     │       
                         TfrmOrders.mnuActChgEvntClick┤ │     │       
                          TfrmOrders.mnuActChangeClick┤ │     │       
                            TfrmOrders.mnuActCopyClick┤ │     │       
                       TfrmOrders.btnDelayedOrderClick┤ │     │       
                            TfrmMeds.mnuActChangeClick┤ │     │       
                              TfrmMeds.mnuActCopyClick┘ │     │       
                                             UpdateVisit┤     │       
                                           EditPCEData┤ │     │       
                             TfrmSurgery.cmdPCEClick┤ │ │     │       
                                 UpdateEncounterInfo┘ │ │     │       
                             TfrmNotes.cmdPCEClick┘   │ │     │       
                        TfrmVitals.btnEnterVitalsClick┘ │     │       
                                             UpdateVisit┤     │       
                                        EncounterPresent┘     │       
                         TfrmProblems.lstProbActsClick┘       │       
                     TfrmProblems.wgProbDataDblClick┤         │       
                           TfrmProblems.lstViewClick┘         │       
                   TfrmProblems.HighlightDuplicate┘           │       
                         TfrmProblems.AddProblem┤             │       
              TfrmProblems.lstProbActsClick...┤ │             │       
                 TfrmProblems.lstProbPickClick┤ │             │       
              TfrmProblems.lstProbPickDblClick┤ │             │       
              TfrmProblems.edProbEntKeyPress┘ │ │             │       
                      TfrmProblems.UMPLLexicon┘ │             │       
                   TfrmdlgProb.bbChangeProbClick┘             │       
                                      TfrmReview.BuildSignList┘       
                                            ReviewChanges...┘         

Called-By

Name Declaration Comments
GetConsultFlags function GetConsultFlags(pOrderID:String; pFlagList:TStringList;FlagsAsIs:string):string; -


Source

1252  function  SetConsultFlags(pPLFactors: string; pFlagsAsIs:string):string; //  return updated flags.
1253  var
1254    strFlagsAsIs: string;
1255    strTFactors: string;
1256    strFlagsOut,x: string;
1257  
1258  begin
1259      strFlagsAsIs  := pFlagsAsIs; // flags from pims
1260      strTFactors   :=  pPLFactors;  // value selected from problem list
1261      strFlagsOut   := '';   // flags updated with selected values from problem list
1262      x             := strFlagsAsIs;
1263      Result        := '';
1264  
1265      UBAGlobals.SC  := Copy(x,1,1);
1266      UBAGlobals.AO  := Copy(x,2,1);
1267      UBAGlobals.IR  := Copy(x,3,1);
1268      UBAGlobals.EC  := Copy(x,4,1);
1269      UBAGlobals.MST := Copy(x,5,1);
1270      UBAGlobals.HNC := Copy(x,6,1);
1271      UBAGlobals.CV  :=  Copy(x,7,1); // load factors to global vars;
1272      UBAGlobals.SHD := Copy(x,8,1);
1273  
1274    if UBAGlobals.SC  <> 'N' then
1275         if StrPos(PChar(strTFactors),PChar(SERVICE_CONNECTED)) <> nil then
1276            UBAGlobals.SC := 'C' ;
1277  
1278      if UBAGlobals.SC <> 'N' then
1279         if StrPos(PChar(strTFactors),PChar(NOT_SERVICE_CONNECTED)) <> nil then
1280            UBAGlobals.SC := 'U';
1281  
1282      if UBAGlobals.AO <>'N' then
1283         if StrPos(PChar(strTFactors),PChar(AGENT_ORANGE)) <> nil then
1284            UBAGlobals.AO := 'C';
1285  
1286      if UBAGlobals.IR <>'N' then
1287         if StrPos(PChar(strTFactors),PChar(IONIZING_RADIATION)) <> nil then
1288            UBAGlobals.IR := 'C';
1289  
1290      if UBAGlobals.EC <>'N' then
1291         if StrPos(PChar(strTFactors),PChar(ENVIRONMENTAL_CONTAM)) <> nil then
1292            UBAGlobals.EC := 'C';
1293  
1294      if UBAGlobals.MST <>'N' then
1295         if StrPos(PChar(strTFactors),PChar(MILITARY_SEXUAL_TRAUMA)) <> nil then
1296            UBAGlobals.MST := 'C';
1297  
1298      if UBAGlobals.HNC <> 'N' then
1299         if StrPos(PChar(strTFactors),PChar(HEAD_NECK_CANCER)) <> nil then
1300            UBAGlobals.HNC := 'C';
1301  
1302      if UBAGlobals.CV <>'N' then
1303         if StrPos(PChar(strTFactors),PChar(COMBAT_VETERAN)) <> nil then
1304            UBAGlobals.CV := 'C';
1305  
1306      if UBAGlobals.SHD <> 'N' then
1307         if StrPos(PChar(strTFactors),PChar(SHIPBOARD_HAZARD_DEFENSE)) <> nil then
1308            UBAGlobals.SHD := 'C';
1309  
1310       strFlagsOut := (UBAGlobals.SC + UBAGlobals.AO + UBAGlobals.IR +
1311                       UBAGlobals.EC + UBAGlobals.MST + UBAGlobals.HNC +
1312                       UBAGlobals.CV + UBAGlobals.SHD);
1313    Result := strFlagsOut;
1314  end;