Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRI-2109: Add TB Prevention link under Tuberculosis program in the clinical perspectives #1787

Merged
merged 5 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions packages/esm-tb-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export const tbClinicalViewDashboardMeta = {
isFolder: true,
title: 'Tuberculosis',
};
export const tbPreventionDashboardMeta = {
name: 'tb-prevention',
slot: 'tb-prevention-dashboard-slot',
config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'},
title: 'TB Prevention',
};

export const tbCasesDashboardMeta = {
name: 'tb-cases',
Expand All @@ -52,13 +58,6 @@ export const tbCasesDashboardMeta = {
title: 'TB Treatment',
};

export const tbPreventionDashboardMeta = {
name: 'tb-prevention',
slot: 'tb-prevention-dashboard-slot',
config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'},
title: 'TB Prevention',
};

export const tptPatientChartMeta = {
title: 'TPT Program',
slotName: 'ohri-tpt-slot',
Expand Down
62 changes: 31 additions & 31 deletions packages/esm-tb-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,37 @@
"title": "Tuberculosis"
}
},
{
"name": "tb-prevention-dashboard-ext",
"slot": "tb-clinical-dashboard-slot",
"component": "tbPreventionDashboardLink",
"meta": {
"name": "tb-prevention",
"slot": "tb-prevention-dashboard-slot",
"config": {
"columns": 1,
"type": "grid",
"programme": "tpt",
"dashboardTitle": "TB Prevention"
},
"title": "TB Prevention"
}
},
{
"name": "tb-prevention-dashboard",
"slot": "tb-prevention-dashboard-slot",
"component": "tbPreventionDashboard",
"meta": {
"name": "tb-prevention",
"slot": "tb-prevention-dashboard-slot",
"config": {
"columns": 1,
"programme": "tpt",
"dashboardTitle": "TB Prevention"
},
"title": "TB Prevention"
}
},
{
"name": "tb-cases-dashboard-ext",
"slot": "tb-clinical-dashboard-slot",
Expand Down Expand Up @@ -198,37 +229,6 @@
"slot": "tb-home-tabs-slot",
"component": "tbDashboardTabs"
},
{
"name": "tb-prevention-dashboard-ext",
"slot": "tb-clinical-dashboard-slot",
"component": "tbPreventionDashboardLink",
"meta": {
"name": "tb-prevention",
"slot": "tb-prevention-dashboard-slot",
"config": {
"columns": 1,
"type": "grid",
"programme": "tpt",
"dashboardTitle": "TB Prevention"
},
"title": "TB Prevention"
}
},
{
"name": "tb-prevention-dashboard",
"slot": "tb-prevention-dashboard-slot",
"component": "tbPreventionDashboard",
"meta": {
"name": "tb-prevention",
"slot": "tb-prevention-dashboard-slot",
"config": {
"columns": 1,
"programme": "tpt",
"dashboardTitle": "TB Prevention"
},
"title": "TB Prevention"
}
},
{
"name": "tpt-home-header-ext",
"slot": "tpt-home-header-slot",
Expand Down
4 changes: 2 additions & 2 deletions packages/esm-tb-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"indication": "Indication",
"tptAdherence": "Adherence",
"nextAppointmentDate": "Next Appointment Date",
"previousCases": "Previous TPT Cases",
"previousTptCases": "Recent TPT Cases"
"previousTptCases": "Previous TPT Cases",
"recentTptCases": "Recent TPT Cases"

}