@openmrs/esm-ward-app 9.2.1-pre.7442 → 9.2.1-pre.7450
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/.turbo/turbo-build.log +1 -1
- package/dist/3624.js +1 -1
- package/dist/3624.js.map +1 -1
- package/dist/6515.js +1 -1
- package/dist/6515.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-ward-app.js +1 -1
- package/dist/openmrs-esm-ward-app.js.buildmanifest.json +11 -11
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/types/index.ts +8 -1
- package/src/ward-patient-card/ward-patient-card.component.tsx +9 -3
- package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.workspace.tsx +2 -1
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"auxiliaryFiles": [
|
|
186
186
|
"openmrs-esm-ward-app.js.map"
|
|
187
187
|
],
|
|
188
|
-
"hash": "
|
|
188
|
+
"hash": "c85412c3ceae4e63",
|
|
189
189
|
"childrenByOrder": {}
|
|
190
190
|
},
|
|
191
191
|
{
|
|
@@ -692,9 +692,9 @@
|
|
|
692
692
|
"initial": false,
|
|
693
693
|
"entry": false,
|
|
694
694
|
"reason": "split chunk (cache group: default)",
|
|
695
|
-
"size":
|
|
695
|
+
"size": 255174,
|
|
696
696
|
"sizes": {
|
|
697
|
-
"javascript":
|
|
697
|
+
"javascript": 255174
|
|
698
698
|
},
|
|
699
699
|
"names": [],
|
|
700
700
|
"idHints": [
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
"auxiliaryFiles": [
|
|
711
711
|
"3624.js.map"
|
|
712
712
|
],
|
|
713
|
-
"hash": "
|
|
713
|
+
"hash": "da1d4417736ec192",
|
|
714
714
|
"childrenByOrder": {}
|
|
715
715
|
},
|
|
716
716
|
{
|
|
@@ -785,9 +785,9 @@
|
|
|
785
785
|
"initial": false,
|
|
786
786
|
"entry": false,
|
|
787
787
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
788
|
-
"size":
|
|
788
|
+
"size": 4578158,
|
|
789
789
|
"sizes": {
|
|
790
|
-
"javascript":
|
|
790
|
+
"javascript": 4578158
|
|
791
791
|
},
|
|
792
792
|
"names": [],
|
|
793
793
|
"idHints": [
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
"auxiliaryFiles": [
|
|
804
804
|
"3954.js.map"
|
|
805
805
|
],
|
|
806
|
-
"hash": "
|
|
806
|
+
"hash": "cd9c185ad3798848",
|
|
807
807
|
"childrenByOrder": {}
|
|
808
808
|
},
|
|
809
809
|
{
|
|
@@ -1502,9 +1502,9 @@
|
|
|
1502
1502
|
"rendered": true,
|
|
1503
1503
|
"initial": false,
|
|
1504
1504
|
"entry": false,
|
|
1505
|
-
"size":
|
|
1505
|
+
"size": 41450,
|
|
1506
1506
|
"sizes": {
|
|
1507
|
-
"javascript":
|
|
1507
|
+
"javascript": 41450
|
|
1508
1508
|
},
|
|
1509
1509
|
"names": [],
|
|
1510
1510
|
"idHints": [],
|
|
@@ -1518,7 +1518,7 @@
|
|
|
1518
1518
|
"auxiliaryFiles": [
|
|
1519
1519
|
"6515.js.map"
|
|
1520
1520
|
],
|
|
1521
|
-
"hash": "
|
|
1521
|
+
"hash": "59543d6db5de8bb5",
|
|
1522
1522
|
"childrenByOrder": {}
|
|
1523
1523
|
},
|
|
1524
1524
|
{
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
"auxiliaryFiles": [
|
|
1591
1591
|
"main.js.map"
|
|
1592
1592
|
],
|
|
1593
|
-
"hash": "
|
|
1593
|
+
"hash": "61cffce5ff00bc94",
|
|
1594
1594
|
"childrenByOrder": {}
|
|
1595
1595
|
},
|
|
1596
1596
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.7450"}
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -63,7 +63,14 @@ export interface WardPatientWorkspaceProps {
|
|
|
63
63
|
/**
|
|
64
64
|
* props type of workspaces in the 'ward-patient` workspace group.
|
|
65
65
|
*/
|
|
66
|
-
export type WardPatientWorkspaceDefinition = Workspace2DefinitionProps<
|
|
66
|
+
export type WardPatientWorkspaceDefinition = Workspace2DefinitionProps<
|
|
67
|
+
{},
|
|
68
|
+
{},
|
|
69
|
+
{
|
|
70
|
+
wardPatient: WardPatient;
|
|
71
|
+
relatedTransferPatients?: WardPatient[];
|
|
72
|
+
}
|
|
73
|
+
>;
|
|
67
74
|
|
|
68
75
|
// server-side types defined in openmrs-module-bedmanagement:
|
|
69
76
|
|
|
@@ -23,9 +23,15 @@ const WardPatientCard: React.FC<Props> = ({ children, wardPatient, relatedTransf
|
|
|
23
23
|
<button
|
|
24
24
|
className={styles.wardPatientCardButton}
|
|
25
25
|
onClick={() => {
|
|
26
|
-
launchWorkspace2(
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
launchWorkspace2(
|
|
27
|
+
'ward-patient-workspace',
|
|
28
|
+
{},
|
|
29
|
+
{},
|
|
30
|
+
{
|
|
31
|
+
wardPatient,
|
|
32
|
+
relatedTransferPatients,
|
|
33
|
+
},
|
|
34
|
+
);
|
|
29
35
|
}}>
|
|
30
36
|
{getPatientName(patient.person)}
|
|
31
37
|
</button>
|
|
@@ -22,7 +22,7 @@ type TransferSectionValues = (typeof TransferSection)[keyof typeof TransferSecti
|
|
|
22
22
|
* or to change their currently assigned bed
|
|
23
23
|
*/
|
|
24
24
|
export default function PatientTransferAndSwapWorkspace({
|
|
25
|
-
groupProps: { wardPatient },
|
|
25
|
+
groupProps: { wardPatient, relatedTransferPatients },
|
|
26
26
|
closeWorkspace,
|
|
27
27
|
}: WardPatientWorkspaceDefinition) {
|
|
28
28
|
const { t } = useTranslation();
|
|
@@ -31,6 +31,7 @@ export default function PatientTransferAndSwapWorkspace({
|
|
|
31
31
|
|
|
32
32
|
const props: PatientAdmitOrTransferFormProps = {
|
|
33
33
|
wardPatient,
|
|
34
|
+
relatedTransferPatients,
|
|
34
35
|
onSuccess: async () => {
|
|
35
36
|
await closeWorkspace({ discardUnsavedChanges: true });
|
|
36
37
|
closeWorkspaceGroup2();
|