@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.
Files changed (98) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/1072.js +1 -1
  3. package/dist/1072.js.map +1 -1
  4. package/dist/1187.js +1 -0
  5. package/dist/1187.js.map +1 -0
  6. package/dist/1346.js +1 -0
  7. package/dist/1346.js.map +1 -0
  8. package/dist/2034.js +1 -0
  9. package/dist/2034.js.map +1 -0
  10. package/dist/2231.js +1 -1
  11. package/dist/2231.js.map +1 -1
  12. package/dist/2624.js +1 -1
  13. package/dist/2624.js.map +1 -1
  14. package/dist/301.js +1 -1
  15. package/dist/301.js.map +1 -1
  16. package/dist/3091.js +1 -1
  17. package/dist/3091.js.map +1 -1
  18. package/dist/3294.js +1 -1
  19. package/dist/3294.js.map +1 -1
  20. package/dist/3378.js +1 -1
  21. package/dist/3378.js.map +1 -1
  22. package/dist/4156.js +1 -0
  23. package/dist/4156.js.map +1 -0
  24. package/dist/4266.js +1 -0
  25. package/dist/4266.js.map +1 -0
  26. package/dist/4818.js +1 -0
  27. package/dist/4818.js.map +1 -0
  28. package/dist/5117.js +1 -1
  29. package/dist/5117.js.map +1 -1
  30. package/dist/6508.js +1 -1
  31. package/dist/6508.js.map +1 -1
  32. package/dist/6605.js +1 -1
  33. package/dist/6605.js.map +1 -1
  34. package/dist/7515.js +1 -1
  35. package/dist/7515.js.map +1 -1
  36. package/dist/8332.js +1 -0
  37. package/dist/8332.js.map +1 -0
  38. package/dist/9326.js +1 -1
  39. package/dist/9326.js.map +1 -1
  40. package/dist/9449.js +1 -1
  41. package/dist/9806.js +1 -1
  42. package/dist/9806.js.map +1 -1
  43. package/dist/kenyaemr-esm-billing-app.js +2 -2
  44. package/dist/kenyaemr-esm-billing-app.js.buildmanifest.json +200 -278
  45. package/dist/kenyaemr-esm-billing-app.js.map +1 -1
  46. package/dist/main.js +2 -2
  47. package/dist/main.js.map +1 -1
  48. package/dist/routes.json +1 -1
  49. package/package.json +2 -3
  50. package/src/billing-form/social-health-authority/type/index.ts +0 -1
  51. package/src/billing-tabs/billling-tabs.component.tsx +1 -8
  52. package/src/claims/claims-management/table/virtual-claim-preauth/utils/index.ts +0 -3
  53. package/src/claims/claims-wrap/claim-workspaces/attachements/claim-attachments-resource.ts +2 -5
  54. package/src/claims/claims-wrap/claim-workspaces/claim-submission/ClaimSubmitWorkspace.tsx +12 -50
  55. package/src/claims/claims-wrap/claim-workspaces/interventions/manage-interventions-workspace.tsx +1 -1
  56. package/src/claims/claims-wrap/claims-main-component.tsx +33 -163
  57. package/src/claims/claims-wrap/claims-main.resource.ts +0 -12
  58. package/src/claims/claims-wrap/claims-main.scss +0 -16
  59. package/src/claims/claims-wrap/type/index.ts +0 -3
  60. package/src/index.ts +0 -10
  61. package/src/routes.json +0 -10
  62. package/src/visits/visits.resource.ts +5 -15
  63. package/translations/am.json +0 -75
  64. package/translations/en.json +1 -78
  65. package/translations/fr.json +0 -75
  66. package/translations/sw.json +0 -75
  67. package/dist/2836.js +0 -1
  68. package/dist/2836.js.map +0 -1
  69. package/dist/3291.js +0 -1
  70. package/dist/3291.js.map +0 -1
  71. package/dist/3846.js +0 -1
  72. package/dist/3846.js.map +0 -1
  73. package/dist/4164.js +0 -1
  74. package/dist/4164.js.map +0 -1
  75. package/dist/5305.js +0 -1
  76. package/dist/5305.js.map +0 -1
  77. package/dist/5857.js +0 -1
  78. package/dist/5857.js.map +0 -1
  79. package/dist/6229.js +0 -1
  80. package/dist/6229.js.map +0 -1
  81. package/dist/6484.js +0 -1
  82. package/dist/6484.js.map +0 -1
  83. package/dist/8575.js +0 -1
  84. package/dist/8575.js.map +0 -1
  85. package/dist/9914.js +0 -1
  86. package/dist/9914.js.map +0 -1
  87. package/src/claims/overseas-referrals/overseas-referral-details.scss +0 -13
  88. package/src/claims/overseas-referrals/overseas-referral-details.workspace.tsx +0 -85
  89. package/src/claims/overseas-referrals/overseas-referral-form.scss +0 -107
  90. package/src/claims/overseas-referrals/overseas-referral-form.workspace.tsx +0 -840
  91. package/src/claims/overseas-referrals/overseas-referrals.component.tsx +0 -336
  92. package/src/claims/overseas-referrals/overseas-referrals.resource.test.ts +0 -164
  93. package/src/claims/overseas-referrals/overseas-referrals.resource.tsx +0 -367
  94. package/src/claims/overseas-referrals/overseas-referrals.scss +0 -78
  95. package/src/claims/overseas-referrals/overseas-referrals.utils.ts +0 -31
  96. package/src/claims/overseas-referrals/pending-referrals.component.tsx +0 -337
  97. package/src/claims/overseas-referrals/pending-referrals.test.tsx +0 -157
  98. 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
- }