@kenyaemr/esm-shr-app 5.4.2-pre.2203 → 5.4.2-pre.2223
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/.turbo/turbo-build.log +28 -187
- package/dist/144.js +2 -0
- package/dist/144.js.map +1 -0
- package/dist/204.js +1 -0
- package/dist/204.js.map +1 -0
- package/dist/233.js +2 -0
- package/dist/233.js.map +1 -0
- package/dist/300.js +1 -0
- package/dist/389.js +2 -0
- package/dist/389.js.map +1 -0
- package/dist/41.js +2 -0
- package/dist/41.js.map +1 -0
- package/dist/474.js +2 -0
- package/dist/474.js.map +1 -0
- package/dist/537.js +1 -0
- package/dist/537.js.map +1 -0
- package/dist/662.js +1 -0
- package/dist/662.js.map +1 -0
- package/dist/677.js +1 -0
- package/dist/677.js.map +1 -0
- package/dist/820.js +1 -0
- package/dist/820.js.map +1 -0
- package/dist/848.js +1 -0
- package/dist/848.js.map +1 -0
- package/dist/895.js +1 -0
- package/dist/895.js.map +1 -0
- package/dist/907.js +1 -0
- package/dist/907.js.map +1 -0
- package/dist/913.js +2 -1
- package/dist/913.js.map +1 -1
- package/dist/922.js +2 -0
- package/dist/922.js.LICENSE.txt +29 -0
- package/dist/922.js.map +1 -0
- package/dist/kenyaemr-esm-shr-app.js +1 -1
- package/dist/kenyaemr-esm-shr-app.js.buildmanifest.json +207 -105
- package/dist/kenyaemr-esm-shr-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +4 -1
- package/src/declarations.d.ts +0 -13
- package/src/header/referrals-header.scss +1 -1
- package/src/referrals/dependents/dependents.component.tsx +2 -2
- package/src/referrals/patient-chart/referral-chart-view.component.scss +1 -1
- package/src/referrals/referral-reasons/referral-reasons.component.scss +1 -1
- package/src/referrals/referral-tabs/referrals-tabs.component.tsx +1 -1
- package/src/referrals/referral-tabs/referrals-tabs.scss +1 -1
- package/src/referrals/referrals-actions.component.tsx +3 -3
- package/src/shr-summary/shr-authorization-form.workspace.tsx +6 -4
- package/src/shr-summary/shr-forms.scss +1 -1
- package/src/shr-summary/shr-summary.scss +1 -1
- package/src/shr-summary/tables/shr-summary-table.component.tsx +2 -3
- package/src/shr-summary/tables/shr-tables.scss +1 -1
- package/src/shrpatient-summary/root.scss +1 -1
- package/src/shrpatient-summary/shr-summary.scss +2 -2
- package/src/shrpatient-summary/shrpatient-summary.component.tsx +2 -2
- package/src/shrpatient-summary/visit-detail-overview.scss +2 -2
- package/src/workspace/referral-patient-info.scss +1 -1
- package/src/workspace/referral.workspace.scss +1 -1
- package/src/workspace/referrals.workspace.component.tsx +1 -1
- package/translations/en.json +2 -0
- package/dist/130.js +0 -2
- package/dist/130.js.LICENSE.txt +0 -7
- package/dist/130.js.map +0 -1
- package/dist/316.js +0 -2
- package/dist/316.js.map +0 -1
- package/dist/43.js +0 -1
- package/dist/43.js.map +0 -1
- package/dist/487.js +0 -1
- package/dist/487.js.map +0 -1
- package/dist/532.js +0 -2
- package/dist/532.js.map +0 -1
- package/dist/574.js +0 -1
- package/dist/585.js +0 -1
- package/dist/585.js.map +0 -1
- package/dist/589.js +0 -1
- package/dist/589.js.map +0 -1
- package/dist/591.js +0 -2
- package/dist/591.js.map +0 -1
- package/dist/594.js +0 -2
- package/dist/594.js.map +0 -1
- package/dist/784.js +0 -2
- package/dist/784.js.map +0 -1
- package/dist/789.js +0 -2
- package/dist/789.js.map +0 -1
- /package/dist/{316.js.LICENSE.txt → 144.js.LICENSE.txt} +0 -0
- /package/dist/{532.js.LICENSE.txt → 233.js.LICENSE.txt} +0 -0
- /package/dist/{594.js.LICENSE.txt → 389.js.LICENSE.txt} +0 -0
- /package/dist/{784.js.LICENSE.txt → 41.js.LICENSE.txt} +0 -0
- /package/dist/{789.js.LICENSE.txt → 474.js.LICENSE.txt} +0 -0
- /package/dist/{591.js.LICENSE.txt → 913.js.LICENSE.txt} +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"shrRoot","route":"referrals"}],"extensions":[{"component":"shrAuthorizationForm","name":"shr-authorization-form"},{"name":"patient-chart-shr-summary-dashboard-link","component":"shrSummaryDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-shr-summary-dashboard-slot","path":"SHR Portal"},"featureFlag":"healthInformationExchange"},{"name":"SHR Portal","slot":"patient-chart-shr-summary-dashboard-slot","component":"patientSHRSummary","meta":{"columnSpan":4}},{"name":"referrals","slot":"referrals-slot","component":"shrRoot"},{"name":"referrals-link","slot":"homepage-dashboard-slot","component":"ReferralsDashboardLink","meta":{"name":"referrals","title":"referrals","slot":"referrals-slot"}},{"name":"referral-reasons-dialog","component":"referralReasonsDialogPopup"},{"name":"facility-referral-form","component":"facilityRefferalForm"},{"name":"referral-view-link","component":"referralLink","slot":"patient-chart-dashboard-slot","order":13,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-referral-slot","path":"referral","layoutMode":"anchored"}},{"name":"referral-view","slot":"patient-chart-referral-slot","component":"referralWidget","order":0,"online":true,"offline":false}],"version":"5.4.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"shrRoot","route":"referrals"}],"extensions":[{"component":"shrAuthorizationForm","name":"shr-authorization-form"},{"name":"patient-chart-shr-summary-dashboard-link","component":"shrSummaryDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-shr-summary-dashboard-slot","path":"SHR Portal"},"featureFlag":"healthInformationExchange"},{"name":"SHR Portal","slot":"patient-chart-shr-summary-dashboard-slot","component":"patientSHRSummary","meta":{"columnSpan":4}},{"name":"referrals","slot":"referrals-slot","component":"shrRoot"},{"name":"referrals-link","slot":"homepage-dashboard-slot","component":"ReferralsDashboardLink","meta":{"name":"referrals","title":"referrals","slot":"referrals-slot"}},{"name":"referral-reasons-dialog","component":"referralReasonsDialogPopup"},{"name":"facility-referral-form","component":"facilityRefferalForm"},{"name":"referral-view-link","component":"referralLink","slot":"patient-chart-dashboard-slot","order":13,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-referral-slot","path":"referral","layoutMode":"anchored"}},{"name":"referral-view","slot":"patient-chart-referral-slot","component":"referralWidget","order":0,"online":true,"offline":false}],"version":"5.4.2-pre.2223"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenyaemr/esm-shr-app",
|
|
3
|
-
"version": "5.4.2-pre.
|
|
3
|
+
"version": "5.4.2-pre.2223",
|
|
4
4
|
"description": "Patient care panels microfrontend for the OpenMRS SPA",
|
|
5
5
|
"browser": "dist/kenyaemr-esm-shr-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -47,5 +47,8 @@
|
|
|
47
47
|
"react-i18next": "11.x",
|
|
48
48
|
"react-router-dom": "6.x"
|
|
49
49
|
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"webpack": "^5.99.9"
|
|
52
|
+
},
|
|
50
53
|
"stableVersion": "5.4.1"
|
|
51
54
|
}
|
package/src/declarations.d.ts
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
declare module '*.css';
|
|
2
2
|
declare module '*.scss';
|
|
3
|
-
declare module '@carbon/react';
|
|
4
|
-
declare module 'react-aria' {
|
|
5
|
-
export const I18nProvider: (...args: any) => JSX.Element;
|
|
6
|
-
export { DateValue } from '@react-types/datepicker';
|
|
7
|
-
export const mergeProps: any;
|
|
8
|
-
export const useLocale: any;
|
|
9
|
-
export const useDateField: any;
|
|
10
|
-
export const useDatePicker: any;
|
|
11
|
-
export const useDateSegment: any;
|
|
12
|
-
export const useFocusRing: any;
|
|
13
|
-
export const useHover: any;
|
|
14
|
-
export const useObjectRef: any;
|
|
15
|
-
}
|
|
@@ -61,14 +61,14 @@ const DependentsComponent: React.FC<DependentProps> = ({ patient, patientUuid })
|
|
|
61
61
|
phoneNumber: dependent.phoneNumber,
|
|
62
62
|
gender: capitalize(dependent.gender),
|
|
63
63
|
actions: (
|
|
64
|
-
<Button size="
|
|
64
|
+
<Button size="sm" kind="ghost" onClick={() => handleRegisterDependent(dependent)}>
|
|
65
65
|
{t('registerDependent', 'Register Dependent')}
|
|
66
66
|
</Button>
|
|
67
67
|
),
|
|
68
68
|
}));
|
|
69
69
|
|
|
70
70
|
if (isLoading) {
|
|
71
|
-
return <DataTableSkeleton
|
|
71
|
+
return <DataTableSkeleton aria-label={t('dependents')} headers={headers} showHeader showToolbar />;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
if (error) {
|
|
@@ -44,7 +44,7 @@ const ReferralTabs: React.FC<ReferralTabsProps> = () => {
|
|
|
44
44
|
return (
|
|
45
45
|
<div className={styles.referralsList} data-testid="referralsList-list">
|
|
46
46
|
<div className={styles.tabsContainer}>
|
|
47
|
-
<Tabs selectedIndex={activeTabIndex} onChange={handleTabChange}
|
|
47
|
+
<Tabs selectedIndex={activeTabIndex} onChange={handleTabChange}>
|
|
48
48
|
<TabList aria-label="Referrals tabs" contained>
|
|
49
49
|
<Tab className={styles.tab}>{t('fromCommunity', 'From Community')}</Tab>
|
|
50
50
|
<Tab className={styles.tab}>{t('fromFacility', 'From Facility')}</Tab>
|
|
@@ -50,12 +50,12 @@ const CommunityReferralActions: React.FC<ReferralReasonData> = ({ status, referr
|
|
|
50
50
|
|
|
51
51
|
return (
|
|
52
52
|
<>
|
|
53
|
-
<Button kind="primary" size="md"
|
|
54
|
-
View reasons
|
|
53
|
+
<Button kind="primary" size="md" onClick={() => refearralReasonsHandleClick()}>
|
|
54
|
+
{t('viewReasons', 'View reasons')}
|
|
55
55
|
</Button>
|
|
56
56
|
{status === 'completed' ? null : (
|
|
57
57
|
<Button kind="primary" size="md" onClick={() => handleProcessReferral()}>
|
|
58
|
-
Serve client
|
|
58
|
+
{t('serveClient', 'Serve client')}
|
|
59
59
|
</Button>
|
|
60
60
|
)}
|
|
61
61
|
</>
|
|
@@ -68,7 +68,7 @@ const SHRAuthorizationForm: React.FC<SHRAuthorizationFormProps> = ({
|
|
|
68
68
|
<RadioButtonGroup
|
|
69
69
|
legendText={t('authMethod', 'Authorization Method')}
|
|
70
70
|
{...field}
|
|
71
|
-
invalid={form.formState.errors[field.name]?.message}
|
|
71
|
+
invalid={!!form.formState.errors[field.name]?.message}
|
|
72
72
|
className={styles.radioGroupInput}
|
|
73
73
|
invalidText={form.formState.errors[field.name]?.message}>
|
|
74
74
|
{AUTH_TYPES.map(({ label, value }, index) => (
|
|
@@ -85,7 +85,8 @@ const SHRAuthorizationForm: React.FC<SHRAuthorizationFormProps> = ({
|
|
|
85
85
|
name="receiver"
|
|
86
86
|
render={({ field }) => (
|
|
87
87
|
<TextInput
|
|
88
|
-
|
|
88
|
+
id={field.name}
|
|
89
|
+
invalid={!!form.formState.errors[field.name]?.message}
|
|
89
90
|
invalidText={form.formState.errors[field.name]?.message}
|
|
90
91
|
{...field}
|
|
91
92
|
placeholder={t('patientPhoneNUmber', 'Patient Phone number')}
|
|
@@ -103,7 +104,8 @@ const SHRAuthorizationForm: React.FC<SHRAuthorizationFormProps> = ({
|
|
|
103
104
|
render={({ field }) => (
|
|
104
105
|
<Row className={styles.otpInputRow}>
|
|
105
106
|
<TextInput
|
|
106
|
-
|
|
107
|
+
id={field.name}
|
|
108
|
+
invalid={!!form.formState.errors[field.name]?.message}
|
|
107
109
|
invalidText={form.formState.errors[field.name]?.message}
|
|
108
110
|
{...field}
|
|
109
111
|
placeholder={
|
|
@@ -133,7 +135,7 @@ const SHRAuthorizationForm: React.FC<SHRAuthorizationFormProps> = ({
|
|
|
133
135
|
)}
|
|
134
136
|
</Stack>
|
|
135
137
|
<ButtonSet className={styles.buttonSet}>
|
|
136
|
-
<Button className={styles.button} kind="secondary" onClick={closeWorkspace}>
|
|
138
|
+
<Button className={styles.button} kind="secondary" onClick={() => closeWorkspace()}>
|
|
137
139
|
{t('discard', 'Discard')}
|
|
138
140
|
</Button>
|
|
139
141
|
<Button className={styles.button} kind="primary" type="submit" disabled={form.formState.isSubmitting}>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Button, DataTableSkeleton, Layer, Tile } from '@carbon/react';
|
|
2
2
|
import { ArrowRight } from '@carbon/react/icons';
|
|
3
|
-
import { useLayoutType } from '@openmrs/esm-framework';
|
|
3
|
+
import { launchWorkspace, useLayoutType } from '@openmrs/esm-framework';
|
|
4
4
|
import {
|
|
5
5
|
CardHeader,
|
|
6
6
|
EmptyDataIllustration,
|
|
7
7
|
ErrorState,
|
|
8
8
|
getPatientUuidFromStore,
|
|
9
|
-
launchPatientWorkspace,
|
|
10
9
|
} from '@openmrs/esm-patient-common-lib';
|
|
11
10
|
import React, { useState } from 'react';
|
|
12
11
|
import { useTranslation } from 'react-i18next';
|
|
@@ -34,7 +33,7 @@ const PatientSHRSummaryTable: React.FC<PatientSHRSummaryTableProps> = () => {
|
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
const handleInitiateAuthorization = () => {
|
|
37
|
-
|
|
36
|
+
launchWorkspace('shr-authorization-form', {
|
|
38
37
|
workspaceTitle: 'SHR Pull Authorization Form',
|
|
39
38
|
patientUuid,
|
|
40
39
|
onVerified: () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '@carbon/styles/scss/type';
|
|
2
2
|
@use '@carbon/styles/scss/spacing';
|
|
3
3
|
@use '@carbon/colors';
|
|
4
|
-
@
|
|
4
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
|
5
5
|
|
|
6
6
|
.bodyContainer {
|
|
7
7
|
margin: spacing.$spacing-03;
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.summaryContainer {
|
|
161
|
-
background-color:
|
|
161
|
+
background-color: colors.$white;
|
|
162
162
|
display: grid;
|
|
163
163
|
grid-template-columns: max-content auto;
|
|
164
164
|
padding: 1rem 0rem;
|
|
@@ -42,7 +42,7 @@ const SharedHealthRecordsSummary: React.FC<SHRSummaryProps> = ({ patientUuid })
|
|
|
42
42
|
|
|
43
43
|
// If still loading
|
|
44
44
|
if (isLoading) {
|
|
45
|
-
return <StructuredListSkeleton
|
|
45
|
+
return <StructuredListSkeleton />;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// If there is an error
|
|
@@ -216,7 +216,7 @@ const SharedHealthRecordsSummary: React.FC<SHRSummaryProps> = ({ patientUuid })
|
|
|
216
216
|
<hr />
|
|
217
217
|
|
|
218
218
|
<div className={styles.summaryContainer}>
|
|
219
|
-
<Tabs
|
|
219
|
+
<Tabs>
|
|
220
220
|
<TabList aria-label="Shared Medical Record tabs" className={styles.tablist}>
|
|
221
221
|
<Tab
|
|
222
222
|
className={`${styles.tab} ${styles.bodyLong01}`}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use '@carbon/styles/scss/spacing';
|
|
2
2
|
@use '@carbon/styles/scss/type';
|
|
3
|
-
@
|
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
|
4
4
|
@import './root.scss';
|
|
5
5
|
|
|
6
6
|
.visitType {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.container {
|
|
29
|
-
background-color:
|
|
29
|
+
background-color: colors.$white;
|
|
30
30
|
border: 1px solid $grey-2;
|
|
31
31
|
padding: 1rem;
|
|
32
32
|
margin: 1rem 0rem 1rem;
|
|
@@ -187,7 +187,7 @@ const FacilityReferralForm: React.FC<FacilityReferralProp> = ({ closeWorkspace }
|
|
|
187
187
|
)}
|
|
188
188
|
<span className={styles.sectionHeader}>Clinical Notes</span>
|
|
189
189
|
<Column>
|
|
190
|
-
<TextArea rows={4} id="text-area-1" className={styles.reasonTextbox} />
|
|
190
|
+
<TextArea labelText={t('reason', 'Reason')} rows={4} id="text-area-1" className={styles.reasonTextbox} />
|
|
191
191
|
</Column>
|
|
192
192
|
</Stack>
|
|
193
193
|
|
package/translations/en.json
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"pullReferrals": "Pull Referrals",
|
|
41
41
|
"pullSHRRecords": "Pull SHR Records",
|
|
42
42
|
"reaction": "Reaction",
|
|
43
|
+
"reason": "Reason",
|
|
43
44
|
"reasonCode": "Reason Code",
|
|
44
45
|
"refer": "Refer Patient",
|
|
45
46
|
"referError": "Facility Referal Error",
|
|
@@ -65,5 +66,6 @@
|
|
|
65
66
|
"shrSummary": "SHR Summary",
|
|
66
67
|
"status": "Status",
|
|
67
68
|
"value": "Value",
|
|
69
|
+
"viewReasons": "View reasons",
|
|
68
70
|
"vitals": "Vitals"
|
|
69
71
|
}
|