Changeset 1679 for cprs/trunk/CPRS-Chart/fPtSelOptns.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fPtSelOptns.pas
r830 r1679 49 49 function IsLast5(x: string): Boolean; 50 50 function IsFullSSN(x: string): Boolean; 51 //vwpt voe52 function IsEnhanced(x: String) : Boolean ;53 function IsPatientName(x: String) :Boolean;54 //end55 51 procedure cmdSaveListClick(Sender: TObject); 56 52 procedure SetDefaultPtList(Dflt: string); … … 74 70 var 75 71 frmPtSelOptns: TfrmPtSelOptns; 76 //frmPtSelOptns: TfrmPtSelOptns;77 72 clinDoSave, clinSaveToday: boolean; 78 73 clinDefaults: string; … … 111 106 for i := 1 to 4 do if not (x[i] in ['0'..'9']) then Exit; 112 107 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 var118 i: Integer;119 begin120 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 var129 i: integer;130 begin131 //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) do134 //begin135 // 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;139 108 end; 140 109 … … 209 178 { called by radProviders, radClinics - switches to long list & shows items for the list source } 210 179 begin 211 //vwpt remove other radio button selections212 if fPtSel.radiogrp1index <> 0 then213 begin214 FSrcType := TControl(Sender).Tag;215 case FSrcType of216 TAG_SRC_TEAM: begin217 radTeams.Checked := False;218 radTeams.Refresh;219 radAll.Checked := True;220 radAll.Refresh;221 end;222 TAG_SRC_SPEC: begin223 radSpecialties.Checked := False;224 radSpecialties.Refresh;225 radAll.Checked := True;226 radAll.Refresh;227 end;228 TAG_SRC_WARD: begin229 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 end238 else239 begin240 //end vwpt241 180 cboList.Pieces := '2'; 242 181 FSrcType := TControl(Sender).Tag; … … 263 202 end; 264 203 cboList.Caption := TRadioButton(Sender).Caption; 265 end; //else266 204 end; 267 205 … … 450 388 radDflt.Enabled := False; 451 389 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). 452 393 end; 453 394 end;
Note:
See TracChangeset
for help on using the changeset viewer.