Skip to content

Commit

Permalink
Merge branch 'working' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
alaboso authored Jun 14, 2024
2 parents a6400c8 + 16faa63 commit 555becb
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
6 changes: 6 additions & 0 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 tbPreventionDashboardMeta = {
name: 'tb-prevention',
Expand Down
1 change: 1 addition & 0 deletions packages/esm-tb-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export const tbClinicalViewDashboardLink = getSyncLifecycle(
createOHRIDashboardLink(tbClinicalViewDashboardMeta),
options,
);

export const tbCasesDashboardLink = getSyncLifecycle(createOHRIGroupedLink(tbCasesDashboardMeta), options);
export const tbCasesDashboard = getSyncLifecycle(rootComponent, options);

Expand Down
66 changes: 66 additions & 0 deletions packages/esm-tb-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,41 @@
"component": "tptProgramManagementDashboard"
},


{
"name": "tpt-patient-summary",
"slot": "ohri-tpt-slot",
"component": "tptPatientSummaryDashboardLink",
"meta": {
"slot": "tpt-patient-summary-slot",
"columns": 1,
"path": "tpt-patient-summary",
"layoutMode": "anchored"
}
},
{
"name": "tpt-patient-summary-ext",
"slot": "tpt-patient-summary-slot",
"component": "tptPatientSummaryDashboard"
},

{
"name": "tpt-program-management-summary",
"slot": "ohri-tpt-slot",
"component": "tptProgramManagementDashboardLink",
"meta": {
"slot": "tpt-program-management-summary-slot",
"columns": 1,
"path": "tpt-program-management",
"layoutMode": "anchored"
}
},
{
"name": "tpt-program-management-summary-ext",
"slot": "tpt-program-management-summary-slot",
"component": "tptProgramManagementDashboard"
},

{
"name": "tb-treatment-follow-up-summary",
"slot": "ohri-tb-slot",
Expand Down Expand Up @@ -181,6 +216,37 @@
"slot": "tpt-home-tabs-slot",
"component": "tptDashboardTabs"
},
{
"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": "homepage-dashboard-slot",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib';

interface TptTreatmentListProps {
patientUuid: string;
}

const TptTreatmentList: React.FC<TptTreatmentListProps> = ({ patientUuid }) => {
const { t } = useTranslation();

const headerTitle = t('tptTreatment', 'TPT Treatment');

return (
<>
<EmptyStateComingSoon displayText={headerTitle} headerTitle={headerTitle} />
</>
);
};

export default TptTreatmentList;

0 comments on commit 555becb

Please sign in to comment.