@kenyaemr/esm-billing-app 5.4.7-pre.1660 → 5.4.7
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 +1 -1
- package/dist/1072.js +1 -1
- package/dist/1072.js.map +1 -1
- package/dist/1187.js +1 -0
- package/dist/1187.js.map +1 -0
- package/dist/1346.js +1 -0
- package/dist/1346.js.map +1 -0
- package/dist/2034.js +1 -0
- package/dist/2034.js.map +1 -0
- package/dist/2231.js +1 -1
- package/dist/2231.js.map +1 -1
- package/dist/2624.js +1 -1
- package/dist/2624.js.map +1 -1
- package/dist/301.js +1 -1
- package/dist/301.js.map +1 -1
- package/dist/3091.js +1 -1
- package/dist/3091.js.map +1 -1
- package/dist/3294.js +1 -1
- package/dist/3294.js.map +1 -1
- package/dist/3378.js +1 -1
- package/dist/3378.js.map +1 -1
- package/dist/4156.js +1 -0
- package/dist/4156.js.map +1 -0
- package/dist/4266.js +1 -0
- package/dist/4266.js.map +1 -0
- package/dist/4818.js +1 -0
- package/dist/4818.js.map +1 -0
- package/dist/5117.js +1 -1
- package/dist/5117.js.map +1 -1
- package/dist/6508.js +1 -1
- package/dist/6508.js.map +1 -1
- package/dist/6605.js +1 -1
- package/dist/6605.js.map +1 -1
- package/dist/7515.js +1 -1
- package/dist/7515.js.map +1 -1
- package/dist/8332.js +1 -0
- package/dist/8332.js.map +1 -0
- package/dist/9326.js +1 -1
- package/dist/9326.js.map +1 -1
- package/dist/9449.js +1 -1
- package/dist/9806.js +1 -1
- package/dist/9806.js.map +1 -1
- package/dist/kenyaemr-esm-billing-app.js +2 -2
- package/dist/kenyaemr-esm-billing-app.js.buildmanifest.json +200 -278
- package/dist/kenyaemr-esm-billing-app.js.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -3
- package/src/billing-form/social-health-authority/type/index.ts +0 -1
- package/src/billing-tabs/billling-tabs.component.tsx +1 -8
- package/src/claims/claims-management/table/virtual-claim-preauth/utils/index.ts +0 -3
- package/src/claims/claims-wrap/claim-workspaces/attachements/claim-attachments-resource.ts +2 -5
- package/src/claims/claims-wrap/claim-workspaces/claim-submission/ClaimSubmitWorkspace.tsx +12 -50
- package/src/claims/claims-wrap/claim-workspaces/interventions/manage-interventions-workspace.tsx +1 -1
- package/src/claims/claims-wrap/claims-main-component.tsx +33 -163
- package/src/claims/claims-wrap/claims-main.resource.ts +0 -12
- package/src/claims/claims-wrap/claims-main.scss +0 -16
- package/src/claims/claims-wrap/type/index.ts +0 -3
- package/src/index.ts +0 -10
- package/src/routes.json +0 -10
- package/src/visits/visits.resource.ts +5 -15
- package/translations/am.json +0 -75
- package/translations/en.json +1 -78
- package/translations/fr.json +0 -75
- package/translations/sw.json +0 -75
- package/dist/2836.js +0 -1
- package/dist/2836.js.map +0 -1
- package/dist/3291.js +0 -1
- package/dist/3291.js.map +0 -1
- package/dist/3846.js +0 -1
- package/dist/3846.js.map +0 -1
- package/dist/4164.js +0 -1
- package/dist/4164.js.map +0 -1
- package/dist/5305.js +0 -1
- package/dist/5305.js.map +0 -1
- package/dist/5857.js +0 -1
- package/dist/5857.js.map +0 -1
- package/dist/6229.js +0 -1
- package/dist/6229.js.map +0 -1
- package/dist/6484.js +0 -1
- package/dist/6484.js.map +0 -1
- package/dist/8575.js +0 -1
- package/dist/8575.js.map +0 -1
- package/dist/9914.js +0 -1
- package/dist/9914.js.map +0 -1
- package/src/claims/overseas-referrals/overseas-referral-details.scss +0 -13
- package/src/claims/overseas-referrals/overseas-referral-details.workspace.tsx +0 -85
- package/src/claims/overseas-referrals/overseas-referral-form.scss +0 -107
- package/src/claims/overseas-referrals/overseas-referral-form.workspace.tsx +0 -840
- package/src/claims/overseas-referrals/overseas-referrals.component.tsx +0 -336
- package/src/claims/overseas-referrals/overseas-referrals.resource.test.ts +0 -164
- package/src/claims/overseas-referrals/overseas-referrals.resource.tsx +0 -367
- package/src/claims/overseas-referrals/overseas-referrals.scss +0 -78
- package/src/claims/overseas-referrals/overseas-referrals.utils.ts +0 -31
- package/src/claims/overseas-referrals/pending-referrals.component.tsx +0 -337
- package/src/claims/overseas-referrals/pending-referrals.test.tsx +0 -157
- package/src/claims/overseas-referrals/simple-table.component.tsx +0 -83
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import {
|
|
4
|
-
InlineNotification,
|
|
5
|
-
SkeletonText,
|
|
6
|
-
StructuredListBody,
|
|
7
|
-
StructuredListCell,
|
|
8
|
-
StructuredListRow,
|
|
9
|
-
StructuredListWrapper,
|
|
10
|
-
} from '@carbon/react';
|
|
11
|
-
import { Workspace2, type Workspace2DefinitionProps } from '@openmrs/esm-framework';
|
|
12
|
-
import { shaErrorSubtitle } from '../../helpers/sha-error';
|
|
13
|
-
import { useOverseasReferral } from './overseas-referrals.resource';
|
|
14
|
-
import styles from './overseas-referral-details.scss';
|
|
15
|
-
|
|
16
|
-
interface OverseasReferralDetailsProps {
|
|
17
|
-
referralGuid: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** `referral_number` as `Referral number`. */
|
|
21
|
-
const humanizeKey = (key: string) => {
|
|
22
|
-
const words = key.replaceAll('_', ' ').trim();
|
|
23
|
-
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** A field's value for display; nested objects and lists are summarised rather than shown raw. */
|
|
27
|
-
const displayValue = (value: unknown): string => {
|
|
28
|
-
if (value === null || value === undefined || value === '') {
|
|
29
|
-
return '—';
|
|
30
|
-
}
|
|
31
|
-
if (Array.isArray(value)) {
|
|
32
|
-
return value.every((item) => typeof item !== 'object')
|
|
33
|
-
? value.join(', ')
|
|
34
|
-
: `${value.length} ${value.length === 1 ? 'item' : 'items'}`;
|
|
35
|
-
}
|
|
36
|
-
if (typeof value === 'object') {
|
|
37
|
-
return Object.entries(value as Record<string, unknown>)
|
|
38
|
-
.filter(([, inner]) => inner !== null && typeof inner !== 'object')
|
|
39
|
-
.map(([innerKey, inner]) => `${humanizeKey(innerKey)}: ${inner}`)
|
|
40
|
-
.join(' · ');
|
|
41
|
-
}
|
|
42
|
-
return String(value);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* A submitted overseas referral as SHA returns it (`GET /referrals/overseas/{guid}`). The response shape isn't
|
|
47
|
-
* confirmed yet, so every top-level field is listed rather than a chosen few.
|
|
48
|
-
*/
|
|
49
|
-
const OverseasReferralDetails: React.FC<Workspace2DefinitionProps<OverseasReferralDetailsProps, object, object>> = ({
|
|
50
|
-
workspaceProps,
|
|
51
|
-
}) => {
|
|
52
|
-
const { t } = useTranslation();
|
|
53
|
-
const { referral, error, isLoading } = useOverseasReferral(workspaceProps?.referralGuid);
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<Workspace2 title={t('overseasReferral', 'Overseas referral')}>
|
|
57
|
-
<div className={styles.container}>
|
|
58
|
-
{isLoading && <SkeletonText paragraph lineCount={8} />}
|
|
59
|
-
{error && (
|
|
60
|
-
<InlineNotification
|
|
61
|
-
kind="error"
|
|
62
|
-
lowContrast
|
|
63
|
-
hideCloseButton
|
|
64
|
-
title={t('errorLoadingOverseasReferral', 'Error loading the overseas referral')}
|
|
65
|
-
subtitle={shaErrorSubtitle(error, t)}
|
|
66
|
-
/>
|
|
67
|
-
)}
|
|
68
|
-
{referral && (
|
|
69
|
-
<StructuredListWrapper isCondensed>
|
|
70
|
-
<StructuredListBody>
|
|
71
|
-
{Object.entries(referral).map(([key, value]) => (
|
|
72
|
-
<StructuredListRow key={key}>
|
|
73
|
-
<StructuredListCell className={styles.label}>{humanizeKey(key)}</StructuredListCell>
|
|
74
|
-
<StructuredListCell>{displayValue(value)}</StructuredListCell>
|
|
75
|
-
</StructuredListRow>
|
|
76
|
-
))}
|
|
77
|
-
</StructuredListBody>
|
|
78
|
-
</StructuredListWrapper>
|
|
79
|
-
)}
|
|
80
|
-
</div>
|
|
81
|
-
</Workspace2>
|
|
82
|
-
);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export default OverseasReferralDetails;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@use '@carbon/layout';
|
|
2
|
-
@use '@carbon/colors';
|
|
3
|
-
@use '@carbon/type';
|
|
4
|
-
|
|
5
|
-
.form {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.formBody {
|
|
12
|
-
flex: 1;
|
|
13
|
-
padding: layout.$spacing-05;
|
|
14
|
-
overflow-y: auto;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.sectionTitle,
|
|
18
|
-
.subTitle {
|
|
19
|
-
@include type.type-style('label-01');
|
|
20
|
-
color: colors.$gray-70;
|
|
21
|
-
margin-bottom: layout.$spacing-03;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.fieldError {
|
|
25
|
-
@include type.type-style('helper-text-01');
|
|
26
|
-
color: colors.$red-60;
|
|
27
|
-
margin-top: layout.$spacing-02;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.patientBannerWrapper {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
align-items: flex-start;
|
|
34
|
-
gap: layout.$spacing-03;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.twoColumns {
|
|
38
|
-
display: grid;
|
|
39
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
40
|
-
gap: layout.$spacing-05;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.threeColumns {
|
|
44
|
-
display: grid;
|
|
45
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
46
|
-
gap: layout.$spacing-05;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.rowCard {
|
|
50
|
-
padding: layout.$spacing-04;
|
|
51
|
-
border: 1px solid colors.$gray-20;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.itemRow {
|
|
55
|
-
display: grid;
|
|
56
|
-
grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr) minmax(0, 1fr) auto;
|
|
57
|
-
gap: layout.$spacing-04;
|
|
58
|
-
align-items: end;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.procedureRow {
|
|
62
|
-
display: grid;
|
|
63
|
-
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
|
|
64
|
-
gap: layout.$spacing-04;
|
|
65
|
-
align-items: end;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.searchRow {
|
|
69
|
-
display: grid;
|
|
70
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
71
|
-
gap: layout.$spacing-04;
|
|
72
|
-
align-items: start;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.removeButton {
|
|
76
|
-
align-self: end;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.button {
|
|
80
|
-
height: layout.$spacing-10;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-content: flex-start;
|
|
83
|
-
align-items: baseline;
|
|
84
|
-
min-width: 50%;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.tablet {
|
|
88
|
-
display: flex;
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.desktop {
|
|
93
|
-
display: flex;
|
|
94
|
-
position: sticky;
|
|
95
|
-
bottom: 0;
|
|
96
|
-
z-index: 100;
|
|
97
|
-
background-color: var(--omrs-color-bg-high-contrast);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@media (max-width: 42rem) {
|
|
101
|
-
.twoColumns,
|
|
102
|
-
.threeColumns,
|
|
103
|
-
.itemRow,
|
|
104
|
-
.procedureRow {
|
|
105
|
-
grid-template-columns: minmax(0, 1fr);
|
|
106
|
-
}
|
|
107
|
-
}
|