@digihmis/esm-outpatient-app 1.0.3 → 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/{564.js → 140.js} +1 -1
- package/dist/140.js.map +1 -0
- package/dist/371.js +1 -1
- package/dist/371.js.map +1 -1
- package/dist/752.js +1 -0
- package/dist/752.js.map +1 -0
- package/dist/digihmis-esm-outpatient-app.js +2 -2
- package/dist/digihmis-esm-outpatient-app.js.buildmanifest.json +58 -58
- package/dist/main.js +4 -4
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/queue-room-table/queue-room-table.component.tsx +3 -2
- package/src/queue-room-table/queue-room-table.resource.ts +1 -1
- package/src/queue-room-table/type/index.ts +4 -0
- package/dist/304.js +0 -1
- package/dist/304.js.map +0 -1
- package/dist/564.js.map +0 -1
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":"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.
|
|
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
|
@@ -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);
|