Skip to content

Commit

Permalink
Merge pull request #1676 from lucyjemutai/OHRI_1893
Browse files Browse the repository at this point in the history
OHRI-1893:ANC and L&D & PNC  entries for male clients discontinued
  • Loading branch information
pirupius authored Nov 5, 2023
2 parents 841ecb6 + 5ba1800 commit d9ec332
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/esm-ohri-pmtct-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const mchFolderMeta = {
title: 'Maternal & Child Health',
slotName: 'mch-slot',
isExpanded: false,
patientExpression: 'calculateAge(patient.birthDate) <= 10 || patient.gender === "female"',
};

export const mchSummaryDashboardMeta = {
Expand Down
3 changes: 2 additions & 1 deletion packages/esm-ohri-pmtct-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
createOHRIDashboardLink,
OHRIHome,
OHRIWelcomeSection,
createConditionalDashboardGroup,
} from '@ohri/openmrs-esm-ohri-commons-lib';
import { generateInfantPTrackerId } from './utils/ptracker-forms-helpers';

Expand Down Expand Up @@ -66,7 +67,7 @@ export function startupApp() {
);
}

export const mchDashboard = getSyncLifecycle(createDashboardGroup(mchFolderMeta), options);
export const mchDashboard = getSyncLifecycle(createConditionalDashboardGroup(mchFolderMeta), options);
export const mchSummaryDashboardLink = getSyncLifecycle(
createDashboardLink({ ...mchSummaryDashboardMeta, moduleName }),
options,
Expand Down

0 comments on commit d9ec332

Please sign in to comment.