Function

TfrmGraphs.TitleInfo

Module

fGraphs

Last Modified

7/15/2014 3:26:36 PM

Visibility

Private

Owner

TfrmGraphs

Declaration

function TitleInfo(filetype, typeitem, caption: string): string;

Calls Hierarchy


TfrmGraphs.TitleInfo
 └TfrmGraphs.RefUnits
   └TfrmGraphs.SelectRef
     └CheckRef

Called-By Hierarchy


                                       TfrmGraphs.TitleInfo
                             TfrmGraphs.MakeSeparateItems┤ 
                                TfrmGraphs.MakeSeparate┘ │ 
                               TfrmGraphs.DisplayData┤   │ 
                             TfrmFrame.ClearPatient┤ │   │ 
                           TfrmFrame.SetupPatient┘ │ │   │ 
                      UpdatePatientInfoForAlert┤   │ │   │ 
                   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.AllowCCOWContextChange┤   │ │   │ 
                TfrmFrame.mnuFileNextClick...┤ │   │ │   │ 
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │ 
       TfrmFrame.mnuFileResumeContextSetClick┘ │   │ │   │ 
                    TfrmFrame.UpdateCCOWContext┤   │ │   │ 
                TfrmFrame.mnuFileOpenClick...┤ │   │ │   │ 
              TfrmFrame.ctxContextorCommitted┤ │   │ │   │ 
               TfrmFrame.StartCCOWContextor┘ │ │   │ │   │ 
                     TfrmFrame.FormCreate┘   │ │   │ │   │ 
       TfrmFrame.mnuFileResumeContextGetClick┘ │   │ │   │ 
         TfrmFrame.mnuFileResumeContextSetClick┘   │ │   │ 
                            TfrmReports.ClearPtData┤ │   │ 
                        TfrmFrame.ClearPatient...┘ │ │   │ 
                                  TfrmReports.Graph┤ │   │ 
                       TfrmReports.tvReportsClick┘ │ │   │ 
                TfrmFrame.lstCIRNLocationsClick┤   │ │   │ 
                          TfrmFrame.SetUpCIRN┘ │   │ │   │ 
                  TfrmFrame.SetupPatient...┘   │   │ │   │ 
                        TfrmReports.DisplayPage┤   │ │   │ 
                       TfrmReports.LoadTreeView┤   │ │   │ 
                      TfrmReports.DisplayPage┤ │   │ │   │ 
         TfrmOptionsReportsDefault.btnOKClick┤ │   │ │   │ 
      TfrmOptionsReportsDefault.btnResetClick┤ │   │ │   │ 
       TfrmOptionsReportsCustom.btnApplyClick┘ │   │ │   │ 
        TfrmOptionsReportsCustom.btnOKClick┘   │   │ │   │ 
               TfrmReports.ProcessNotifications┤   │ │   │ 
                      TfrmReports.DisplayPage┘ │   │ │   │ 
                   TfrmReports.tvReportsKeyDown┤   │ │   │ 
                TfrmReports.tvProceduresKeyDown┤   │ │   │ 
                    TfrmReports.chkMaxFreqClick┤   │ │   │ 
           TfrmOptionsReportsDefault.btnOKClick┤   │ │   │ 
        TfrmOptionsReportsDefault.btnResetClick┤   │ │   │ 
      TfrmOptionsReportsCustom.btnApplyClick...┘   │ │   │ 
                        TfrmGraphs.chkItemsTopClick┤ │   │ 
                     TfrmGraphs.chkItemsBottomClick┤ │   │ 
                 TfrmGraphs.mnuPopGraphIsolateClick┤ │   │ 
                      TfrmGraphs.cboDateRangeChange┤ │   │ 
                    TfrmReports.lstDateRangeClick┤ │ │   │ 
                         TfrmReports.GraphPanel┘ │ │ │   │ 
                         TfrmReports.Graph...┤   │ │ │   │ 
                TfrmReports.tvReportsClick...┘   │ │ │   │ 
                            TfrmGraphs.Initialize┤ │ │   │ 
                      TfrmFrame.ClearPatient...┤ │ │ │   │ 
                TfrmFrame.mnuToolsGraphingClick┤ │ │ │   │ 
                         TfrmLabs.grdLabClick┤ │ │ │ │   │ 
                      TfrmLabs.tvReportsClick┤ │ │ │ │   │ 
                       TfrmLabs.DisplayPage┤ │ │ │ │ │   │ 
                      TfrmLabs.LoadTreeView┤ │ │ │ │ │   │ 
                     TfrmLabs.DisplayPage┤ │ │ │ │ │ │   │ 
TfrmOptionsReportsCustom.btnApplyClick...┘ │ │ │ │ │ │   │ 
                TfrmLabs.cmdOtherTestsClick┤ │ │ │ │ │   │ 
                   TfrmLabs.chkMaxFreqClick┤ │ │ │ │ │   │ 
              TfrmLabs.ProcessNotifications┤ │ │ │ │ │   │ 
                     TfrmLabs.DisplayPage┘ │ │ │ │ │ │   │ 
                                  ..(rec)..┤ │ │ │ │ │   │ 
                  TfrmLabs.tvReportsKeyDown┤ │ │ │ │ │   │ 
         TfrmFrame.lstCIRNLocationsClick...┘ │ │ │ │ │   │ 
                                    ..(rec)..┘ │ │ │ │   │ 
                     TfrmReports.ClearPtData...┤ │ │ │   │ 
                           TfrmReports.Graph...┘ │ │ │   │ 
                              TfrmGraphs.FormShow┤ │ │   │ 
                TfrmGraphs.btnChangeSettingsClick┤ │ │   │ 
                 TfrmReports.btnChangeViewClick┘ │ │ │   │ 
                     TfrmGraphs.CheckExpandedLabs┤ │ │   │ 
                          TfrmGraphs.ItemsClick┘ │ │ │   │ 
                    TfrmGraphs.DisplayData...┤   │ │ │   │ 
               TfrmGraphs.lvwItemsBottomClick┤   │ │ │   │ 
                   TfrmGraphs.Initialize...┤ │   │ │ │   │ 
                    TfrmGraphs.CheckContext┤ │   │ │ │   │ 
                      TfrmGraphs.FormShow┘ │ │   │ │ │   │ 
               TfrmGraphs.chkDualViewsClick┤ │   │ │ │   │ 
                 TfrmGraphs.Initialize...┤ │ │   │ │ │   │ 
                      TfrmGraphs.FormShow┤ │ │   │ │ │   │ 
                                   Layout┤ │ │   │ │ │   │ 
                     TfrmGraphs.GetSize┘ │ │ │   │ │ │   │ 
                  TfrmGraphs.FormShow┘   │ │ │   │ │ │   │ 
     TfrmGraphs.mnuPopGraphDualViewsClick┤ │ │   │ │ │   │ 
                TfrmGraphs.ViewSelections┘ │ │   │ │ │   │ 
          TfrmReports.tvReportsClick...┤   │ │   │ │ │   │ 
     TfrmGraphs.btnGraphSelectionsClick┘   │ │   │ │ │   │ 
  TfrmReports.btnGraphSelectionsClick┘     │ │   │ │ │   │ 
                     TfrmGraphs.GraphSwitch┤ │   │ │ │   │ 
                     TfrmGraphs.GraphSwap┘ │ │   │ │ │   │ 
        TfrmGraphs.mnuPopGraphSwapClick┘   │ │   │ │ │   │ 
                      TfrmGraphs.SplitClick┤ │   │ │ │   │ 
         TfrmGraphs.mnuPopGraphSplitClick┘ │ │   │ │ │   │ 
           TfrmGraphs.mnuPopGraphClearClick┤ │   │ │ │   │ 
                      TfrmGraphs.AutoSelect┤ │   │ │ │   │ 
                   TfrmGraphs.ViewsChange┘ │ │   │ │ │   │ 
           TfrmGraphs.lstViewsTopChange┤   │ │   │ │ │   │ 
             TfrmGraphs.Initialize...┤ │   │ │   │ │ │   │ 
            TfrmGraphs.GraphSwitch...┤ │   │ │   │ │ │   │ 
     TfrmGraphs.cboDateRangeChange...┤ │   │ │   │ │ │   │ 
         TfrmGraphs.ViewSelections...┘ │   │ │   │ │ │   │ 
        TfrmGraphs.lstViewsBottomChange┘   │ │   │ │ │   │ 
             TfrmGraphs.Initialize...┤     │ │   │ │ │   │ 
            TfrmGraphs.GraphSwitch...┤     │ │   │ │ │   │ 
     TfrmGraphs.cboDateRangeChange...┤     │ │   │ │ │   │ 
         TfrmGraphs.ViewSelections...┘     │ │   │ │ │   │ 
            TfrmGraphs.lvwItemsBottomChange┘ │   │ │ │   │ 
                  TfrmGraphs.lvwItemsTopClick┘   │ │ │   │ 
                   TfrmGraphs.Initialize...┤     │ │ │   │ 
                        TfrmGraphs.FormShow┤     │ │ │   │ 
            TfrmGraphs.chkDualViewsClick...┤     │ │ │   │ 
                  TfrmGraphs.GraphSwitch...┤     │ │ │   │ 
                   TfrmGraphs.SplitClick...┤     │ │ │   │ 
           TfrmGraphs.mnuPopGraphClearClick┤     │ │ │   │ 
                   TfrmGraphs.AutoSelect...┤     │ │ │   │ 
           TfrmGraphs.mnuPopGraphResetClick┤     │ │ │   │ 
                      TfrmGraphs.FormShow┤ │     │ │ │   │ 
    TfrmGraphs.mnuPopGraphHorizontalClick┤ │     │ │ │   │ 
      TfrmGraphs.mnuPopGraphVerticalClick┤ │     │ │ │   │ 
        TfrmGraphs.mnuPopGraphRemoveClick┤ │     │ │ │   │ 
      TfrmGraphs.mnuPopGraphZoomBackClick┘ │     │ │ │   │ 
               TfrmGraphs.lvwItemsTopChange┘     │ │ │   │ 
                        TfrmGraphs.ViewsChange...┤ │ │   │ 
             TfrmGraphs.mnuPopGraphMergeLabsClick┘ │ │   │ 
                           TfrmGraphs.ItemsClick...┤ │   │ 
                          TfrmGraphs.ViewsChange...┤ │   │ 
                  TfrmGraphs.mnuPopGraphRemoveClick┘ │   │ 
                         TfrmGraphs.MakeTogetherMaybe┘   │ 
                          TfrmGraphs.DisplayData...┘     │ 
                         TfrmGraphs.MakeTogetherOnlyLines┤ 
                                TfrmGraphs.MakeTogether┘ │ 
                      TfrmGraphs.MakeTogetherMaybe...┘   │ 
                          TfrmGraphs.MakeTogetherAnyLines┘ 
                             TfrmGraphs.MakeTogether...┘   

Calls

Name Declaration Comments
TfrmGraphs.RefUnits procedure RefUnits(aItem, aSpec: string; var low, high, units: string); -

Called-By

Name Declaration Comments
TfrmGraphs.MakeSeparateItems procedure MakeSeparateItems(aScrollBox: TScrollBox; aListView: TListView; section: string); -
TfrmGraphs.MakeTogetherAnyLines procedure MakeTogetherAnyLines(aListView: TListView; section: string; aChart: TChart); -
TfrmGraphs.MakeTogetherOnlyLines procedure MakeTogetherOnlyLines(aListView: TListView; section: string; aChart: TChart); -


Source

2087  function TfrmGraphs.TitleInfo(filetype, typeitem, caption: string): string;
2088  var
2089    i: integer;
2090    checkdata, high, low, refrange, specimen, specnum, units: string;
2091  begin
2092    if (filetype = '63') and (GtslData.Count > 0) then
2093    begin
2094      checkdata := '';
2095      for i := 0 to GtslData.Count - 1 do
2096      begin
2097        checkdata := GtslData[i];
2098        if (Piece(checkdata, '^', 1) = '63') and (Piece(checkdata, '^', 2) = typeitem) then
2099          break;
2100      end;
2101      refrange := Piece(checkdata, '^', 10);
2102      specimen := Piece(checkdata, '^', 8);
2103      if length(refrange) > 0  then
2104      begin
2105        low := Piece(refrange, '!', 1);
2106        high := Piece(refrange, '!', 2);
2107        units := Piece(checkdata, '^', 11);
2108      end
2109      else
2110      begin
2111        specnum := Piece(checkdata, '^', 7);
2112        RefUnits(typeitem, specnum, low, high, units);
2113        units := LowerCase(units);
2114      end;
2115      if units = '' then units := '  ';
2116    end
2117    else
2118    begin
2119      specimen := ''; low := ''; high := ''; units := '';
2120    end;
2121    if (filetype = '63') and (Piece(typeitem, '.', 2) = '0') then
2122    begin
2123      specimen := ''; low := ''; high := '';
2124    end;
2125    Result := filetype + '^' + typeitem + '^' + caption + '^' +
2126              specimen + '^' + low + '^' + high + '^' + units + '^';
2127  end;