@thrustdevs/esm-procedure-orders-app 1.0.2-pre.6

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 (207) hide show
  1. package/.turbo/turbo-build.log +41 -0
  2. package/README.md +7 -0
  3. package/dist/122.js +1 -0
  4. package/dist/122.js.map +1 -0
  5. package/dist/144.js +2 -0
  6. package/dist/144.js.LICENSE.txt +19 -0
  7. package/dist/144.js.map +1 -0
  8. package/dist/182.js +1 -0
  9. package/dist/182.js.map +1 -0
  10. package/dist/205.js +1 -0
  11. package/dist/205.js.map +1 -0
  12. package/dist/216.js +2 -0
  13. package/dist/216.js.LICENSE.txt +9 -0
  14. package/dist/216.js.map +1 -0
  15. package/dist/290.js +2 -0
  16. package/dist/290.js.LICENSE.txt +5 -0
  17. package/dist/290.js.map +1 -0
  18. package/dist/300.js +1 -0
  19. package/dist/341.js +2 -0
  20. package/dist/341.js.LICENSE.txt +29 -0
  21. package/dist/341.js.map +1 -0
  22. package/dist/41.js +2 -0
  23. package/dist/41.js.LICENSE.txt +9 -0
  24. package/dist/41.js.map +1 -0
  25. package/dist/470.js +1 -0
  26. package/dist/470.js.map +1 -0
  27. package/dist/495.js +1 -0
  28. package/dist/495.js.map +1 -0
  29. package/dist/506.js +2 -0
  30. package/dist/506.js.LICENSE.txt +39 -0
  31. package/dist/506.js.map +1 -0
  32. package/dist/537.js +1 -0
  33. package/dist/537.js.map +1 -0
  34. package/dist/647.js +2 -0
  35. package/dist/647.js.LICENSE.txt +5 -0
  36. package/dist/647.js.map +1 -0
  37. package/dist/7.js +1 -0
  38. package/dist/7.js.map +1 -0
  39. package/dist/719.js +2 -0
  40. package/dist/719.js.LICENSE.txt +5 -0
  41. package/dist/719.js.map +1 -0
  42. package/dist/720.js +1 -0
  43. package/dist/720.js.map +1 -0
  44. package/dist/876.js +1 -0
  45. package/dist/876.js.map +1 -0
  46. package/dist/883.js +1 -0
  47. package/dist/883.js.map +1 -0
  48. package/dist/89.js +1 -0
  49. package/dist/89.js.map +1 -0
  50. package/dist/892.js +1 -0
  51. package/dist/892.js.map +1 -0
  52. package/dist/895.js +1 -0
  53. package/dist/895.js.map +1 -0
  54. package/dist/913.js +2 -0
  55. package/dist/913.js.LICENSE.txt +32 -0
  56. package/dist/913.js.map +1 -0
  57. package/dist/924.js +1 -0
  58. package/dist/924.js.map +1 -0
  59. package/dist/943.js +1 -0
  60. package/dist/943.js.map +1 -0
  61. package/dist/99.js +2 -0
  62. package/dist/99.js.LICENSE.txt +5 -0
  63. package/dist/99.js.map +1 -0
  64. package/dist/kenyaemr-esm-procedure-orders-app.js +1 -0
  65. package/dist/kenyaemr-esm-procedure-orders-app.js.buildmanifest.json +786 -0
  66. package/dist/kenyaemr-esm-procedure-orders-app.js.map +1 -0
  67. package/dist/main.js +2 -0
  68. package/dist/main.js.LICENSE.txt +35 -0
  69. package/dist/main.js.map +1 -0
  70. package/dist/routes.json +1 -0
  71. package/jest.config.js +8 -0
  72. package/package.json +55 -0
  73. package/src/completed-list/completed-list.component.tsx +40 -0
  74. package/src/completed-list/completed-list.resource.ts +0 -0
  75. package/src/completed-list/completed-list.scss +223 -0
  76. package/src/components/create-dashboard-link.component.tsx +35 -0
  77. package/src/components/overlay/hook.ts +47 -0
  78. package/src/components/overlay/overlay.component.tsx +42 -0
  79. package/src/components/overlay/overlay.scss +92 -0
  80. package/src/config-schema.ts +78 -0
  81. package/src/constants.ts +5 -0
  82. package/src/declarations.d.ts +6 -0
  83. package/src/empty-state/empty-state-component.tsx +21 -0
  84. package/src/empty-state/empty-state.scss +23 -0
  85. package/src/form/post-procedures/post-procedure-form.component.tsx +468 -0
  86. package/src/form/post-procedures/post-procedure-form.scss +189 -0
  87. package/src/form/post-procedures/post-procedure.resource.tsx +71 -0
  88. package/src/form/procedures-orders/add-procedures-order/add-procedures-order.scss +44 -0
  89. package/src/form/procedures-orders/add-procedures-order/add-procedures-order.workspace.tsx +93 -0
  90. package/src/form/procedures-orders/add-procedures-order/procedures-order-form.component.tsx +476 -0
  91. package/src/form/procedures-orders/add-procedures-order/procedures-order-form.scss +80 -0
  92. package/src/form/procedures-orders/add-procedures-order/procedures-order.ts +17 -0
  93. package/src/form/procedures-orders/add-procedures-order/procedures-type-search.scss +115 -0
  94. package/src/form/procedures-orders/add-procedures-order/procedures-type-search.tsx +236 -0
  95. package/src/form/procedures-orders/add-procedures-order/useProceduresTypes.ts +93 -0
  96. package/src/form/procedures-orders/api.ts +282 -0
  97. package/src/form/procedures-orders/order-config.ts +48 -0
  98. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-icon.component.tsx +39 -0
  99. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-order-basket-item-tile.component.tsx +100 -0
  100. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-order-basket-item-tile.scss +72 -0
  101. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-order-basket-panel.extension.tsx +190 -0
  102. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-order-basket-panel.scss +74 -0
  103. package/src/form/procedures-orders/procedures-order-basket-panel/procedures-order-basket.scss +55 -0
  104. package/src/header/procedure-header.component.tsx +32 -0
  105. package/src/header/procedure-header.scss +70 -0
  106. package/src/header/procedure-illustration.component.tsx +52 -0
  107. package/src/hooks/useOrdersWorklist.ts +70 -0
  108. package/src/hooks/useSearchGroupedResults.ts +22 -0
  109. package/src/hooks/useSearchResults.ts +39 -0
  110. package/src/index.ts +59 -0
  111. package/src/left-panel-link.tsx +40 -0
  112. package/src/not-done-list/not-done-list.component.tsx +44 -0
  113. package/src/not-done-list/not-done.scss +207 -0
  114. package/src/patient-chart/patient-procedure-order-results-table.resource.ts +43 -0
  115. package/src/patient-chart/patient-procedure-order-results.component.tsx +12 -0
  116. package/src/patient-chart/patient-procedure-order-results.resource.ts +485 -0
  117. package/src/patient-chart/patient-procedure-results.component.tsx +30 -0
  118. package/src/patient-chart/procedure-active-order/procedure-active-order-results.component.tsx +390 -0
  119. package/src/patient-chart/procedure-active-order/procedure-active-order-results.scss +78 -0
  120. package/src/patient-chart/procedure-order-referals/procedure-order-referals.component.tsx +394 -0
  121. package/src/patient-chart/procedure-order-referals/procedure-order-referals.resource.tsx +0 -0
  122. package/src/patient-chart/procedure-order-referals/procedure-order-referals.scss +78 -0
  123. package/src/patient-chart/procedure-past-test/laboratory-past-test-order-results.component.tsx +366 -0
  124. package/src/patient-chart/procedure-past-test/laboratory-past-test-order-results.scss +74 -0
  125. package/src/patient-chart/procedure-tabs/laboratory-order-tabs.component.tsx +44 -0
  126. package/src/patient-chart/procedure-tabs/laboratory-order-tabs.scss +7 -0
  127. package/src/patient-chart/procedure-workspaces/laboratory-referral.workspace.component.tsx +11 -0
  128. package/src/patient-chart/procedure-workspaces/laboratory-referral.workspace.scss +0 -0
  129. package/src/patient-chart/results-summary/print-results-summary.component.tsx +152 -0
  130. package/src/patient-chart/results-summary/print-results-summary.scss +80 -0
  131. package/src/patient-chart/results-summary/print-results-table.component.tsx +134 -0
  132. package/src/patient-chart/results-summary/results-summary.resource.tsx +174 -0
  133. package/src/patient-chart/results-summary/results-summary.scss +158 -0
  134. package/src/patient-chart/results-summary/send-email-dialog.component.tsx +59 -0
  135. package/src/patient-chart/results-summary/test-children-results.component.tsx +177 -0
  136. package/src/patient-chart/results-summary/test-print-results-table.component.tsx +105 -0
  137. package/src/patient-chart/results-summary/test-results-table.component.tsx +103 -0
  138. package/src/print/print-procedure-results.component.tsx +49 -0
  139. package/src/print/print-procedure.component.tsx +105 -0
  140. package/src/print/print-procedure.scss +98 -0
  141. package/src/procedure-tabs/completed-tab.component.tsx +12 -0
  142. package/src/procedure-tabs/not-done-tab.component.tsx +12 -0
  143. package/src/procedure-tabs/referred-tab.component.tsx +12 -0
  144. package/src/procedure-tabs/work-list-tab.component.tsx +13 -0
  145. package/src/procedure.component.tsx +24 -0
  146. package/src/procedures-ordered/_pick-procedure-request-menu.component.tsx +33 -0
  147. package/src/procedures-ordered/pick-procedure-order/add-to-worklist-dialog.component.tsx +105 -0
  148. package/src/procedures-ordered/pick-procedure-order/add-to-worklist-dialog.resource.ts +106 -0
  149. package/src/procedures-ordered/pick-procedure-order/add-to-worklist-dialog.scss +38 -0
  150. package/src/procedures-ordered/pick-procedure-request-menu.component.tsx +32 -0
  151. package/src/procedures-ordered/procedure-dialogs/add-to-worklist-dialog.component.tsx +300 -0
  152. package/src/procedures-ordered/procedure-dialogs/add-to-worklist-dialog.resource.ts +153 -0
  153. package/src/procedures-ordered/procedure-dialogs/add-to-worklist-dialog.scss +38 -0
  154. package/src/procedures-ordered/procedure-instructions/instructions.scss +24 -0
  155. package/src/procedures-ordered/procedure-instructions/procedure-instructions-menu.component.tsx +32 -0
  156. package/src/procedures-ordered/procedure-instructions/procedure-instructions.component.tsx +78 -0
  157. package/src/procedures-ordered/procedure-instructions/procedure-instructions.scss +24 -0
  158. package/src/procedures-ordered/procedure-queue.scss +211 -0
  159. package/src/procedures-ordered/procedure-tabs.component.tsx +104 -0
  160. package/src/procedures-ordered/procedure-tests/procedure-tests.component.tsx +83 -0
  161. package/src/procedures-ordered/procedure-tests/procedure-tests.resource.ts +14 -0
  162. package/src/procedures-ordered/procedure-tests/procedure-tests.scss +12 -0
  163. package/src/procedures-ordered/procedures-ordered-list.component.tsx +38 -0
  164. package/src/procedures-ordered/reject-order-dialog/reject-order-dialog.scss +14 -0
  165. package/src/procedures-ordered/reject-order-dialog/reject-procedure-order-dialog.component.tsx +98 -0
  166. package/src/procedures-ordered/reject-reason/procedure-reject-reason-menu.component.tsx +32 -0
  167. package/src/procedures-ordered/reject-reason/procedure-reject-reason.component.tsx +40 -0
  168. package/src/procedures-ordered/transition-patient-new-queue/transition-latest-queue-entry-button.component.tsx +42 -0
  169. package/src/procedures-ordered/transition-patient-new-queue/transition-latest-queue-entry-button.scss +14 -0
  170. package/src/procedures-ordered/transition-patient-new-queue/transition-latest-queue-entry-button.test.tsx +67 -0
  171. package/src/referred-procedures/referred-procedures.component.tsx +37 -0
  172. package/src/results/result-form-field.component.tsx +141 -0
  173. package/src/results/result-form.component.tsx +120 -0
  174. package/src/results/result-form.resource.ts +361 -0
  175. package/src/results/result-form.scss +22 -0
  176. package/src/root.component.tsx +16 -0
  177. package/src/routes.json +152 -0
  178. package/src/setup-tests.ts +7 -0
  179. package/src/shared/ui/common/action-button/action-button.component.tsx +68 -0
  180. package/src/shared/ui/common/action-button/action-button.scss +12 -0
  181. package/src/shared/ui/common/action-button/order-action-extension.component.tsx +21 -0
  182. package/src/shared/ui/common/grouped-orders-table.component.tsx +176 -0
  183. package/src/shared/ui/common/grouped-orders-table.scss +30 -0
  184. package/src/shared/ui/common/grouped-procedure-types.ts +47 -0
  185. package/src/shared/ui/common/list-order-details.component.tsx +171 -0
  186. package/src/shared/ui/common/list-order-details.resource.ts +41 -0
  187. package/src/shared/ui/common/list-order-details.scss +118 -0
  188. package/src/shared/ui/common/orders-date-range-picker.scss +15 -0
  189. package/src/shared/ui/common/orders-date-range-picker.tsx +38 -0
  190. package/src/summary-tiles/procedure-summary-tiles.component.tsx +36 -0
  191. package/src/summary-tiles/procedure-summary-tiles.scss +11 -0
  192. package/src/summary-tiles/procedure-summary.resource.tsx +79 -0
  193. package/src/summary-tiles/summary-tile.component.tsx +41 -0
  194. package/src/summary-tiles/summary-tile.scss +53 -0
  195. package/src/types/index.ts +661 -0
  196. package/src/types/patient-queue.ts +77 -0
  197. package/src/ui-components/overflow-menu.component.tsx +74 -0
  198. package/src/ui-components/overflow-menu.scss +39 -0
  199. package/src/utils/functions.ts +236 -0
  200. package/src/utils/orders-table/orders-data-table.component.tsx +129 -0
  201. package/src/utils/orders-table/orders-data-table.scss +50 -0
  202. package/src/work-list/work-list.component.tsx +38 -0
  203. package/src/work-list/work-list.resource.ts +26 -0
  204. package/src/work-list/work-list.scss +207 -0
  205. package/translations/en.json +141 -0
  206. package/tsconfig.json +5 -0
  207. package/webpack.config.js +1 -0
@@ -0,0 +1,40 @@
1
+ import React, { useMemo } from 'react';
2
+ import last from 'lodash-es/last';
3
+ import { BrowserRouter, useLocation } from 'react-router-dom';
4
+ import { ConfigurableLink } from '@openmrs/esm-framework';
5
+
6
+ export interface LinkConfig {
7
+ name: string;
8
+ title: string;
9
+ }
10
+
11
+ export function LinkExtension({ config }: { config: LinkConfig }) {
12
+ const { name, title } = config;
13
+ const location = useLocation();
14
+ const spaBasePath = window.getOpenmrsSpaBase() + 'home';
15
+
16
+ let urlSegment = useMemo(() => decodeURIComponent(last(location.pathname.split('/'))), [location.pathname]);
17
+
18
+ const isUUID = (value) => {
19
+ const regex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/;
20
+ return regex.test(value);
21
+ };
22
+
23
+ if (isUUID(urlSegment)) {
24
+ urlSegment = 'billing';
25
+ }
26
+
27
+ return (
28
+ <ConfigurableLink
29
+ to={spaBasePath + '/' + name}
30
+ className={`cds--side-nav__link ${name === urlSegment && 'active-left-nav-link'}`}>
31
+ {title}
32
+ </ConfigurableLink>
33
+ );
34
+ }
35
+
36
+ export const createLeftPanelLink = (config: LinkConfig) => () => (
37
+ <BrowserRouter>
38
+ <LinkExtension config={config} />
39
+ </BrowserRouter>
40
+ );
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import Overlay from '../components/overlay/overlay.component';
4
+ import { useOrdersWorklist } from '../hooks/useOrdersWorklist';
5
+ import GroupedOrdersTable from '../shared/ui/common/grouped-orders-table.component';
6
+ import { DataTableSkeleton } from '@carbon/react';
7
+ interface WorklistProps {
8
+ fulfillerStatus: string;
9
+ }
10
+
11
+ const NotDoneList: React.FC<WorklistProps> = ({ fulfillerStatus }) => {
12
+ const { t } = useTranslation();
13
+
14
+ const { workListEntries, isLoading } = useOrdersWorklist('', fulfillerStatus);
15
+
16
+ if (isLoading) {
17
+ return <DataTableSkeleton role="progressbar" />;
18
+ }
19
+
20
+ if (workListEntries?.length >= 0) {
21
+ return (
22
+ <>
23
+ <div>
24
+ <GroupedOrdersTable
25
+ orders={workListEntries}
26
+ showActions={false}
27
+ showStatus={true}
28
+ showOrderType={true}
29
+ showStartButton={false}
30
+ title={t('notDoneList', 'Not Done List')}
31
+ actions={[
32
+ {
33
+ actionName: 'procedure-reject-reason-modal',
34
+ },
35
+ ]}
36
+ />
37
+ </div>
38
+ <Overlay />
39
+ </>
40
+ );
41
+ }
42
+ };
43
+
44
+ export default NotDoneList;
@@ -0,0 +1,207 @@
1
+ @use '@carbon/styles/scss/spacing';
2
+ @use '@carbon/styles/scss/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as vars;
4
+
5
+ title {
6
+ width: 6.938rem;
7
+ height: 1.75rem;
8
+ margin: 0.438rem 22.875rem 0.813rem 0;
9
+ font-family: IBMPlexSans;
10
+ font-size: 1.25rem;
11
+ font-weight: normal;
12
+ font-stretch: normal;
13
+ font-style: normal;
14
+ line-height: 1.4;
15
+ letter-spacing: normal;
16
+ }
17
+
18
+ .link {
19
+ text-decoration: none;
20
+ }
21
+
22
+ .breadcrumbsSlot {
23
+ grid-row: 1 / 2;
24
+ grid-column: 1 / 2;
25
+ }
26
+
27
+ .orderTabsContainer {
28
+ height: 100%;
29
+ width: 100%;
30
+
31
+ :global(.cds--tab-content) {
32
+ padding: 0 !important;
33
+ }
34
+ }
35
+
36
+ .orderTabs {
37
+ grid-column: 'span 2';
38
+ padding: 0 spacing.$spacing-05;
39
+ }
40
+
41
+ .newListButton {
42
+ width: fit-content;
43
+ justify-self: end;
44
+ align-self: center;
45
+ }
46
+
47
+ .tabsContainer {
48
+ background-color: vars.$ui-02;
49
+
50
+ :global(.cds--tabs__nav-item--selected) {
51
+ box-shadow: inset 0 2px 0 0 var(--brand-03) !important;
52
+ }
53
+
54
+ :global(.cds--tab--list) button {
55
+ max-width: 12rem !important;
56
+ }
57
+ }
58
+
59
+ .hiddenTabsContent,
60
+ .tabs .hiddenTabsContent {
61
+ display: none;
62
+ }
63
+
64
+ .patientListTableContainer {
65
+ grid-row: 3 / 4;
66
+ grid-column: 1 / 2;
67
+ height: 100%;
68
+ margin: 0.5rem spacing.$spacing-05;
69
+ background-color: vars.$ui-01;
70
+ border: 0.5px solid #e0e0e0;
71
+
72
+ :global(.cds--data-table-container) {
73
+ padding-top: 0 !important;
74
+ }
75
+
76
+ tbody > tr > :nth-child(2) {
77
+ white-space: nowrap;
78
+ }
79
+
80
+ :global(.cds--data-table td) {
81
+ height: unset !important;
82
+ }
83
+
84
+ :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 1) td {
85
+ background-color: vars.$ui-02;
86
+ border-bottom: 1px solid vars.$ui-03;
87
+ border-top: 1px solid vars.$ui-03;
88
+ }
89
+
90
+ :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 3) td {
91
+ background-color: vars.$ui-01;
92
+ border-bottom: 1px solid vars.$ui-03;
93
+ }
94
+ }
95
+
96
+ .tableContainer {
97
+ background-color: vars.$ui-01;
98
+ margin: 0 spacing.$spacing-05;
99
+ padding: 0;
100
+
101
+ a {
102
+ text-decoration: none;
103
+ }
104
+
105
+ th {
106
+ color: vars.$text-02;
107
+ }
108
+
109
+ :global(.cds--data-table) {
110
+ background-color: vars.$ui-03;
111
+ }
112
+
113
+ .toolbarContent {
114
+ height: spacing.$spacing-07;
115
+ margin-bottom: spacing.$spacing-02;
116
+ }
117
+ }
118
+
119
+ .activePatientsTable tr:last-of-type {
120
+ td {
121
+ border-bottom: none;
122
+ }
123
+ }
124
+
125
+ .searchContainer {
126
+ display: flex;
127
+ align-items: center;
128
+ flex-direction: row-reverse;
129
+ padding-top: 0.5rem;
130
+
131
+ :global(.cds--search-magnifier-icon) {
132
+ z-index: 0 !important;
133
+ }
134
+
135
+ input {
136
+ background-color: #fff;
137
+ }
138
+ }
139
+
140
+ .addOrderBtn {
141
+ width: 10rem !important;
142
+ padding: 0.5rem !important;
143
+ margin-left: 1rem;
144
+ margin-right: 1rem;
145
+ }
146
+
147
+ .patientSearch {
148
+ width: 25rem;
149
+ border-bottom-color: vars.$ui-03;
150
+ }
151
+
152
+ .locationFilter {
153
+ width: 25rem;
154
+ }
155
+
156
+ .search {
157
+ width: 100%;
158
+ max-width: 16rem;
159
+ background-color: vars.$ui-02;
160
+ border-bottom-color: vars.$ui-03;
161
+ }
162
+
163
+ .container {
164
+ background-color: vars.$ui-01;
165
+ }
166
+
167
+ .expandedLabQueueVisitRow {
168
+ :global(.cds--tab-content) {
169
+ padding: 0.5rem 0;
170
+ }
171
+
172
+ td {
173
+ padding: 0.5rem;
174
+
175
+ > div {
176
+ max-height: max-content !important;
177
+ background-color: vars.$ui-02;
178
+ }
179
+ }
180
+
181
+ th[colspan] td[colspan] > div:first-child {
182
+ padding: 0 1rem;
183
+ }
184
+ }
185
+
186
+ .tileContainer {
187
+ background-color: vars.$ui-02;
188
+ border-top: 1px solid vars.$ui-03;
189
+ padding: 5rem 0;
190
+ }
191
+
192
+ .tile {
193
+ margin: auto;
194
+ width: fit-content;
195
+ }
196
+
197
+ .tileContent {
198
+ display: flex;
199
+ flex-direction: column;
200
+ align-items: center;
201
+ }
202
+
203
+ .content {
204
+ @include type.type-style('heading-compact-02');
205
+ color: vars.$text-02;
206
+ margin-bottom: 0.5rem;
207
+ }
@@ -0,0 +1,43 @@
1
+ import { useMemo, useState } from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import { usePagination } from '@openmrs/esm-framework';
4
+ import { type LaboratoryOrderFilter, usePatientLaboratoryOrders } from './patient-procedure-order-results.resource';
5
+
6
+ export function useLaboratoryOrderResultsPages(filter: LaboratoryOrderFilter) {
7
+ const { t } = useTranslation();
8
+
9
+ const pageSizes = [10, 20, 30, 40, 50];
10
+ const [currentPageSize, setPageSize] = useState(10);
11
+
12
+ const { items, isLoading, isError } = usePatientLaboratoryOrders(filter);
13
+ const { goTo, results: paginatedItems, currentPage } = usePagination(items, currentPageSize);
14
+
15
+ const tableHeaders = useMemo(
16
+ () => [
17
+ {
18
+ id: 0,
19
+ header: t('orderDate', 'Test Date'),
20
+ key: 'orderDate',
21
+ },
22
+ { id: 1, header: t('tests', 'Tests'), key: 'orders' },
23
+ { id: 2, header: t('location', 'Location'), key: 'location' },
24
+ { id: 3, header: t('status', 'Status'), key: 'status' },
25
+ { id: 4, header: t('actions', 'Action'), key: 'actions' },
26
+ ],
27
+ [t],
28
+ );
29
+
30
+ return {
31
+ items: paginatedItems,
32
+ totalItems: items?.length,
33
+ currentPage,
34
+ currentPageSize,
35
+ paginatedItems,
36
+ goTo,
37
+ pageSizes,
38
+ isLoading,
39
+ isError,
40
+ setPageSize,
41
+ tableHeaders,
42
+ };
43
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import LaboratoryResultsTabs from './procedure-tabs/laboratory-order-tabs.component';
3
+
4
+ interface PatientLaboratoryOrderResultsProps {
5
+ patientUuid: string;
6
+ }
7
+
8
+ const PatientLaboratoryOrderResults: React.FC<PatientLaboratoryOrderResultsProps> = ({ patientUuid }) => {
9
+ return <LaboratoryResultsTabs patientUuid={patientUuid} />;
10
+ };
11
+
12
+ export default PatientLaboratoryOrderResults;