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/fPtSelOptns.pas

    r830 r1679  
    4949    function IsLast5(x: string): Boolean;
    5050    function IsFullSSN(x: string): Boolean;
    51     //vwpt voe
    52     function IsEnhanced(x: String) : Boolean ;
    53     function IsPatientName(x: String) :Boolean;
    54     //end
    5551    procedure cmdSaveListClick(Sender: TObject);
    5652    procedure SetDefaultPtList(Dflt: string);
     
    7470var
    7571  frmPtSelOptns: TfrmPtSelOptns;
    76   //frmPtSelOptns: TfrmPtSelOptns;
    7772  clinDoSave, clinSaveToday: boolean;
    7873  clinDefaults: string;
     
    111106  for i := 1 to 4 do if not (x[i] in ['0'..'9']) then Exit;
    112107  Result := True;
    113 end;
    114 
    115 function TfrmPtSelOptns.IsPatientName(x: string):Boolean;
    116  { returns true if string matchs patient name pattern: all alphabetic," ",",","-","." only }
    117 var
    118   i: Integer;
    119 begin
    120   Result := False;
    121 
    122    for i := 1 to Length(x) do if not (x[i] in ['A'..'Z', 'a'..'z', ' '..' ', ','..'.']) then Exit;
    123 
    124   Result := True;
    125 end;
    126 
    127 function TfrmPtSelOptns.IsEnhanced(x: String) : boolean ;
    128 var
    129   i: integer;
    130 begin
    131   //Result := True;
    132   //for i:= 1 to Length(x) do if (x[i] in ['0'..'9']) then Exit;
    133   //for i:= 1 to Length(x) do
    134   //begin
    135   // if ((x[i] = '(') or (x[i] = ')') or (x[i] = '-') or (x[i] = '/') or (x[i] = ',') or (x[i] = '\')) then Exit;
    136   //end;
    137   Result := True;   //False;
    138   if (frmPtSelOptns.radAll.Checked <> True)and (frmPtSelOptns.radDflt.Checked <> True) then Result := False;
    139108end;
    140109
     
    209178{ called by radProviders, radClinics - switches to long list & shows items for the list source }
    210179begin
    211     //vwpt remove other radio button selections
    212  if fPtSel.radiogrp1index <> 0 then
    213  begin
    214       FSrcType := TControl(Sender).Tag;
    215       case FSrcType of
    216     TAG_SRC_TEAM: begin
    217                     radTeams.Checked := False;
    218                     radTeams.Refresh;
    219                     radAll.Checked := True;
    220                     radAll.Refresh;
    221                   end;
    222     TAG_SRC_SPEC: begin
    223                     radSpecialties.Checked := False;
    224                     radSpecialties.Refresh;
    225                     radAll.Checked := True;
    226                     radAll.Refresh;
    227                   end;
    228     TAG_SRC_WARD: begin
    229                     radWards.Checked := False;
    230                     radWards.Refresh;
    231                     radAll.Checked := True;
    232                     radAll.Refresh;
    233                   end;
    234     end;
    235   //frmPtSel.RadioGroup1.SetFocus;
    236   //frmPtSel.RadioGroup1.Refresh;
    237  end
    238  else
    239  begin
    240   //end vwpt
    241180  cboList.Pieces := '2';
    242181  FSrcType := TControl(Sender).Tag;
     
    263202  end;
    264203  cboList.Caption := TRadioButton(Sender).Caption;
    265  end; //else
    266204end;
    267205
     
    450388    radDflt.Enabled := False;
    451389    radAll.Checked := True;                  // causes radHideSrcClick to be called
     390    bvlPtList.TabStop := True;
     391    bvlPtList.Hint := 'No default radio button unavailable 1 of 7 to move to the other patient list categories press tab';
     392    // fixes CQ #4716: 508 - No Default rad btn on Patient Selection screen doesn't read in JAWS. [CPRS v28.1] (TC).
    452393  end;
    453394end;
Note: See TracChangeset for help on using the changeset viewer.