Skip to content

Commit 957a262

Browse files
authored
Replace "patient(s)" with "participant(s)" in frontend code (#10)
* fix: remove patients from UI element * replace patient(s) w/ participant(s)
1 parent c82b1b0 commit 957a262

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ui-client/src/components/FindPatients/Panels/InclusionDropdown.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default class InclusionDropdown extends React.PureComponent<Props, State>
4848
// Set the text and options to display, depending on inclusion state and
4949
// whether it is the first panel or not
5050
if (isFirst) {
51-
opts = [ 'Patients Who', 'Not Patients Who' ];
52-
displayText = isInclusionCriteria ? 'Patients Who' : 'Not Patients Who';
51+
opts = [ 'Participants Who', 'Not Participants Who' ];
52+
displayText = isInclusionCriteria ? 'Participants Who' : 'Not Participants Who';
5353
}
5454
else {
5555
opts = [ 'And', 'And Not' ];
@@ -83,7 +83,7 @@ export default class InclusionDropdown extends React.PureComponent<Props, State>
8383
private selectItem = (item: any) => {
8484
const { index, inclusionDropdownType, panel, handlers } = this.props;
8585
const text = item.target.innerText;
86-
const include = text === 'Patients Who' || text === 'And' ? true : false;
86+
const include = text === 'Participants Who' || text === 'And' ? true : false;
8787

8888
// Update state
8989
if (inclusionDropdownType === INCLUSION_DROPDOWN_TYPE.PANEL) {
@@ -92,4 +92,4 @@ export default class InclusionDropdown extends React.PureComponent<Props, State>
9292
handlers.handleSubPanelInclusion(panel.index, index, include);
9393
}
9494
}
95-
}
95+
}

src/ui-client/src/config/routes.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface SubRouteConfig {
3636

3737
const findPatients = (): RouteConfig => {
3838
return {
39-
display: 'Find Patients',
39+
display: 'Explore Data',
4040
icon: <FiSearch />,
4141
index: Routes.FindPatients,
4242
path: '/',
@@ -76,7 +76,7 @@ const timelines = (): RouteConfig => {
7676
};
7777
const patientList = (): RouteConfig => {
7878
return {
79-
display: 'Patient List',
79+
display: 'Participant List',
8080
icon: <MdPerson />,
8181
index: Routes.PatientList,
8282
path: '/patientList',

0 commit comments

Comments
 (0)