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-1440 add fullWidth meta to support full width patient chart widgets #1614

Merged
merged 2 commits into from
Aug 18, 2023
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
2 changes: 2 additions & 0 deletions packages/esm-cervical-cancer-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ export const caCxSummaryDashboardMeta = {
columns: 1,
title: 'CaCx Summary',
path: 'cacx-summary',
layoutMode: 'anchored',
};

export const caCxVisitsDashboardMeta = {
slot: 'cacx-visits-slot',
columns: 1,
title: 'CaCx Visits',
path: 'cacx-visits',
layoutMode: 'anchored',
};
2 changes: 2 additions & 0 deletions packages/esm-cervical-cancer-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"meta": {
"path": "cacx-summary",
"slot": "cacx-summary-slot",
"layoutMode": "anchored",
"columns": 1
}
},
Expand All @@ -39,6 +40,7 @@
"meta": {
"path": "cacx-visits",
"slot": "cacx-visits-slot",
"layoutMode": "anchored",
"columns": 1
}
},
Expand Down
3 changes: 3 additions & 0 deletions packages/esm-covid-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@ export const covidAssessmentsDashboardMeta = {
columns: 1,
title: 'Covid Assessments',
path: 'covid-assessments',
layoutMode: 'anchored',
};

export const covidLabTestsDashboardMeta = {
slot: 'covid-lab-dashboard-slot',
columns: 1,
title: 'Lab Test',
path: 'lab-test',
layoutMode: 'anchored',
};

export const covidVaccinationsDashboardMeta = {
slot: 'covid-vaccinations-dashboard-slot',
columns: 1,
title: 'Covid Vaccinations',
path: 'covid-vaccinations',
layoutMode: 'anchored',
};

// Clinical Dashboards
Expand Down
9 changes: 6 additions & 3 deletions packages/esm-covid-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"meta": {
"slot": "covid-assessments-dashboard-slot",
"columns": 1,
"path": "covid-assessments"
"path": "covid-assessments",
"layoutMode": "anchored"
}
},
{
Expand All @@ -88,7 +89,8 @@
"meta": {
"slot": "covid-lab-dashboard-slot",
"columns": 1,
"path": "lab-test"
"path": "lab-test",
"layoutMode": "anchored"
}
},
{
Expand All @@ -103,7 +105,8 @@
"meta": {
"slot": "covid-vaccinations-dashboard-slot",
"columns": 1,
"path": "covid-vaccinations"
"path": "covid-vaccinations",
"layoutMode": "anchored"
}
},
{
Expand Down
9 changes: 8 additions & 1 deletion packages/esm-hiv-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export const hivPreventionDashboardMeta = {
};

export const htsSummaryDashboardMeta = {
name: 'hts-summary',
slot: 'hts-summary-dashboard-slot',
columns: 1,
title: 'HIV Testing Services',
path: 'hiv-testing-services',
layoutMode: 'anchored',
};

export const hivCareAndTreatmentDashboardDMeta = {
Expand All @@ -26,48 +26,55 @@ export const hivPatientSummaryDashboardMeta = {
columns: 1,
title: 'HIV Patient Summary',
path: 'hiv-patient-summary',
layoutMode: 'anchored',
};

export const programManagementDashboardMeta = {
slot: 'program-management-summary-slot',
columns: 1,
title: 'Program Management',
path: 'program-management',
layoutMode: 'anchored',
};

export const clinicalVisitsDashboardMeta = {
slot: 'clinical-visits-summary-slot',
columns: 1,
title: 'Clinical Visits',
path: 'clinical-visits',
layoutMode: 'anchored',
};

export const generalCounsellingDashboardMeta = {
slot: 'general-counselling-summary-slot',
columns: 1,
title: 'General Counselling',
path: 'general-counselling',
layoutMode: 'anchored',
};

export const partnerNotificationServicesDashboardMeta = {
slot: 'partner-notification-services-slot',
columns: 1,
title: 'Partner Notification',
path: 'partner-notification-services',
layoutMode: 'anchored',
};

export const medicationsDashboardMeta = {
slot: 'medications-summary-slot',
columns: 1,
title: 'Medications',
path: 'medications',
layoutMode: 'anchored',
};

export const appointmentsDashboardMeta = {
slot: 'appointments-summary-slot',
columns: 1,
title: 'Appointments Summary',
path: 'appointments-summary',
layoutMode: 'anchored',
};

// Clinical Dashboards
Expand Down
21 changes: 14 additions & 7 deletions packages/esm-hiv-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"meta": {
"slot": "hiv-patient-summary-dashboard-slot",
"columns": 1,
"path": "hiv-patient-summary"
"path": "hiv-patient-summary",
"layoutMode": "anchored"
}
},
{
Expand All @@ -170,7 +171,8 @@
"meta": {
"slot": "program-management-summary-slot",
"columns": 1,
"path": "program-management"
"path": "program-management",
"layoutMode": "anchored"
}
},
{
Expand All @@ -185,7 +187,8 @@
"meta": {
"slot": "clinical-visits-summary-slot",
"columns": 1,
"path": "clinical-visits"
"path": "clinical-visits",
"layoutMode": "anchored"
}
},
{
Expand All @@ -200,7 +203,8 @@
"meta": {
"slot": "general-counselling-summary-slot",
"columns": 1,
"path": "general-counselling"
"path": "general-counselling",
"layoutMode": "anchored"
}
},
{
Expand All @@ -215,7 +219,8 @@
"meta": {
"slot": "adherence-counselling-summary-slot",
"columns": 1,
"path": "adherence-counselling"
"path": "adherence-counselling",
"layoutMode": "anchored"
}
},
{
Expand All @@ -230,7 +235,8 @@
"meta": {
"slot": "partner-notification-services-slot",
"columns": 1,
"path": "partner-notification-services"
"path": "partner-notification-services",
"layoutMode": "anchored"
}
},
{
Expand All @@ -251,7 +257,8 @@
"meta": {
"slot": "hts-summary-dashboard-slot",
"columns": 1,
"path": "hiv-testing-services"
"path": "hiv-testing-services",
"layoutMode": "anchored"
}
},
{
Expand Down
6 changes: 0 additions & 6 deletions packages/esm-ohri-core-app/src/root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,3 @@ div[class*='-esm-patient-vitals__vitals-header__warning-icon___GHya2'] {
div[class*='-esm-patient-vitals__vitals-header__row'] {
flex: 1 !important;
}

// Patient chart overrides

div[class*='-esm-patient-chart__patient-chart__chartReview'] {
max-width: 100% !important;
}
3 changes: 3 additions & 0 deletions packages/esm-ohri-pmtct-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ export const mchSummaryDashboardMeta = {
columns: 1,
title: 'MNCH Summary',
path: 'mnch-summary',
layoutMode: 'anchored',
};

export const maternalVisitsDashboardMeta = {
slot: 'maternal-visits-summary-slot',
columns: 1,
title: 'Maternal Visits',
path: 'maternal-visits',
layoutMode: 'anchored',
patientExpression: 'calculateAge(patient.birthDate) > 10',
};

Expand All @@ -27,6 +29,7 @@ export const childVisitsDashboardMeta = {
columns: 1,
title: 'Child Visits',
path: 'child-visits',
layoutMode: 'anchored',
patientExpression: 'calculateAge(patient.birthDate) <= 10',
};

Expand Down
3 changes: 3 additions & 0 deletions packages/esm-ohri-pmtct-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"meta": {
"path": "mnch-summary",
"slot": "mch-summary-slot",
"layoutMode": "anchored",
"columns": 1
}
},
Expand All @@ -37,6 +38,7 @@
"meta": {
"path": "maternal-visits",
"slot": "maternal-visits-summary-slot",
"layoutMode": "anchored",
"columns": 1
}
},
Expand All @@ -52,6 +54,7 @@
"meta": {
"path": "child-visits",
"slot": "child-visits-summary-slot",
"layoutMode": "anchored",
"columns": 1
}
},
Expand Down