Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fProbEdt.pas

    r830 r1679  
    100100    procedure GetNewComments(Reason:char);
    101101    function  OkToQuit:boolean;
     102    procedure ShowServiceCombo;
     103    procedure ShowClinicLocationCombo;
    102104  protected
    103105    procedure CreateParams(var Params: TCreateParams); override;
     
    150152    begin
    151153      frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
     154      frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}.
     155      //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx.
     156      if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then
     157         frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption;
    152158      close;
    153159    end
     
    163169        begin
    164170          frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ;
     171          frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}.
     172          //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx.
     173          if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then
     174             frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption;
    165175          FCanQuit := True;
    166176          close;
     
    325335    cbProv.InitLongList(ProbRec.RespProvider.extern) ;
    326336    if (ProbRec.RespProvider.intern <> '') and (StrToInt64Def(ProbRec.RespProvider.intern, 0) > 0) then
    327       cbProv.SelectByIEN(StrToInt64(ProbRec.RespProvider.intern)) ;
     337      cbProv.SelectByIEN(StrToInt64(ProbRec.RespProvider.intern));
    328338
    329339    if UpperCase(Reason) = 'A' then
     
    331341        if Encounter.Inpatient then
    332342          begin
    333             cbLoc.visible:=false;
    334             cbServ.Visible:=true;
    335             lblLoc.caption:='Service:';
     343            ShowServiceCombo();
    336344            cbServ.InitLongList('');
    337345          end
    338346        else
    339347          begin
    340             cbLoc.visible:=true;
    341             cbServ.Visible:=false;
    342             lblLoc.caption:='Clinic:';
    343             cbLoc.InitLongList(Encounter.LocationName) ;
     348            ShowClinicLocationCombo();
     349            cbLoc.InitLongList(Encounter.LocationName);
    344350            cbLoc.SelectByIEN(Encounter.Location);
    345351          end;
     
    349355        if (ProbRec.Service.DHCPField = '^') and  (ProbRec.Clinic.DHCPField <> '^') then
    350356          begin
    351             cbLoc.visible:=true;
    352             cbServ.Visible:=false;
    353             lblLoc.caption:='Clinic:';
    354             cbLoc.InitLongList(ProbRec.Clinic.Extern) ;
    355             cbLoc.SelectByID(ProbRec.Clinic.Intern) ;
     357            ShowClinicLocationCombo();
     358            cbLoc.InitLongList(ProbRec.Clinic.Extern);
     359            cbLoc.SelectByID(ProbRec.Clinic.Intern);
    356360          end
    357361        else if (ProbRec.Clinic.DHCPField = '^') and  (ProbRec.Service.DHCPField <> '^') then
    358362          begin
    359             cbLoc.visible:=false;
    360             cbServ.Visible:=true;
    361             lblLoc.caption:='Service:';
    362             cbServ.InitLongList(ProbRec.Service.Extern) ;
    363             cbServ.SelectByID(ProbRec.Service.Intern) ;
     363            ShowServiceCombo();
     364            cbServ.InitLongList(ProbRec.Service.Extern);
     365            cbServ.SelectByID(ProbRec.Service.Intern);
    364366          end
    365367        else
     
    367369            if Encounter.Inpatient then
    368370              begin
    369                 cbLoc.visible:=false;
    370                 cbServ.Visible:=true;
    371                 lblLoc.caption:='Service:';
     371                ShowServiceCombo();
    372372                cbServ.InitLongList('');
    373373              end
    374374            else
    375375              begin
    376                 cbLoc.visible:=true;
    377                 cbServ.Visible:=false;
    378                 lblLoc.caption:='Clinic:';
    379                 cbLoc.InitLongList('') ;
     376                ShowClinicLocationCombo();
     377                cbLoc.InitLongList('');
    380378              end;
    381379          end;
     
    383381    cbLoc.Caption := lblLoc.Caption;
    384382
    385     if Pos(Reason,'E,C') > 0 then ShowComments  ;
     383    ShowComments;
    386384    if ProbRec.CmtIsXHTML then
    387385      begin
     
    465463procedure TfrmdlgProb.bbFileClick(Sender: TObject);
    466464const
    467   TX_INACTIVE_CODE   = 'This problem references an inactive ICD code.' + #13#10 +
     465  TX_INACTIVE_ICODE   = 'This problem references an inactive ICD-9-CM code.' + #13#10 +
    468466                       'The code must be updated using the ''Change''' + #13#10 +
    469467                       'button before it can be saved';
    470   TC_INACTIVE_CODE   = 'Inactive Code';
     468  TC_INACTIVE_ICODE   = 'Inactive ICD-9-CM Code';
    471469var
    472470  AList: TstringList;
     
    474472  i: integer;
    475473begin
     474  frmProblems.wgProbData.TabStop := True;  //CQ #15531 part (c) [CPRS v28.1] {TC}.
    476475  if (Reason <> 'R') and (Reason <> 'r') then
    477476    if (rgStatus.itemindex=-1) or (cbProv.itemindex=-1) then
     
    483482    if not IsActiveICDCode(ProbRec.Diagnosis.extern) then
    484483      begin
    485         InfoBox(TX_INACTIVE_CODE, TC_INACTIVE_CODE, MB_ICONWARNING or MB_OK);
     484        InfoBox(TX_INACTIVE_ICODE, TC_INACTIVE_ICODE, MB_ICONWARNING or MB_OK);
    486485        exit;
    487486      end;
     
    719718  alist.add('NEW' + v + '1.12' + v + '0' + u + 'NO'); {RAD}
    720719  alist.add('NEW' + v + '1.13' + v + '0' + u + 'NO'); {ENV}
    721   alist.add('NEW' + v + '1.14' + v + '0' + u + 'NO'); {SHD}
    722   alist.add('NEW' + v + '1.15' + v + '');
     720  alist.add('NEW' + v + '1.14' + v + ''); {Priority: 'A', 'C', or ''}
     721  alist.add('NEW' + v + '1.15' + v + '0' + u + 'NO'); {HNC}
     722  alist.add('NEW' + v + '1.16' + v + '0' + u + 'NO'); {MST}
     723  alist.add('NEW' + v + '1.17' + v + '0' + u + 'NO'); {CV}
     724  alist.add('NEW' + v + '1.18' + v + '0' + u + 'NO'); {SHAD}
    723725end;
    724726
     
    731733  procedure Msg(msg: string);
    732734  begin
    733     InfoBox('Dates must be in format m/d/y or m/d or y, or T+d or T-d' +
     735// CQ #16123 - Modified error text to clarify proper date formats - JCS
     736    InfoBox('Dates must be in format m/d/yy, m/d/yyyy, m/d, m/yyyy, yyyy, T+d or T-d' +
    734737      #13#10 + msg + ' is formatted improperly.' +
    735738      #13#10 + '     Please check the other dates as well.',
     
    904907end;
    905908
     909procedure TfrmdlgProb.ShowClinicLocationCombo;
     910begin
     911  cbLoc.visible := true;
     912  cbServ.Visible := false;
     913  lblLoc.caption := 'Clinic:';
     914end;
     915
     916procedure TfrmdlgProb.ShowServiceCombo;
     917begin
     918  cbLoc.visible := false;
     919  cbServ.Visible := true;
     920  lblLoc.caption := 'Service:';
     921end;
     922
    906923{ base form procedures (shared by all ordering dialogs) }
    907924
     
    966983  if PLProblem='' then exit ;
    967984  newprob := PLProblem ;
     985
    968986  if frmProblems.HighlightDuplicate(NewProb, Piece(newprob, U, 2) + #13#10#13#10 +
    969987      'This problem would be a duplicate.'+#13#10 +
     
    975993      {ien^.01^icd^icdifn - see SetDefaultProblem}
    976994      {Set new problem properties}
    977       ProbRec.Problem.DHCPtoKeyVal(Piece(NewProb,u,1) + u + Piece(NewProb,u,2)) ;   {1.01}
    978       ProbRec.Diagnosis.DHCPtoKeyVal(Piece(NewProb,u,4) + u + Piece(NewProb,u,3)) ;  {.01}
    979       ProbRec.Narrative.DHCPtoKeyVal(u + Piece(NewProb,u,2));                        {.05}
     995      ProbRec.Problem.DHCPtoKeyVal(Piece(NewProb,u,1) + u + Piece(NewProb,u,2)) ;    {1.01}
     996      ProbRec.Diagnosis.DHCPtoKeyVal(Piece(NewProb,u,4) + u + Piece(NewProb,u,3)) ;   {.01}
     997      ProbRec.Narrative.DHCPtoKeyVal(u + Piece(NewProb,u,2));                         {.05}
    980998
    981999      {mark it as changed}
Note: See TracChangeset for help on using the changeset viewer.