@digihmis/esm-outpatient-app 1.0.2 → 1.0.4

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/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.24.0"},"extensions":[{"name":"outpatient-dashboard-header","slot":"outpatient-sidebar-slot","component":"outpatientDashboardHeader","order":0,"online":true,"offline":true},{"name":"outpatient-db-link","slot":"outpatient-dashboard-slot","component":"leftPanelLink","meta":{"name":"outpatient","slot":"outpatient-homepage-dashboard-slot","title":"Outpatient queue"},"order":1,"online":true,"offline":true},{"name":"outpatient-queue-dashboard","slot":"outpatient-homepage-dashboard-slot","component":"outpatientQueueDashboard"},{"name":"care-panel-link","slot":"outpatient-dashboard-slot","component":"carePanelLink","meta":{"name":"outpatient/patient/:patientUuid/file","slot":"outpatient-file-dashboard-slot","title":"Care panel","showOnlyOnRoute":"/file"},"order":2,"online":true,"offline":true},{"name":"care-panel-history","slot":"outpatient-file-dashboard-slot","component":"carePanel"}],"workspaces":[],"version":"1.0.2"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.24.0"},"extensions":[{"name":"outpatient-dashboard-header","slot":"outpatient-sidebar-slot","component":"outpatientDashboardHeader","order":0,"online":true,"offline":true},{"name":"outpatient-db-link","slot":"outpatient-dashboard-slot","component":"leftPanelLink","meta":{"name":"outpatient","slot":"outpatient-homepage-dashboard-slot","title":"Outpatient queue"},"order":1,"online":true,"offline":true},{"name":"outpatient-queue-dashboard","slot":"outpatient-homepage-dashboard-slot","component":"outpatientQueueDashboard"},{"name":"care-panel-link","slot":"outpatient-dashboard-slot","component":"carePanelLink","meta":{"name":"outpatient/patient/:patientUuid/file","slot":"outpatient-file-dashboard-slot","title":"Patient file","showOnlyOnRoute":"/file"},"order":2,"online":true,"offline":true},{"name":"care-panel-history","slot":"outpatient-file-dashboard-slot","component":"carePanel"}],"workspaces":[],"version":"1.0.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digihmis/esm-outpatient-app",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Outpatient microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/digihmis-esm-outpatient-app.js",
6
6
  "main": "src/index.ts",
@@ -10,7 +10,7 @@ export const dashboardMeta = {
10
10
  export const carePanelMeta = {
11
11
  name: 'outpatient/patient/:patientUuid/file',
12
12
  slot: 'outpatient-file-dashboard-slot',
13
- title: 'Care panel',
13
+ title: 'Patient file',
14
14
  icon: UserIdentification,
15
15
  showOnlyOnRoute: '/file',
16
16
  };
@@ -55,7 +55,8 @@ export const QueueRoomTable: React.FC<QueueRoomTableProps> = ({ queueRoomUuid, q
55
55
  (entry) =>
56
56
  entry?.patient?.display.toLowerCase().includes(search) ||
57
57
  entry?.display.toLowerCase().includes(search) ||
58
- entry?.queueRoomComingFrom?.display?.toLowerCase().includes(search),
58
+ entry?.queueRoomComingFrom?.display?.toLowerCase().includes(search) ||
59
+ entry?.queueComingFrom?.display?.toLowerCase().includes(search),
59
60
  );
60
61
  }, [queueEntries, searchTerm]);
61
62
 
@@ -144,7 +145,7 @@ export const QueueRoomTable: React.FC<QueueRoomTableProps> = ({ queueRoomUuid, q
144
145
  patientUuid: patientUuid,
145
146
  age: entry?.patient?.person?.age,
146
147
  gender: entry?.patient?.person?.gender === 'M' ? t('male', 'Male') : t('female', 'Female'),
147
- comingFrom: entry?.queueRoomComingFrom?.display || t('direct', 'Direct Entry'),
148
+ comingFrom: entry?.queueRoomComingFrom?.display || entry?.queueComingFrom?.display || t('direct', 'Direct Entry'),
148
149
  priority: entry?.priority?.display || t('normal', 'Normal'),
149
150
  priorityColor: getPriorityColor(entry?.priority?.display || ''),
150
151
  waitTime: calculateWaitTime(entry?.startedAt),
@@ -4,7 +4,7 @@ import { type QueueEntry } from './type';
4
4
 
5
5
  export const useQueueEntries = (queueRoomUuid: string, queueUuid: string) => {
6
6
  const customRepresentation =
7
- 'custom:(uuid,display,patient:(uuid,display,person:(display,age,gender)),priority:(uuid,display),status:(uuid,display),visit:(uuid),startedAt,sortWeight,queueRoom:(uuid,display),queueRoomComingFrom:(uuid,display))';
7
+ 'custom:(uuid,display,patient:(uuid,display,person:(display,age,gender)),priority:(uuid,display),status:(uuid,display),visit:(uuid),startedAt,sortWeight,queueRoom:(uuid,display),queueComingFrom:(uuid,display),queueRoomComingFrom:(uuid,display))';
8
8
 
9
9
  const params = new URLSearchParams();
10
10
  params.append('v', customRepresentation);
@@ -29,6 +29,10 @@ export interface QueueEntry {
29
29
  uuid: string;
30
30
  display: string;
31
31
  };
32
+ queueComingFrom?: {
33
+ uuid: string;
34
+ display: string;
35
+ };
32
36
  startedAt: string;
33
37
  sortWeight: number;
34
38
  }
package/src/routes.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "meta": {
39
39
  "name": "outpatient/patient/:patientUuid/file",
40
40
  "slot": "outpatient-file-dashboard-slot",
41
- "title": "Care panel",
41
+ "title": "Patient file",
42
42
  "showOnlyOnRoute": "/file"
43
43
  },
44
44
  "order": 2,
@@ -2,7 +2,7 @@
2
2
  "actions": "Actions",
3
3
  "age": "Age",
4
4
  "avgWaitTime": "Avg. Wait Time",
5
- "carePanel": "Care panel",
5
+ "carePanel": "Patient file",
6
6
  "changeStation": "Change Station",
7
7
  "clockedInTo": "Clocked in to",
8
8
  "clockedOutFromCurrent": "Clocked out from current station",