@openmrs/esm-laboratory-app 1.2.1-pre.847 → 1.2.1-pre.850

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.
@@ -218,9 +218,9 @@
218
218
  "entry": false,
219
219
  "recorded": false,
220
220
  "reason": "split chunk (cache group: default)",
221
- "size": 40806,
221
+ "size": 40816,
222
222
  "sizes": {
223
- "javascript": 40806
223
+ "javascript": 40816
224
224
  },
225
225
  "names": [],
226
226
  "idHints": [],
@@ -234,7 +234,7 @@
234
234
  "auxiliaryFiles": [
235
235
  "1120.js.map"
236
236
  ],
237
- "hash": "47a0ea08575d8e62",
237
+ "hash": "7586f740ae4c28f0",
238
238
  "childrenByOrder": {}
239
239
  },
240
240
  {
@@ -264,10 +264,10 @@
264
264
  "initial": false,
265
265
  "entry": false,
266
266
  "recorded": false,
267
- "size": 75165,
267
+ "size": 75176,
268
268
  "sizes": {
269
269
  "consume-shared": 42,
270
- "javascript": 75123
270
+ "javascript": 75134
271
271
  },
272
272
  "names": [],
273
273
  "idHints": [],
@@ -280,7 +280,7 @@
280
280
  "auxiliaryFiles": [
281
281
  "1788.js.map"
282
282
  ],
283
- "hash": "fc12c39938a2d665",
283
+ "hash": "7d70b17587e19639",
284
284
  "childrenByOrder": {}
285
285
  },
286
286
  {
@@ -693,9 +693,9 @@
693
693
  "initial": false,
694
694
  "entry": false,
695
695
  "recorded": false,
696
- "size": 2175,
696
+ "size": 2205,
697
697
  "sizes": {
698
- "javascript": 2175
698
+ "javascript": 2205
699
699
  },
700
700
  "names": [],
701
701
  "idHints": [],
@@ -707,7 +707,7 @@
707
707
  "4300.js"
708
708
  ],
709
709
  "auxiliaryFiles": [],
710
- "hash": "71deebbed405413c",
710
+ "hash": "91a0149a2915785f",
711
711
  "childrenByOrder": {}
712
712
  },
713
713
  {
@@ -827,9 +827,9 @@
827
827
  "initial": false,
828
828
  "entry": false,
829
829
  "recorded": false,
830
- "size": 19629,
830
+ "size": 19639,
831
831
  "sizes": {
832
- "javascript": 19629
832
+ "javascript": 19639
833
833
  },
834
834
  "names": [],
835
835
  "idHints": [],
@@ -843,7 +843,7 @@
843
843
  "auxiliaryFiles": [
844
844
  "5085.js.map"
845
845
  ],
846
- "hash": "350cf681b559b5ee",
846
+ "hash": "fc6045832936c0da",
847
847
  "childrenByOrder": {}
848
848
  },
849
849
  {
@@ -1007,9 +1007,9 @@
1007
1007
  "entry": false,
1008
1008
  "recorded": false,
1009
1009
  "reason": "split chunk (cache group: default)",
1010
- "size": 148296,
1010
+ "size": 148552,
1011
1011
  "sizes": {
1012
- "javascript": 148296
1012
+ "javascript": 148552
1013
1013
  },
1014
1014
  "names": [],
1015
1015
  "idHints": [],
@@ -1023,7 +1023,7 @@
1023
1023
  "auxiliaryFiles": [
1024
1024
  "6134.js.map"
1025
1025
  ],
1026
- "hash": "f15d24859c50ce1f",
1026
+ "hash": "72ea028f01e49c40",
1027
1027
  "childrenByOrder": {}
1028
1028
  },
1029
1029
  {
@@ -1301,9 +1301,9 @@
1301
1301
  "initial": false,
1302
1302
  "entry": false,
1303
1303
  "recorded": false,
1304
- "size": 9622,
1304
+ "size": 9632,
1305
1305
  "sizes": {
1306
- "javascript": 9622
1306
+ "javascript": 9632
1307
1307
  },
1308
1308
  "names": [],
1309
1309
  "idHints": [],
@@ -1317,7 +1317,7 @@
1317
1317
  "auxiliaryFiles": [
1318
1318
  "8554.js.map"
1319
1319
  ],
1320
- "hash": "2fd64d0888831f26",
1320
+ "hash": "ed4736b34da993c6",
1321
1321
  "childrenByOrder": {}
1322
1322
  },
1323
1323
  {
@@ -1371,10 +1371,10 @@
1371
1371
  "initial": true,
1372
1372
  "entry": true,
1373
1373
  "recorded": false,
1374
- "size": 4233081,
1374
+ "size": 4233092,
1375
1375
  "sizes": {
1376
1376
  "consume-shared": 252,
1377
- "javascript": 4211789,
1377
+ "javascript": 4211800,
1378
1378
  "share-init": 210,
1379
1379
  "runtime": 20830
1380
1380
  },
@@ -1391,7 +1391,7 @@
1391
1391
  "auxiliaryFiles": [
1392
1392
  "main.js.map"
1393
1393
  ],
1394
- "hash": "50982c62cfd7e43f",
1394
+ "hash": "5b36b7bee9b9b7f0",
1395
1395
  "childrenByOrder": {}
1396
1396
  },
1397
1397
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"laboratory"}],"extensions":[{"name":"laboratory-dashboard","slot":"laboratory-dashboard-slot","component":"root"},{"name":"laboratory-dashboard-link","slot":"homepage-dashboard-slot","component":"laboratoryDashboardLink","meta":{"name":"laboratory","slot":"laboratory-dashboard-slot","title":"Laboratory"}},{"name":"pickup-lab-request-modal","component":"pickupLabRequestModal"},{"name":"reject-lab-request-modal","component":"rejectLabRequestModal"},{"name":"all-lab-requests-table","slot":"lab-panels-slot","component":"allLabRequestsTable","meta":{"name":"inprogressPanel","title":"Tests ordered"}},{"name":"inprogress-lab-requests-table","slot":"lab-panels-slot","component":"inprogressLabRequestsTable","meta":{"name":"inprogressPanel","title":"In progress"}},{"name":"completed-lab-requests-table","slot":"lab-panels-slot","component":"completedLabRequestsTable","meta":{"name":"completedPanel","title":"Completed"}},{"name":"tests-ordered-tile-component","slot":"lab-tiles-slot","component":"testOrderedTile","meta":{"name":"testsOrderedTileSlot","title":"Ordered tests"}},{"name":"worklist-tile-component","slot":"lab-tiles-slot","component":"worklistTile","meta":{"name":"worklisTileSlot","title":"Worklist"}},{"name":"completed-tile-component","slot":"lab-tiles-slot","component":"completedTile","meta":{"name":"referredPanleSlot","title":"Referred tests"}},{"name":"declined-tile-component","slot":"lab-panels-slot","component":"declinedLabRequestsTable","meta":{"name":"declinedPanel","title":"Declined tests"}},{"name":"pick-lab-request-action","component":"pickupLabRequestAction","slot":"tests-ordered-actions-slot"},{"name":"reject-lab-request-tests-ordered-action","component":"rejectLabRequestAction","slot":"rejected-ordered-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"},{"name":"reject-lab-request-worklist-action","component":"rejectLabRequestAction","slot":"inprogress-tests-actions-slot"},{"name":"add-lab-request-results-action","component":"addLabRequestResultsAction","slot":"inprogress-tests-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"}],"version":"1.2.1-pre.847"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"laboratory"}],"extensions":[{"name":"laboratory-dashboard","slot":"laboratory-dashboard-slot","component":"root"},{"name":"laboratory-dashboard-link","slot":"homepage-dashboard-slot","component":"laboratoryDashboardLink","meta":{"name":"laboratory","slot":"laboratory-dashboard-slot","title":"Laboratory"}},{"name":"pickup-lab-request-modal","component":"pickupLabRequestModal"},{"name":"reject-lab-request-modal","component":"rejectLabRequestModal"},{"name":"all-lab-requests-table","slot":"lab-panels-slot","component":"allLabRequestsTable","meta":{"name":"inprogressPanel","title":"Tests ordered"}},{"name":"inprogress-lab-requests-table","slot":"lab-panels-slot","component":"inprogressLabRequestsTable","meta":{"name":"inprogressPanel","title":"In progress"}},{"name":"completed-lab-requests-table","slot":"lab-panels-slot","component":"completedLabRequestsTable","meta":{"name":"completedPanel","title":"Completed"}},{"name":"tests-ordered-tile-component","slot":"lab-tiles-slot","component":"testOrderedTile","meta":{"name":"testsOrderedTileSlot","title":"Ordered tests"}},{"name":"worklist-tile-component","slot":"lab-tiles-slot","component":"worklistTile","meta":{"name":"worklisTileSlot","title":"Worklist"}},{"name":"completed-tile-component","slot":"lab-tiles-slot","component":"completedTile","meta":{"name":"referredPanleSlot","title":"Referred tests"}},{"name":"declined-tile-component","slot":"lab-panels-slot","component":"declinedLabRequestsTable","meta":{"name":"declinedPanel","title":"Declined tests"}},{"name":"pick-lab-request-action","component":"pickupLabRequestAction","slot":"tests-ordered-actions-slot"},{"name":"reject-lab-request-tests-ordered-action","component":"rejectLabRequestAction","slot":"rejected-ordered-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"},{"name":"reject-lab-request-worklist-action","component":"rejectLabRequestAction","slot":"inprogress-tests-actions-slot"},{"name":"add-lab-request-results-action","component":"addLabRequestResultsAction","slot":"inprogress-tests-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"}],"version":"1.2.1-pre.850"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-laboratory-app",
3
- "version": "1.2.1-pre.847",
3
+ "version": "1.2.1-pre.850",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An O3 frontend module for managing laboratory requests and queues",
6
6
  "browser": "dist/openmrs-esm-laboratory-app.js",
@@ -53,6 +53,12 @@ const labTableColumnSpec = {
53
53
  headerLabelDefault: 'Age',
54
54
  key: 'patientAge',
55
55
  },
56
+ dob: {
57
+ // t('dateOfBirth', 'Date of Birth')
58
+ headerLabelKey: 'dob',
59
+ headerLabelDefault: 'Date of Birth',
60
+ key: 'patientDob',
61
+ },
56
62
  sex: {
57
63
  // t('sex', 'Sex')
58
64
  headerLabelKey: 'sex',
@@ -140,6 +146,7 @@ const OrdersDataTable: React.FC<OrdersDataTableProps> = (props) => {
140
146
  patientUuid: patientUuid,
141
147
  patientName: patient.person.display,
142
148
  patientAge: patient.person.age,
149
+ patientDob: formatDate(parseDate(patient.person.birthdate)),
143
150
  patientSex: patient.person.gender,
144
151
  totalOrders: flattenedLabOrdersForPatient.length,
145
152
  orders: flattenedLabOrdersForPatient,
@@ -1,6 +1,6 @@
1
1
  import { Type, validators } from '@openmrs/esm-framework';
2
2
 
3
- const allowedLabTableColumns = ['name', 'age', 'sex', 'totalOrders', 'action', 'patientId'] as const;
3
+ const allowedLabTableColumns = ['name', 'age', 'dob', 'sex', 'totalOrders', 'action', 'patientId'] as const;
4
4
  type LabTableColumnName = (typeof allowedLabTableColumns)[number];
5
5
 
6
6
  export const configSchema = {
@@ -31,7 +31,7 @@ export function useLabOrders(params: Partial<UseLabOrdersParams> = useLabOrdersD
31
31
  };
32
32
 
33
33
  const { laboratoryOrderTypeUuid } = useConfig();
34
- const customRepresentation = `custom:(uuid,orderNumber,patient:(uuid,display,person:(uuid,display,age,gender)${
34
+ const customRepresentation = `custom:(uuid,orderNumber,patient:(uuid,display,person:(uuid,display,age,birthdate,gender)${
35
35
  includePatientId ? ',identifiers' : ''
36
36
  }),concept:(uuid,display),action,careSetting:(uuid,display,description,careSettingType,display),previousOrder,dateActivated,scheduledDate,dateStopped,autoExpireDate,encounter:(uuid,display),orderer:(uuid,display),orderReason,orderReasonNonCoded,orderType:(uuid,display,name,description,conceptClasses,parent),urgency,instructions,commentToFulfiller,display,fulfillerStatus,fulfillerComment,accessionNumber,specimenSource,laterality,clinicalHistory,frequency,numberOfRepeats)`;
37
37
  let url = `${restBaseUrl}/order?orderTypes=${laboratoryOrderTypeUuid}&v=${customRepresentation}`;
@@ -8,6 +8,7 @@
8
8
  "completed": "Completed",
9
9
  "Completed": "Completed",
10
10
  "completedStatus": "COMPLETED",
11
+ "dateOfBirth": "Date of Birth",
11
12
  "dateRange": "Date range",
12
13
  "Declined tests": "Declined tests",
13
14
  "declinedStatus": "DECLINED",
@@ -1 +0,0 @@
1
- {"hash":"89cae99ec5885c79","duration":51571}