diff --git a/packages/esm-commons-lib/src/utils/encounter-list-utils.ts b/packages/esm-commons-lib/src/utils/encounter-list-utils.ts index eb6e2d7ca..448591810 100644 --- a/packages/esm-commons-lib/src/utils/encounter-list-utils.ts +++ b/packages/esm-commons-lib/src/utils/encounter-list-utils.ts @@ -1,5 +1,6 @@ import dayjs from 'dayjs'; import { formatDate, parseDate } from '@openmrs/esm-framework'; +import { fetchPatientRelationships } from '../api/api'; export function getEncounterValues(encounter, param: string, isDate?: Boolean) { if (isDate) return dayjs(encounter[param]).format('DD-MMM-YYYY'); @@ -55,6 +56,15 @@ export function getMultipleObsFromEncounter(encounter, obsConcepts: Array p.provider.name).join(' | '); } + if (type === 'mothersName') { + return fetchMotherName(encounter.patient.uuid); + } + if (secondaryConcept && typeof obs.value === 'object' && obs.value.names) { const primaryValue = obs.value.names.find((conceptName) => conceptName.conceptNameType === 'SHORT')?.name || obs.value.name.name; @@ -91,7 +105,7 @@ export function getObsFromEncounter( } } - if (!obs && fallbackConcepts?.length >= 1) { + if (!obs && fallbackConcepts?.length) { const concept = fallbackConcepts.find((c) => findObs(encounter, c) != null); obs = findObs(encounter, concept); } diff --git a/packages/esm-ohri-pmtct-app/src/index.ts b/packages/esm-ohri-pmtct-app/src/index.ts index 0eaf0eea4..b361357df 100644 --- a/packages/esm-ohri-pmtct-app/src/index.ts +++ b/packages/esm-ohri-pmtct-app/src/index.ts @@ -21,7 +21,7 @@ import { createDashboardLink } from '@openmrs/esm-patient-common-lib'; export const importTranslation = require.context('../translations', false, /.json$/, 'lazy'); -export const moduleName = '@ohri/openmrs-esm-ohri-pmtct'; +export const moduleName = '@ohri/openmrs-esm-ohri-pmtct-app'; require('./root.scss'); diff --git a/packages/esm-ohri-pmtct-app/src/views/child-health/child-health-config.json b/packages/esm-ohri-pmtct-app/src/views/child-health/child-health-config.json new file mode 100644 index 000000000..77f59e2aa --- /dev/null +++ b/packages/esm-ohri-pmtct-app/src/views/child-health/child-health-config.json @@ -0,0 +1,77 @@ +{ + "menuId": "childHealth", + "tabDefinitions": [ + { + "tabName": "Infant Postnatal Visit", + "headerTitle": "Infant Postnatal Visit", + "displayText": "Infant Postnatal Visit", + "encounterType": "af1f1b24-d2e8-4282-b308-0bf79b365584", + "columns": [ + { + "id": "pTrackerId", + "title": "PTracker Id", + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2" + }, + { + "id": "mothersName", + "title": "Mothers Name", + "type": "mothersName" + }, + { + "id": "artProphylaxisStatus", + "title": "ART Prophylaxis Status", + "concept": "1148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "linkedToArt", + "title": "Linked to ART", + "concept": "a40d8bc4-56b8-4f28-a1dd-412da5cf20ed" + }, + { + "id": "breastfeedingStatus", + "title": "Breastfeeding status", + "concept": "1151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "outcomeStatus", + "title": "Outcome Status", + "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "nextVisitDate", + "isDate": true, + "title": "Next visit date", + "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "actions", + "title": "Actions", + "actionOptions": [ + { + "formName": "Antenatal Form", + "package": "pmtct", + "label": "View Details", + "mode": "view" + }, + { + "formName": "Antenatal Form", + "package": "pmtct", + "label": "Edit Form", + "mode": "edit" + } + ] + } + ], + "launchOptions": { + "displayText": "Add", + "moduleName": "@ohri/openmrs-esm-ohri-pmtct-app" + }, + "formList": [ + { + "name": "Infant - Postanal Form", + "uuid": "5022c5d7-ea45-47ce-bd65-1ba1d8ad2467" + } + ] + } + ] + } \ No newline at end of file diff --git a/packages/esm-ohri-pmtct-app/src/views/child-health/child-health.component.tsx b/packages/esm-ohri-pmtct-app/src/views/child-health/child-health.component.tsx index 8eed1ef48..1d1b3e21d 100644 --- a/packages/esm-ohri-pmtct-app/src/views/child-health/child-health.component.tsx +++ b/packages/esm-ohri-pmtct-app/src/views/child-health/child-health.component.tsx @@ -1,29 +1,41 @@ import React from 'react'; import { Tabs, Tab, TabList, TabPanels, TabPanel } from '@carbon/react'; import styles from '../common.scss'; -import { useTranslation } from 'react-i18next'; -import InfantPostnatalList from './tabs/infant-postnatal-care.component'; +import { EncounterList, getMenuItemTabConfiguration } from '@ohri/openmrs-esm-ohri-commons-lib'; +import childHealthTabConfigSchema from './child-health-config.json'; interface OverviewListProps { patientUuid: string; } -const ChildHealthList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); +const ChildHealthSummary: React.FC = ({ patientUuid }) => { + const tabs = getMenuItemTabConfiguration(childHealthTabConfigSchema); return (
- {t('infantPostnatalVisit', 'Infant Postnatal Visit')} + {tabs.map((tab) => ( + {tab.name} + ))} - - - + {tabs.map((tab) => ( + + + + ))}
); }; -export default ChildHealthList; +export default ChildHealthSummary; diff --git a/packages/esm-ohri-pmtct-app/src/views/child-health/tabs/infant-postnatal-care.component.tsx b/packages/esm-ohri-pmtct-app/src/views/child-health/tabs/infant-postnatal-care.component.tsx deleted file mode 100644 index 922cc67fd..000000000 --- a/packages/esm-ohri-pmtct-app/src/views/child-health/tabs/infant-postnatal-care.component.tsx +++ /dev/null @@ -1,121 +0,0 @@ -import React, { useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; -import { - EncounterList, - EncounterListColumn, - fetchPatientRelationships, - getObsFromEncounter, -} from '@ohri/openmrs-esm-ohri-commons-lib'; -import { moduleName } from '../../..'; -import { useConfig } from '@openmrs/esm-framework'; - -interface InfantPostnatalListProps { - patientUuid: string; -} - -const InfantPostnatalList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); - const config = useConfig(); - const headerTitle = t('hivExposedInfant', 'HIV Exposed Infant'); - const { encounterTypes, formNames, formUuids } = useConfig(); - - async function fetchMotherName() { - let motherName = '--'; - const response = await fetchPatientRelationships(patientUuid); - if (response.length) { - motherName = response[0].personA.display; - } - return motherName; - } - - const columns: EncounterListColumn[] = useMemo(() => { - return [ - { - key: 'pTrackerId', - header: t('pTrackerId', 'Child PTracker ID'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.pTrackerIdConcept); - }, - }, - { - key: 'mothersName', - header: t('mothersName', 'Mothers Name'), - getValue: async (encounter) => { - return await fetchMotherName(); - }, - }, - { - key: 'artProphylaxisStatus', - header: t('artProphylaxisStatus', 'ART Prophylaxis Status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.artProphylaxisStatus); - }, - }, - { - key: 'linkedToArt', - header: t('linkedToArt', 'Linked to ART'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.linkedToArt); - }, - }, - { - key: 'breastfeedingStatus', - header: t('breastfeedingStatus', 'Breastfeeding status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.breastfeedingStatus); - }, - }, - { - key: 'outcomeStatus', - header: t('outcomeStatus', 'Outcome Status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.outcomeStatus); - }, - }, - { - key: 'nextVisitDate', - header: t('nextVisitDate', 'Next visit date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.nextVisitDate, true); - }, - }, - { - key: 'actions', - header: t('actions', 'Actions'), - getValue: (encounter) => [ - { - form: { name: 'Infant - Postanal Form', package: 'child_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('viewDetails', 'View Details'), - mode: 'view', - }, - { - form: { name: 'Infant - Postanal Form', package: 'child_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('editForm', 'Edit Form'), - mode: 'edit', - }, - ], - }, - ]; - }, []); - - return ( - - ); -}; - -export default InfantPostnatalList; diff --git a/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health-config.json b/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health-config.json new file mode 100644 index 000000000..9183d275d --- /dev/null +++ b/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health-config.json @@ -0,0 +1,221 @@ +{ + "menuId": "maternalHealth", + "tabDefinitions": [ + { + "tabName": "Antenatal Care", + "headerTitle": "Antenatal Care", + "displayText": "Antenatal Care", + "encounterType": "677d1a80-dbbe-4399-be34-aa7f54f11405", + "columns": [ + { + "id": "pTrackerId", + "title": "PTracker Id", + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2" + }, + { + "id": "visitDate", + "isDate": true, + "title": "Visit Date", + "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "hivTestStatus", + "title": "HIV Test Status", + "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "artLinkage", + "title": "ART linkage (if positive)", + "concept": "6e62bf7e-2107-4d09-b485-6e60cbbb2d08" + }, + { + "id": "edd", + "isDate": true, + "title": "EDD", + "concept": "5596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "facility", + "title": "Facility", + "type": "location" + }, + { + "id": "followUpDate", + "isDate": true, + "title": "Next follow-up date", + "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "vlResults", + "title": "VL Results", + "concept": "1305AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "actions", + "title": "Actions", + "actionOptions": [ + { + "formName": "Antenatal Form", + "package": "pmtct", + "label": "View Details", + "mode": "view" + }, + { + "formName": "Antenatal Form", + "package": "pmtct", + "label": "Edit Form", + "mode": "edit" + } + ] + } + ], + "launchOptions": { + "displayText": "Add", + "moduleName": "@ohri/openmrs-esm-ohri-pmtct-app" + }, + "formList": [ + { + "name": "Antenatal Form", + "uuid": "5255a535-2acb-3f44-bd0a-3f80595dece1" + } + ] + }, + { + "tabName": "Labour and Delivery", + "headerTitle": "Labour and Delivery", + "displayText": "Labour and Delivery", + "encounterType": "6dc5308d-27c9-4d49-b16f-2c5e3c759757", + "columns": [ + { + "id": "pTrackerId", + "title": "PTracker Id", + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2" + }, + { + "id": "deliveryDate", + "isDate": true, + "title": "Delivery Date", + "concept": "5599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "bookedForANC", + "title": "Booked for ANC", + "concept": "1719AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "hivTestStatus", + "title": "HIV Test Status", + "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "artInitiation", + "isDate": true, + "title": "ART Initiation", + "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "birthCount", + "title": "Birth Count", + "concept": "1568AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "actions", + "title": "Actions", + "actionOptions": [ + { + "formName": "Labour & Delivery Form", + "package": "pmtct", + "label": "View Details", + "mode": "view" + }, + { + "formName": "Labour & Delivery Form", + "package": "pmtct", + "label": "Edit Form", + "mode": "edit" + } + ] + } + ], + "launchOptions": { + "displayText": "Add", + "moduleName": "@ohri/openmrs-esm-ohri-pmtct-app" + }, + "formList": [ + { + "name": "Labour & Delivery Form", + "uuid": "1e5614d6-5306-11e6-beb8-9e71128cae77" + } + ] + }, + { + "tabName": "Postnatal Care", + "headerTitle": "Postnatal Care", + "displayText": "Postnatal Care", + "encounterType": "269bcc7f-04f8-4ddc-883d-7a3a0d569aad", + "columns": [ + { + "id": "pTrackerId", + "title": "PTracker Id", + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2" + }, + { + "id": "visitDate", + "isDate": true, + "title": "Visit Date", + "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "currentHivStatus", + "title": "Current HIV Status", + "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "recentViralLoadTestDate", + "isDate": true, + "title": "Recent Viral load test date", + "concept": "163281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "recentViralLoadResults", + "title": "Recent Viral load results", + "concept": "1305AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "nextVisitDate", + "isDate": true, + "title": "Next visit date", + "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + { + "id": "actions", + "title": "Actions", + "actionOptions": [ + { + "formName": "Postnatal Care", + "package": "pmtct", + "label": "View Details", + "mode": "view" + }, + { + "formName": "Postnatal Care", + "package": "pmtct", + "label": "Edit Form", + "mode": "edit" + } + ] + } + ], + "launchOptions": { + "displayText": "Add", + "moduleName": "@ohri/openmrs-esm-ohri-pmtct-app" + }, + "formList": [ + { + "name": "Mother - Postnatal Form", + "uuid": "e6b67aa4-6c59-4470-8ad5-b994efeda553" + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health.component.tsx b/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health.component.tsx index 95cedbed7..42b420522 100644 --- a/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health.component.tsx +++ b/packages/esm-ohri-pmtct-app/src/views/maternal-health/maternal-health.component.tsx @@ -1,39 +1,41 @@ import React from 'react'; import { Tabs, Tab, TabList, TabPanels, TabPanel } from '@carbon/react'; import styles from '../common.scss'; -import { useTranslation } from 'react-i18next'; -import AntenatalCareList from './tabs/antenatal-care.component'; -import LabourDeliveryList from './tabs/labour-delivery.component'; -import PostnatalCareList from './tabs/postnatal-care.component'; +import { EncounterList, getMenuItemTabConfiguration } from '@ohri/openmrs-esm-ohri-commons-lib'; +import maternalHealthTabConfigSchema from './maternal-health-config.json'; interface OverviewListProps { patientUuid: string; } -const MaternalHealthList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); +const MaternalHealthSummary: React.FC = ({ patientUuid }) => { + const tabs = getMenuItemTabConfiguration(maternalHealthTabConfigSchema); return (
- {t('antenatalCare', 'Antenatal Care')} - {t('labourAndDelivery', 'Labour and Delivery')} - {t('postnatalCare', 'Postnatal Care')} + {tabs.map((tab) => ( + {tab.name} + ))} - - - - - - - - - + {tabs.map((tab) => ( + + + + ))}
); }; -export default MaternalHealthList; +export default MaternalHealthSummary; diff --git a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/antenatal-care.component.tsx b/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/antenatal-care.component.tsx deleted file mode 100644 index 80644d420..000000000 --- a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/antenatal-care.component.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import React, { useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; -import { EncounterList, EncounterListColumn, getObsFromEncounter } from '@ohri/openmrs-esm-ohri-commons-lib'; -import { moduleName } from '../../../index'; -import { useConfig } from '@openmrs/esm-framework'; - -interface AntenatalCareListProps { - patientUuid: string; -} - -const AntenatalCareList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); - const config = useConfig(); - const headerTitle = t('antenatalCare', 'Antenatal Care'); - const { encounterTypes, formNames, formUuids } = useConfig(); - - const columns: EncounterListColumn[] = useMemo( - () => [ - { - key: 'pTrackerId', - header: t('pTrackerId', 'PTracker Id'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.pTrackerIdConcept); - }, - }, - { - key: 'visitDate', - header: t('visitDate', 'Visit Date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.visitDateConcept, true); - }, - }, - { - key: 'hivTestStatus', - header: t('hivTestStatus', 'HIV Test Status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.hivTestStatus); - }, - }, - { - key: 'artLinkage', - header: t('artLinkage', 'ART linkage (if positive)'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.artInitiationConcept); - }, - }, - { - key: 'edd', - header: t('edd', 'EDD'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.eDDConcept, true); - }, - }, - { - key: 'facility', - header: t('facility', 'Facility'), - getValue: (encounter) => { - return encounter.location.name; - }, - }, - { - key: 'followUpDate', - header: t('followUpDate', 'Next follow-up date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.followUpDateConcept, true); - }, - }, - { - key: 'vlResults', - header: t('vlResults', 'VL Results'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.vLResultsConcept); - }, - }, - { - key: 'actions', - header: t('actions', 'Actions'), - getValue: (encounter) => [ - { - form: { name: 'Antenatal Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('viewDetails', 'View Details'), - mode: 'view', - }, - { - form: { name: 'Antenatal Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('editForm', 'Edit Form'), - mode: 'edit', - }, - ], - }, - ], - [], - ); - - return ( - - ); -}; - -export default AntenatalCareList; diff --git a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/labour-delivery.component.tsx b/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/labour-delivery.component.tsx deleted file mode 100644 index 9515b21f3..000000000 --- a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/labour-delivery.component.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import React, { useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; -import { EncounterList, EncounterListColumn, getObsFromEncounter } from '@ohri/openmrs-esm-ohri-commons-lib'; -import { moduleName } from '../../../index'; -import { useConfig } from '@openmrs/esm-framework'; - -interface LabourDeliveryListProps { - patientUuid: string; -} - -const LabourDeliveryList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); - const config = useConfig(); - const headerTitle = t('labourAndDelivery', 'Labour and Delivery'); - const { encounterTypes, formNames, formUuids } = useConfig(); - - const columns: EncounterListColumn[] = useMemo( - () => [ - { - key: 'pTrackerId', - header: t('pTrackerId', 'PTracker Id'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.pTrackerIdConcept); - }, - }, - { - key: 'deliveryDate', - header: t('deliveryDate', 'Delivery Date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.visitDateConcept, true); - }, - }, - { - key: 'bookedForANC', - header: t('bookedForANC', 'Booked for ANC'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.bookedForAncConcept); - }, - }, - { - key: 'hivTestStatus', - header: t('hivTestStatus', 'HIV Test Status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.hivTestStatus); - }, - }, - { - key: 'artInitiation', - header: t('artInitiation', 'ART Initiation'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.artInitiationConcept); - }, - }, - { - key: 'birthCount', - header: t('birthCount', 'Birth Count'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.birthCountConcept); - }, - }, - { - key: 'actions', - header: t('actions', 'Actions'), - getValue: (encounter) => [ - { - form: { name: 'Labour & Delivery Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('viewDetails', 'View Details'), - mode: 'view', - }, - { - form: { name: 'Labour & Delivery Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('editForm', 'Edit Form'), - mode: 'edit', - }, - ], - }, - ], - [], - ); - - return ( - - ); -}; - -export default LabourDeliveryList; diff --git a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/postnatal-care.component.tsx b/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/postnatal-care.component.tsx deleted file mode 100644 index d581da9dd..000000000 --- a/packages/esm-ohri-pmtct-app/src/views/maternal-health/tabs/postnatal-care.component.tsx +++ /dev/null @@ -1,101 +0,0 @@ -import React, { useMemo } from 'react'; -import { useTranslation } from 'react-i18next'; -import { EncounterList, EncounterListColumn, getObsFromEncounter } from '@ohri/openmrs-esm-ohri-commons-lib'; -import { moduleName } from '../../..'; -import { useConfig } from '@openmrs/esm-framework'; - -interface PostnatalCareListProps { - patientUuid: string; -} - -const PostnatalCareList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); - const config = useConfig(); - const headerTitle = t('postnatalCare', 'Postnatal Care'); - const { encounterTypes, formNames, formUuids } = useConfig(); - - const columns: EncounterListColumn[] = useMemo( - () => [ - { - key: 'pTrackerId', - header: t('pTrackerId', 'PTracker ID'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.pTrackerIdConcept); - }, - }, - { - key: 'visitDate', - header: t('visitDate', 'Visit Date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.visitDate, true); - }, - }, - { - key: 'currentHivStatus', - header: t('currentHivStatus', 'Current HIV Status'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.hivTestStatus); - }, - }, - { - key: 'recentViralLoadTestDate', - header: t('recentViralLoadTestDate', 'Recent Viral load test date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.MotherViralLoadDate, true); - }, - }, - { - key: 'recentViralLoadResults', - header: t('recentViralLoadResults', 'Recent Viral load results'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.MotherViralLoadResult); - }, - }, - { - key: 'nextVisitDate', - header: t('nextVisitDate', 'Next visit date'), - getValue: (encounter) => { - return getObsFromEncounter(encounter, config.obsConcepts.MotherNextVisitDate, true); - }, - }, - { - key: 'actions', - header: t('actions', 'Actions'), - getValue: (encounter) => [ - { - form: { name: 'Mother - Postnatal Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('viewDetails', 'View Details'), - mode: 'view', - }, - { - form: { name: 'Mother - Postnatal Form', package: 'maternal_health' }, - encounterUuid: encounter.uuid, - intent: '*', - label: t('editForm', 'Edit Form'), - mode: 'edit', - }, - ], - }, - ], - [], - ); - - return ( - - ); -}; - -export default PostnatalCareList; diff --git a/yarn.lock b/yarn.lock index 5eb84e3b3..471f5eda0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1473,13 +1473,6 @@ __metadata: languageName: node linkType: hard -"@carbon/icon-helpers@npm:^10.44.0": - version: 10.45.1 - resolution: "@carbon/icon-helpers@npm:10.45.1" - checksum: 69da5ae85b586c5bb754f1db90069fb48f556c9f5023318a25572faa07e6dca0f07aaec237eaec883029bb75819b64c30bf4716339cdbab590ca0ee648ef67bc - languageName: node - linkType: hard - "@carbon/icon-helpers@npm:^10.48.0": version: 10.48.0 resolution: "@carbon/icon-helpers@npm:10.48.0" @@ -1489,19 +1482,6 @@ __metadata: languageName: node linkType: hard -"@carbon/icons-react@npm:11.26.0": - version: 11.26.0 - resolution: "@carbon/icons-react@npm:11.26.0" - dependencies: - "@carbon/icon-helpers": "npm:^10.44.0" - "@carbon/telemetry": "npm:0.1.0" - prop-types: "npm:^15.7.2" - peerDependencies: - react: ">=16" - checksum: 70fec92a7c24378647e7b4edb6d468a0f5a9260f68bcaf91dd3ffb90cd1d371c79ba156702b01db57db0ef9fc10049b71c16715015989c540bb1b1833abd3956 - languageName: node - linkType: hard - "@carbon/icons-react@npm:^11.26.0, @carbon/icons-react@npm:^11.41.0": version: 11.41.0 resolution: "@carbon/icons-react@npm:11.41.0" @@ -3051,7 +3031,7 @@ __metadata: version: 0.0.0-use.local resolution: "@ohri/openmrs-esm-ohri@workspace:." dependencies: - "@openmrs/esm-framework": "npm:next" + "@openmrs/esm-framework": "npm:^5.6.1-pre.1881" "@openmrs/esm-patient-common-lib": "npm:next" "@playwright/test": "npm:^1.30.0" "@swc/cli": "npm:^0.1.57" @@ -3095,7 +3075,7 @@ __metadata: jest-coverage-badges: "npm:1.1.2" jest-environment-jsdom: "npm:^29.7.0" lodash: "npm:^4.17.21" - openmrs: "npm:next" + openmrs: "npm:^5.6.1-pre.1881" prettier: "npm:^3.1.1" pretty-quick: "npm:^3.1.0" react: "npm:^18.2.0" @@ -3117,9 +3097,9 @@ __metadata: languageName: unknown linkType: soft -"@openmrs/esm-api@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-api@npm:5.6.1-pre.1830" +"@openmrs/esm-api@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-api@npm:5.6.1-pre.1881" dependencies: "@types/fhir": "npm:0.0.31" lodash-es: "npm:^4.17.21" @@ -3128,17 +3108,17 @@ __metadata: "@openmrs/esm-error-handling": 5.x "@openmrs/esm-navigation": 5.x "@openmrs/esm-offline": 5.x - checksum: df33583e2366643a340db3c0361c0545216450e232578b832befe06d33f5ae087bb668534d699f1da4f895a5341c5f61c91c8de4144f98153c7f18c6a82b325b + checksum: 7bfde260ff8088229d31f61241a72677a1697033c52b973749f5160ba46f8eabf5115860b25358a3942eb3745fd32d5a7e8b3dbe4148300367a3ece2e0846573 languageName: node linkType: hard -"@openmrs/esm-app-shell@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-app-shell@npm:5.6.1-pre.1830" +"@openmrs/esm-app-shell@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-app-shell@npm:5.6.1-pre.1881" dependencies: "@carbon/react": "npm:~1.37.0" - "@openmrs/esm-framework": "npm:5.6.1-pre.1830" - "@openmrs/esm-styleguide": "npm:5.6.1-pre.1830" + "@openmrs/esm-framework": "npm:5.6.1-pre.1881" + "@openmrs/esm-styleguide": "npm:5.6.1-pre.1881" dayjs: "npm:^1.10.4" dexie: "npm:^3.0.3" html-webpack-plugin: "npm:^5.5.0" @@ -3163,56 +3143,57 @@ __metadata: workbox-strategies: "npm:^6.1.5" workbox-webpack-plugin: "npm:^6.1.5" workbox-window: "npm:^6.1.5" - checksum: d1cae10199d22b492d915e013bc70e68990f06ae9a732861d3a6a08819dd2d07de03d2123e6cc3ffceb1e0df8ff9c04acf79bc2dbe3b50a5c5e6f8562303d69b + checksum: af0bd51ebe9c5ddd186c1da70d33c21d112db72208a8e98ecd4d00606bb8454fffb267f8382cb59d970de293105e933b4fd4d29f144efb1ed530afd97709d4ca languageName: node linkType: hard -"@openmrs/esm-config@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-config@npm:5.6.1-pre.1830" +"@openmrs/esm-config@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-config@npm:5.6.1-pre.1881" dependencies: ramda: "npm:^0.26.1" peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x single-spa: 5.x - checksum: 05eefae1555469a453d5e181c415cb1ecf800a7534284df0d73b1fe5814d5f7a9619bbd541c78a067d4425f867e3e3c19dc7a22e0dd6b314efddf4a5466b2b8a + checksum: 5828da3e0d9c304dbd0babebd69810987d93ab0b3dfd9ded3285707f815ccd7092f5e883bb9de2401b50e5bc6df94264b5253b285ca06a7e6b8acf0160462cbd languageName: node linkType: hard -"@openmrs/esm-context@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-context@npm:5.6.1-pre.1830" +"@openmrs/esm-context@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-context@npm:5.6.1-pre.1881" dependencies: immer: "npm:^10.0.4" peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x - checksum: b4d85f1d85685fa123545d383424f9f9ab74891ab97ffe538cf16e97aabf0555f87d6a29553c61ab12ae168d2b1c655ec1e18c0a5b338acd96fb03d004a4ce64 + checksum: 9801a8528ca8ed3b66f161965d239181450a49d69958b92adae66cb65f4bd3a1df856d85d38459bdad42716922274dd96b1a39693ecc75a2ec0998b8dda78dfa languageName: node linkType: hard -"@openmrs/esm-dynamic-loading@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-dynamic-loading@npm:5.6.1-pre.1830" +"@openmrs/esm-dynamic-loading@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-dynamic-loading@npm:5.6.1-pre.1881" peerDependencies: "@openmrs/esm-globals": 5.x - checksum: 718eff2f0eb1c9dc7f08adc6287b1ff4cae940daa83bfd6ba22bcad3115fc3d0e1b8e9f3b8a21d7db18748ae09263281f394646249d6391bc08eab87c83b0cad + "@openmrs/esm-translations": 5.x + checksum: 9ddf0c393e4dd91442e2a5aae8a4a6a2ebc91024826370818e091690e2f72d3fa07f3e5debcad7fc03799205c8d90cfd18de1522fbbd07198ae6db290cc5f3fc languageName: node linkType: hard -"@openmrs/esm-error-handling@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-error-handling@npm:5.6.1-pre.1830" +"@openmrs/esm-error-handling@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-error-handling@npm:5.6.1-pre.1881" peerDependencies: "@openmrs/esm-globals": 5.x - checksum: 30daee93a2af8b67374c4029c0a81eb0bab377a37fd72911847c466368336f060f12ae8146db18eef581e406003326788eb30d1364d5c794b24678a0ac94602d + checksum: 6c7197f9145086e18f1514f8d3f7f8d32dd45f73bab5758909b3e954c99ffe362b0a1ac017d4cc122563a98fc2897d5ac27a4f1321ea643c005d416562ae2b9d languageName: node linkType: hard -"@openmrs/esm-extensions@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-extensions@npm:5.6.1-pre.1830" +"@openmrs/esm-extensions@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-extensions@npm:5.6.1-pre.1881" dependencies: lodash-es: "npm:^4.17.21" peerDependencies: @@ -3222,43 +3203,43 @@ __metadata: "@openmrs/esm-state": 5.x "@openmrs/esm-utils": 5.x single-spa: 5.x - checksum: 29e98fe0d9bef9c077d9fea7a310b47be0a8c9bd50fb10e1d732fa1265890e1bb4c3d0599a6b891ae50527ede18d6a5f6793566e50042c2c7b0a0f0ac516c614 + checksum: d99347205e515e3410b5c17dad5857eb472160aa52a0c81194c6c05455058c70bca3ab89daee5ed1a8f0865a0588ed8939ebe954c4cc5624db23eb52b465b33a languageName: node linkType: hard -"@openmrs/esm-feature-flags@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-feature-flags@npm:5.6.1-pre.1830" +"@openmrs/esm-feature-flags@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-feature-flags@npm:5.6.1-pre.1881" dependencies: ramda: "npm:^0.26.1" peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x single-spa: 5.x - checksum: 718bf324cc89d46de916c334c1495b0813a9ef2a5facf3f4b779442708d8ff9ccd0f3cd2715f0554cedacfbfa1b7f0850294e252a7d1397340a6cb8cae2d4186 - languageName: node - linkType: hard - -"@openmrs/esm-framework@npm:5.6.1-pre.1830, @openmrs/esm-framework@npm:next": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-framework@npm:5.6.1-pre.1830" - dependencies: - "@openmrs/esm-api": "npm:5.6.1-pre.1830" - "@openmrs/esm-config": "npm:5.6.1-pre.1830" - "@openmrs/esm-context": "npm:5.6.1-pre.1830" - "@openmrs/esm-dynamic-loading": "npm:5.6.1-pre.1830" - "@openmrs/esm-error-handling": "npm:5.6.1-pre.1830" - "@openmrs/esm-extensions": "npm:5.6.1-pre.1830" - "@openmrs/esm-feature-flags": "npm:5.6.1-pre.1830" - "@openmrs/esm-globals": "npm:5.6.1-pre.1830" - "@openmrs/esm-navigation": "npm:5.6.1-pre.1830" - "@openmrs/esm-offline": "npm:5.6.1-pre.1830" - "@openmrs/esm-react-utils": "npm:5.6.1-pre.1830" - "@openmrs/esm-routes": "npm:5.6.1-pre.1830" - "@openmrs/esm-state": "npm:5.6.1-pre.1830" - "@openmrs/esm-styleguide": "npm:5.6.1-pre.1830" - "@openmrs/esm-translations": "npm:5.6.1-pre.1830" - "@openmrs/esm-utils": "npm:5.6.1-pre.1830" + checksum: fac901b6c3e4e34b549849202e7a9625a1d925e1555a9028164e9d4ec1a47421b909e9aab274e441c4c2347b3e4c9b61048431a951d6ac9b3d2e5dc15178ae01 + languageName: node + linkType: hard + +"@openmrs/esm-framework@npm:5.6.1-pre.1881, @openmrs/esm-framework@npm:^5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-framework@npm:5.6.1-pre.1881" + dependencies: + "@openmrs/esm-api": "npm:5.6.1-pre.1881" + "@openmrs/esm-config": "npm:5.6.1-pre.1881" + "@openmrs/esm-context": "npm:5.6.1-pre.1881" + "@openmrs/esm-dynamic-loading": "npm:5.6.1-pre.1881" + "@openmrs/esm-error-handling": "npm:5.6.1-pre.1881" + "@openmrs/esm-extensions": "npm:5.6.1-pre.1881" + "@openmrs/esm-feature-flags": "npm:5.6.1-pre.1881" + "@openmrs/esm-globals": "npm:5.6.1-pre.1881" + "@openmrs/esm-navigation": "npm:5.6.1-pre.1881" + "@openmrs/esm-offline": "npm:5.6.1-pre.1881" + "@openmrs/esm-react-utils": "npm:5.6.1-pre.1881" + "@openmrs/esm-routes": "npm:5.6.1-pre.1881" + "@openmrs/esm-state": "npm:5.6.1-pre.1881" + "@openmrs/esm-styleguide": "npm:5.6.1-pre.1881" + "@openmrs/esm-translations": "npm:5.6.1-pre.1881" + "@openmrs/esm-utils": "npm:5.6.1-pre.1881" dayjs: "npm:^1.10.7" peerDependencies: dayjs: 1.x @@ -3269,35 +3250,35 @@ __metadata: rxjs: 6.x single-spa: 5.x swr: 2.x - checksum: 5d82632d4e15f1b949a181e6a883bcefe1ecd12950e5beb395c5ce8ab500e7a161d297242270cde90888e9f1e5b5672c6ac8536a77196b7da5f9629e7793d8fd + checksum: d70d94878aede4268ccfdd3418dec96890e1119071e2b8949fe8e6b199a4e1d0b39f2c7ec405c4afa49d763e1a233b7a39b51842decce19deeaab2f97ba6fa54 languageName: node linkType: hard -"@openmrs/esm-globals@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-globals@npm:5.6.1-pre.1830" +"@openmrs/esm-globals@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-globals@npm:5.6.1-pre.1881" dependencies: "@types/fhir": "npm:0.0.31" peerDependencies: single-spa: 5.x - checksum: 9037d08b943413c176b8d675889ce1df382c2267acd8c9e396006000e204fd7e6f6099af0504edae711052f9873480273b768de076ae36d1ddc450ba864cea76 + checksum: b36a10ef44f0625a9dd0536d28a3fd79fa1eb8dc5579cda1365de1c1db831933228cb6d99f6064951109c039b7163e215f0651ef472f35cb8c75cb18dcdbf89a languageName: node linkType: hard -"@openmrs/esm-navigation@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-navigation@npm:5.6.1-pre.1830" +"@openmrs/esm-navigation@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-navigation@npm:5.6.1-pre.1881" dependencies: path-to-regexp: "npm:6.1.0" peerDependencies: "@openmrs/esm-state": 5.x - checksum: 09b09601009aeff173f21031dec341b45c3d40ce5e66655db33ad530a6f9b098b0f8187c81350f3675a04a3292376de4e1b461ca7e016f5debb3a699fed5a75f + checksum: 5f8739d0b033395473c3b2ae184820b2a1cfeea9dfe08d7e18e2102d6dff9acdaad2517bfb545fa944fe2649e6069d06ccbadacfba8262e0b51774619a352bb2 languageName: node linkType: hard -"@openmrs/esm-offline@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-offline@npm:5.6.1-pre.1830" +"@openmrs/esm-offline@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-offline@npm:5.6.1-pre.1881" dependencies: dexie: "npm:^3.0.3" lodash-es: "npm:^4.17.21" @@ -3308,7 +3289,7 @@ __metadata: "@openmrs/esm-globals": 5.x "@openmrs/esm-state": 5.x rxjs: 6.x - checksum: 3e3441d4829dfec04cc1f6f4b001a7c68cc0b450627c5b9d1bad1a2d9298677daea99fc2395d4f3edae93eff5d4d17b508ca6206556375300f8d5bc13ce01565 + checksum: fdaabbf6bc725031e7758cb90c52ca0b8ec3f22316134b8daa9ce14deecceac0e447a38db052829958056f4c59645eb7da40b167d2c86392cf7d7a89ca8659f6 languageName: node linkType: hard @@ -3327,9 +3308,9 @@ __metadata: languageName: node linkType: hard -"@openmrs/esm-react-utils@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-react-utils@npm:5.6.1-pre.1830" +"@openmrs/esm-react-utils@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-react-utils@npm:5.6.1-pre.1881" dependencies: lodash-es: "npm:^4.17.21" single-spa-react: "npm:^6.0.0" @@ -3350,34 +3331,34 @@ __metadata: react-i18next: 11.x rxjs: 6.x swr: 2.x - checksum: e79e3b4d04bb4f3ddea08bb8305809cfa15df25fab74b655b3c4a867675c310a3cb48452278eb471e0bc49ca1ace5df9ed6d90b6a6b5018e60deac235f5db835 + checksum: 07546a904a796f9b32180f3bb9315e2eaa1e211eb1444d2112e134db66a07ea10cc3eb226403b4b4ea5275d107624f0b99642f60ea525aea89061df93bda7191 languageName: node linkType: hard -"@openmrs/esm-routes@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-routes@npm:5.6.1-pre.1830" +"@openmrs/esm-routes@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-routes@npm:5.6.1-pre.1881" peerDependencies: "@openmrs/esm-globals": 5.x "@openmrs/esm-utils": 5.x - checksum: fcc4207889f3b5ddafcb6ae95bf680581578856af8d137c172623541bb65580a687f7869db4052cb2476cab28f8ed8847506999901f4fa2c8d93625d9ea3f791 + checksum: aa9a7c54e1c2242cd51ae5d21746f125c2482fe9ad8931144e7050bbcb52ceba14a72e9b8a57f9d69072eb0543b25f42f9acb27ee95d698fff25352302e68492 languageName: node linkType: hard -"@openmrs/esm-state@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-state@npm:5.6.1-pre.1830" +"@openmrs/esm-state@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-state@npm:5.6.1-pre.1881" dependencies: zustand: "npm:^4.3.6" peerDependencies: "@openmrs/esm-globals": 5.x - checksum: 274310fdddc307d0047d2dced3c4424f7f140e866a74ce9783af6af694038a22639c73d0dac5fa1c30e1d60cef9d722b8af3e32dffc336718c6770e8429ed423 + checksum: 50392361644f156cab935a5a4e08661585eb625aa4d1fb983b8ddbd85bd73753954ca00ff991fc61d8dcbddc3599b6c7c2a2b08d1e06715eab55566cb4e90447 languageName: node linkType: hard -"@openmrs/esm-styleguide@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-styleguide@npm:5.6.1-pre.1830" +"@openmrs/esm-styleguide@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-styleguide@npm:5.6.1-pre.1881" dependencies: "@carbon/charts": "npm:^1.12.0" "@carbon/react": "npm:~1.37.0" @@ -3402,24 +3383,24 @@ __metadata: react: 18.x react-dom: 18.x rxjs: 6.x - checksum: 48c6f729d3aa432b9e7678493498b284e3abc5340f6d9d2afd2c096f96e87d426771f957c5335ee729bf4849eb335bb0cb6f79c03872376a33c11940f1b76b35 + checksum: 99bc768be53cc2ece0deb89ae105ac2abb8f40342398bc30000daacb66a32daf6fb9640e2694add320e9d40f2cc13491dc13d1e6cd0634ef006c2b62d4dbc4bf languageName: node linkType: hard -"@openmrs/esm-translations@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-translations@npm:5.6.1-pre.1830" +"@openmrs/esm-translations@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-translations@npm:5.6.1-pre.1881" dependencies: i18next: "npm:21.10.0" peerDependencies: i18next: 21.x - checksum: fa8d9f974e5aadb9dfd127c03a12b5945e3abb5ee3c503a2445c34ee1dccd2825e9dfad6b6b44b7c655d61abd6c5e3d155d35271d7f632181c53bbe1fd217464 + checksum: 35473eaa7c4b6159f8be34ff0e124488a2c91e6de9d61b696831caf2e155fc463542b8011246ff9aa48f076d36b81b3476c5108e9836659604aeb106385f3da3 languageName: node linkType: hard -"@openmrs/esm-utils@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/esm-utils@npm:5.6.1-pre.1830" +"@openmrs/esm-utils@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/esm-utils@npm:5.6.1-pre.1881" dependencies: "@internationalized/date": "npm:^3.5.0" semver: "npm:7.3.2" @@ -3428,7 +3409,7 @@ __metadata: dayjs: 1.x i18next: 21.x rxjs: 6.x - checksum: 1296f8841072417c63404c172829422c12355cc4e8ab542e96868a6f817b4466c70d0a610196ec7451950546e926adccb646891ae972d5fa60b9380c4fc3d4fb + checksum: 2e73d7298d6a702b1b84fef57b382b9a92227ebab13cdddd72c1ab5233b25c6780949f3a4e0146077422179009ec30dd38e9a27506bf5d738b355a30efd92827 languageName: node linkType: hard @@ -3460,9 +3441,9 @@ __metadata: languageName: node linkType: hard -"@openmrs/webpack-config@npm:5.6.1-pre.1830": - version: 5.6.1-pre.1830 - resolution: "@openmrs/webpack-config@npm:5.6.1-pre.1830" +"@openmrs/webpack-config@npm:5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "@openmrs/webpack-config@npm:5.6.1-pre.1881" dependencies: "@swc/core": "npm:^1.3.58" clean-webpack-plugin: "npm:^4.0.0" @@ -3479,7 +3460,7 @@ __metadata: webpack-stats-plugin: "npm:^1.0.3" peerDependencies: webpack: 5.x - checksum: 33f9a12e3c3bfbcaf07c566f0192db5dcbc3ee29317bb05a82b27decd6658c0a02fcffb3f194b2b4baa786cb02c3ad2eca7dd0d9d568efee2c845c92e7f52f39 + checksum: 4ffc94a09735524a70d6d077800dbd064ee37c218b49afad48079bd939e1e9d88930fb7ce0e6ef7b5270f87acfbee04188f812561d77fd6b314704d1ce766382 languageName: node linkType: hard @@ -13819,13 +13800,12 @@ __metadata: languageName: node linkType: hard -"openmrs@npm:next": - version: 5.6.1-pre.1830 - resolution: "openmrs@npm:5.6.1-pre.1830" +"openmrs@npm:^5.6.1-pre.1881": + version: 5.6.1-pre.1881 + resolution: "openmrs@npm:5.6.1-pre.1881" dependencies: - "@carbon/icons-react": "npm:11.26.0" - "@openmrs/esm-app-shell": "npm:5.6.1-pre.1830" - "@openmrs/webpack-config": "npm:5.6.1-pre.1830" + "@openmrs/esm-app-shell": "npm:5.6.1-pre.1881" + "@openmrs/webpack-config": "npm:5.6.1-pre.1881" "@pnpm/npm-conf": "npm:^2.1.0" "@swc/core": "npm:^1.3.58" autoprefixer: "npm:^10.4.2" @@ -13857,7 +13837,7 @@ __metadata: yargs: "npm:^17.6.2" bin: openmrs: ./dist/cli.js - checksum: b72cfb415764e1a47248ba12210ccdded3aaa05a48ca3da3378aa785f682e1410f5ebcf83995da507ddc536d2ca5120b5a27eed390d9e66522bfc9adaa1c8533 + checksum: 36670062a7bf6df006b83c80aca53fd6889b2b221532349752b987416abdad8eaba4c79203bf3ff7023d2ce0800e3c0e7c9e6dcf2ac9b5fa0c4b7d1acc873319 languageName: node linkType: hard