@kenyaemr/esm-express-workflow-app 5.4.2-pre.2575 → 5.4.2-pre.2580

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"express-workflow"}],"extensions":[{"component":"admissionsLeftPanelLink","name":"admissions-dashboard-link","slot":"express-workflow-left-panel-slot","order":9,"meta":{"name":"admissions","slot":"admissions-dashboard-slot","title":"Admissions"}},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot"},{"component":"consultationLeftPanelLink","name":"consultation-dashboard-link","slot":"homepage-dashboard-slot","order":3,"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"}},{"component":"consultationDashboard","name":"consultation-dashboard","slot":"consultation-dashboard-slot"},{"component":"facilityLeftPanelLink","name":"facility-dashboard-link","slot":"homepage-dashboard-slot","order":0,"meta":{"name":"dashboard","slot":"facility-dashboard-slot","title":"Dashboard"}},{"component":"facilityDashboard","name":"facility-dashboard","slot":"facility-dashboard-slot"},{"component":"mchLeftPanelLink","name":"mch-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"mch","slot":"mch-dashboard-slot","title":"MCH"}},{"component":"mchDashboard","name":"mch-dashboard","slot":"mch-dashboard-slot"},{"component":"registrationLeftPanelLink","name":"registration-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"registration","slot":"registration-dashboard-slot","title":"Registration"}},{"component":"registrationDashboard","name":"registration-dashboard","slot":"registration-dashboard-slot"},{"component":"triageLeftPanelLink","name":"triage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"triage","slot":"triage-dashboard-slot","title":"Triage"}},{"component":"triageDashboard","name":"triage-dashboard","slot":"triage-dashboard-slot"},{"component":"reportsDashboardLink","name":"reports-homepage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"reports","slot":"reports-homepage-dashboard-slot","title":"Reports"}},{"component":"reportsDashboard","name":"reports-dashboard","slot":"reports-homepage-dashboard-slot"},{"name":"pharmacy-homepage-dashboard-link","component":"pharmacyLink","slot":"homepage-dashboard-slot","meta":{"name":"pharmacy","title":"Pharmacy","path":"pharmacy","slot":"pharmacy-homepage-dashboard-slot"}},{"name":"pharmacy-homepage-dashboard","component":"pharmacy","slot":"pharmacy-homepage-dashboard-slot","online":true,"offline":false},{"name":"patient-summary-dashboard","component":"patientSummaryDashboard","slot":"patient-chart-summary-dashboard-slot"},{"name":"ewf-clinical-encounter-link","component":"clinicalEncounterLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-clinical-encounter","title":"Clinical Encounter","slot":"ewf-patient-chart-clinical-encounter-slot","path":"clinical-encounter","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-clinical-encounter-dashboard","component":"clinicalEncounter","slot":"ewf-patient-chart-clinical-encounter-slot","online":true,"offline":false},{"name":"ewf-laboratory-dashboard-link","component":"laboratoryLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-laboratory","title":"Laboratory","path":"laboratory","slot":"ewf-patient-chart-laboratory-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-laboratory-dashboard","component":"laboratoryDashboard","slot":"ewf-patient-chart-laboratory-dashboard-slot","online":true,"offline":false},{"name":"ewf-radiology-and-imaging-dashboard-link","component":"radiologyAndImagingLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-radiology-and-imaging","title":"Radiology and Imaging","path":"radiology-and-imaging","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-radiology-and-imaging-dashboard","component":"radiologyAndImagingDashboard","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","online":true,"offline":false},{"name":"ewf-procedures-dashboard-link","component":"proceduresLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-procedures","title":"Procedures","path":"procedures","slot":"ewf-patient-chart-procedures-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-procedures-dashboard","component":"proceduresDashboard","slot":"ewf-patient-chart-procedures-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-dashboard-link","component":"pharmacyPatientChartDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-pharmacy","title":"Pharmacy","path":"pharmacy","slot":"ewf-patient-chart-pharmacy-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-pharmacy-dashboard","component":"pharmacyTabs","slot":"ewf-patient-chart-pharmacy-dashboard-slot","online":true,"offline":false},{"name":"ewf-admissions-dashboard-link","component":"admissionsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-admissions","title":"Admissions","path":"admissions","slot":"ewf-patient-chart-admissions-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-admissions-dashboard","component":"admissionsDashboard","slot":"ewf-patient-chart-admissions-dashboard-slot","online":true,"offline":false},{"name":"ewf-homepage-dashboard-link","component":"homepageDashboardLink","slot":"patient-chart-dashboard-slot","order":0},{"name":"mch-program-management","component":"mchProgramManagement","slot":"mch-program-management-slot","order":0}],"workspaces":[{"name":"express-workflow-workspace","component":"expressWorkflowWorkspace","title":"Express Workflow Workspace","type":"workspace","canMaximize":true,"canHide":true},{"name":"mch-program-form-workspace","component":"mchProgramForm","title":"Program Form","type":"workspace"}],"modals":[{"component":"otpVerificationModal","name":"otp-verification-modal"},{"component":"facilityDashboardAuthorizationModal","name":"facility-dashboard-authorization-form-modal"}],"workspaceGroups":[{"name":"express-workflow","members":["add-drug-order","order-basket","add-lab-order","express-workflow-workspace","start-visit-workspace-form"]}],"version":"5.4.2-pre.2575"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"express-workflow"}],"extensions":[{"component":"admissionsLeftPanelLink","name":"admissions-dashboard-link","slot":"express-workflow-left-panel-slot","order":9,"meta":{"name":"admissions","slot":"admissions-dashboard-slot","title":"Admissions"}},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot"},{"component":"consultationLeftPanelLink","name":"consultation-dashboard-link","slot":"homepage-dashboard-slot","order":3,"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"}},{"component":"consultationDashboard","name":"consultation-dashboard","slot":"consultation-dashboard-slot"},{"component":"facilityLeftPanelLink","name":"facility-dashboard-link","slot":"homepage-dashboard-slot","order":0,"meta":{"name":"dashboard","slot":"facility-dashboard-slot","title":"Dashboard"}},{"component":"facilityDashboard","name":"facility-dashboard","slot":"facility-dashboard-slot"},{"component":"mchLeftPanelLink","name":"mch-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"mch","slot":"mch-dashboard-slot","title":"MCH"}},{"component":"mchDashboard","name":"mch-dashboard","slot":"mch-dashboard-slot"},{"component":"registrationLeftPanelLink","name":"registration-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"registration","slot":"registration-dashboard-slot","title":"Registration"}},{"component":"registrationDashboard","name":"registration-dashboard","slot":"registration-dashboard-slot"},{"component":"triageLeftPanelLink","name":"triage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"triage","slot":"triage-dashboard-slot","title":"Triage"}},{"component":"triageDashboard","name":"triage-dashboard","slot":"triage-dashboard-slot"},{"component":"reportsDashboardLink","name":"reports-homepage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"reports","slot":"reports-homepage-dashboard-slot","title":"Reports"}},{"component":"reportsDashboard","name":"reports-dashboard","slot":"reports-homepage-dashboard-slot"},{"name":"pharmacy-homepage-dashboard-link","component":"pharmacyLink","slot":"homepage-dashboard-slot","meta":{"name":"pharmacy","title":"Pharmacy","path":"pharmacy","slot":"pharmacy-homepage-dashboard-slot"}},{"name":"pharmacy-homepage-dashboard","component":"pharmacy","slot":"pharmacy-homepage-dashboard-slot","online":true,"offline":false},{"name":"patient-summary-dashboard","component":"patientSummaryDashboard","slot":"patient-chart-summary-dashboard-slot"},{"name":"ewf-clinical-encounter-link","component":"clinicalEncounterLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-clinical-encounter","title":"Clinical Encounter","slot":"ewf-patient-chart-clinical-encounter-slot","path":"clinical-encounter","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-clinical-encounter-dashboard","component":"clinicalEncounter","slot":"ewf-patient-chart-clinical-encounter-slot","online":true,"offline":false},{"name":"ewf-laboratory-dashboard-link","component":"laboratoryLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-laboratory","title":"Laboratory","path":"laboratory","slot":"ewf-patient-chart-laboratory-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-laboratory-dashboard","component":"laboratoryDashboard","slot":"ewf-patient-chart-laboratory-dashboard-slot","online":true,"offline":false},{"name":"ewf-radiology-and-imaging-dashboard-link","component":"radiologyAndImagingLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-radiology-and-imaging","title":"Radiology and Imaging","path":"radiology-and-imaging","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-radiology-and-imaging-dashboard","component":"radiologyAndImagingDashboard","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","online":true,"offline":false},{"name":"ewf-procedures-dashboard-link","component":"proceduresLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-procedures","title":"Procedures","path":"procedures","slot":"ewf-patient-chart-procedures-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-procedures-dashboard","component":"proceduresDashboard","slot":"ewf-patient-chart-procedures-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-dashboard-link","component":"pharmacyPatientChartDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-pharmacy","title":"Pharmacy","path":"pharmacy","slot":"ewf-patient-chart-pharmacy-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-pharmacy-dashboard","component":"pharmacyTabs","slot":"ewf-patient-chart-pharmacy-dashboard-slot","online":true,"offline":false},{"name":"ewf-admissions-dashboard-link","component":"admissionsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-admissions","title":"Admissions","path":"admissions","slot":"ewf-patient-chart-admissions-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-admissions-dashboard","component":"admissionsDashboard","slot":"ewf-patient-chart-admissions-dashboard-slot","online":true,"offline":false},{"name":"ewf-homepage-dashboard-link","component":"homepageDashboardLink","slot":"patient-chart-dashboard-slot","order":0},{"name":"mch-program-management","component":"mchProgramManagement","slot":"mch-program-management-slot","order":0}],"workspaces":[{"name":"express-workflow-workspace","component":"expressWorkflowWorkspace","title":"Express Workflow Workspace","type":"workspace","canMaximize":true,"canHide":true},{"name":"mch-program-form-workspace","component":"mchProgramForm","title":"Program Form","type":"workspace"}],"modals":[{"component":"otpVerificationModal","name":"otp-verification-modal"},{"component":"facilityDashboardAuthorizationModal","name":"facility-dashboard-authorization-form-modal"}],"workspaceGroups":[{"name":"express-workflow","members":["add-drug-order","order-basket","add-lab-order","express-workflow-workspace","start-visit-workspace-form"]}],"version":"5.4.2-pre.2580"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-express-workflow-app",
3
- "version": "5.4.2-pre.2575",
3
+ "version": "5.4.2-pre.2580",
4
4
  "description": "Express workflow app for OpenMRS 3",
5
5
  "keywords": [
6
6
  "openmrs",
@@ -37,8 +37,11 @@ const MCHTriage: React.FC = () => {
37
37
  queues={triageQueues}
38
38
  navigatePath="mch"
39
39
  cards={[
40
- // { title: t('patientInWaiting', 'Patient in waiting'), value: awaitingCount.toString() },
41
- { title: t('patientAttended', 'Patient attended'), value: finishedQueueEntries?.length?.toString() },
40
+ // { title: t('cilentsPatientInWaiting', 'Cilents/Patient in waiting'), value: awaitingCount.toString() },
41
+ {
42
+ title: t('clientsPatientAttended', 'Clients/Patient attended to'),
43
+ value: finishedQueueEntries?.length?.toString(),
44
+ },
42
45
  ]}
43
46
  onTabChanged={setCurrentQueue}
44
47
  />
@@ -52,7 +52,7 @@ const ProgramForm: FC<ProgramFormProps> = ({ patientUuid, program, enrollment, c
52
52
  showSnackbar({
53
53
  kind: 'success',
54
54
  title: 'Success',
55
- subtitle: t('programEnrollmentSuccessfull', 'Program enrollment successfull'),
55
+ subtitle: t('programEnrollmentSuccessful', 'Program enrollment successful'),
56
56
  });
57
57
 
58
58
  closeWorkspace();
@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
7
7
 
8
8
  import { useInitialize } from './useInitialize';
9
9
  import styles from './patient-chart.scss';
10
- import { usePatientchartTabs } from './patient-chart.resources';
10
+ import { usePatientChartTabs } from './patient-chart.resources';
11
11
 
12
12
  type PatientChartProps = {
13
13
  navigationPath: string;
@@ -21,7 +21,7 @@ const PatientChart: React.FC<PatientChartProps> = ({ navigationPath }) => {
21
21
  isLoading,
22
22
  error,
23
23
  } = useSWR(patientUuid ? ['patient', patientUuid] : null, () => fetchCurrentPatient(patientUuid!, {}));
24
- const patientChartTabsExtensionSlotConfig = usePatientchartTabs(navigationPath, patientUuid, patient);
24
+ const patientChartTabsExtensionSlotConfig = usePatientChartTabs(navigationPath, patientUuid, patient);
25
25
 
26
26
  const state = useMemo(() => ({ patient, patientUuid }), [patient, patientUuid]);
27
27
 
@@ -53,12 +53,6 @@ const PatientChart: React.FC<PatientChartProps> = ({ navigationPath }) => {
53
53
  ))}
54
54
  </TabPanels>
55
55
  </Tabs>
56
- <WorkspaceContainer
57
- showSiderailAndBottomNav
58
- key="express-workflow"
59
- contextKey={`home/${navigationPath}/${patientUuid}`}
60
- additionalWorkspaceProps={state}
61
- />
62
56
  </div>
63
57
  </div>
64
58
  );
@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';
3
3
  import { AssignedExtension, useAssignedExtensions, useConfig } from '@openmrs/esm-framework';
4
4
  import { ExpressWorkflowConfig } from '../../config-schema';
5
5
 
6
- export const usePatientchartTabs = (navigationPath: string, patientUuid: string, patient?: fhir.Patient) => {
6
+ export const usePatientChartTabs = (navigationPath: string, patientUuid: string, patient?: fhir.Patient) => {
7
7
  const { t } = useTranslation();
8
8
  const { patientChartConfig } = useConfig<ExpressWorkflowConfig>();
9
9
  const extensions = useAssignedExtensions('patient-chart-dashboard-slot');
@@ -61,7 +61,10 @@ const QueueTab: React.FC<QueueTabProps> = ({ queues, cards, navigatePath, onTabC
61
61
  return (
62
62
  <div className={styles.queueTab}>
63
63
  <div className={styles.cards}>
64
- <Card title={t('patientInWaiting', 'Patient in waiting')} value={memoizedQueueEntries.length.toString()} />
64
+ <Card
65
+ title={t('clientsPatientInWaiting', 'Clients/Patient in waiting')}
66
+ value={memoizedQueueEntries.length.toString()}
67
+ />
65
68
  {cards?.map((card) => (
66
69
  <Card key={card.title} title={card.title} value={card.value} />
67
70
  ))}
@@ -18,6 +18,8 @@
18
18
  "checkingEligibility": "",
19
19
  "checkInPatientWorkspaceTitle": "Check in patient",
20
20
  "chooseIdentifierType": "Choose identifier type",
21
+ "cilentsPatientAttended": "Cilents/Patient attended to",
22
+ "cilentsPatientInWaiting": "Cilents/Patient in waiting",
21
23
  "clearAll": "Clear All",
22
24
  "clientRegistry": "Client registry verification",
23
25
  "clinicalEncounter": "Clinical Encounter",
@@ -77,8 +79,6 @@
77
79
  "otpVerification": "OTP Verification",
78
80
  "otpVerificationError": "Error Verifying OTP",
79
81
  "pastMedications": "Past Medications",
80
- "patientAttended": "Patient attended",
81
- "patientInWaiting": "Patient in waiting",
82
82
  "patientSummary": "Patient Summary",
83
83
  "phoneNumber": "Phone number",
84
84
  "previousPage": "Previous page",
@@ -18,6 +18,8 @@
18
18
  "checkingEligibility": "",
19
19
  "checkInPatientWorkspaceTitle": "Check in patient",
20
20
  "chooseIdentifierType": "Choose identifier type",
21
+ "cilentsPatientAttended": "Cilents/Patient attended to",
22
+ "cilentsPatientInWaiting": "Cilents/Patient in waiting",
21
23
  "clearAll": "Clear All",
22
24
  "clientRegistry": "Client registry verification",
23
25
  "clinicalEncounter": "Clinical Encounter",
@@ -77,8 +79,6 @@
77
79
  "otpVerification": "OTP Verification",
78
80
  "otpVerificationError": "Error Verifying OTP",
79
81
  "pastMedications": "Past Medications",
80
- "patientAttended": "Patient attended",
81
- "patientInWaiting": "Patient in waiting",
82
82
  "patientSummary": "Patient Summary",
83
83
  "phoneNumber": "Phone number",
84
84
  "previousPage": "Previous page",
@@ -18,6 +18,8 @@
18
18
  "checkingEligibility": "",
19
19
  "checkInPatientWorkspaceTitle": "Check in patient",
20
20
  "chooseIdentifierType": "Choose identifier type",
21
+ "cilentsPatientAttended": "Cilents/Patient attended to",
22
+ "cilentsPatientInWaiting": "Cilents/Patient in waiting",
21
23
  "clearAll": "Clear All",
22
24
  "clientRegistry": "Client registry verification",
23
25
  "clinicalEncounter": "Clinical Encounter",
@@ -77,8 +79,6 @@
77
79
  "otpVerification": "OTP Verification",
78
80
  "otpVerificationError": "Error Verifying OTP",
79
81
  "pastMedications": "Past Medications",
80
- "patientAttended": "Patient attended",
81
- "patientInWaiting": "Patient in waiting",
82
82
  "patientSummary": "Patient Summary",
83
83
  "phoneNumber": "Phone number",
84
84
  "previousPage": "Previous page",