@openmrs/esm-bed-management-app 9.2.1-pre.7136 → 9.2.1-pre.7137

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.
@@ -35,4 +35,4 @@ Assets:
35
35
  5910.js (300 KiB)
36
36
  4374.js (2.04 MiB)
37
37
 
38
- webpack 5.99.9 compiled with 1 warning in 140029 ms
38
+ webpack 5.99.9 compiled with 1 warning in 148427 ms
package/README.md CHANGED
@@ -1,18 +1,80 @@
1
1
  # Bed Management App
2
2
 
3
- A frontend module for managing beds in a facility. It allows creating
4
- wards and beds in those wards: Configuring beds and where they are located in the wards. It does not provide any functionality
5
- related to patients, such as assigning patients to beds. This provides a simple UI for setting up names of beds and where those beds can be found. Then the Ward App uses this information.
6
-
7
- So for example:
8
- * Hospital X
9
- * IPD
10
- * Ward ZZZZ
11
- * Bed 1
12
- * Bed 2
13
- * etc
14
-
15
- Requires [openmrs-module-bedmanagement](https://github.com/openmrs/openmrs-module-bedmanagement)
16
- to be installed on the OpenMRS server.
17
-
18
- See also the Ward App and it's helpful README here: [esm-ward-app](https://github.com/openmrs/openmrs-esm-patient-management/tree/main/packages/esm-ward-app) The Ward App offers the fuller UI for patient management across beds.
3
+ A frontend module for configuring and managing beds in a facility. This app provides the setup interface for bed types, bed tags, and bed creation within wards. It does **not** handle patient assignments—that functionality is provided by the [Ward App](../esm-ward-app).
4
+
5
+ ## Purpose
6
+
7
+ This app is used for **initial setup and configuration** of the bed management system. Use it to:
8
+
9
+ - Create and manage bed types (e.g., "Standard Maternity Bed", "ICU Bed")
10
+ - Create and manage bed tags (e.g., "Oxygen", "Isolation", "Wheelchair Accessible")
11
+ - Create beds and assign them to locations with row/column positions
12
+ - View bed summaries by location
13
+
14
+ ## Prerequisites
15
+
16
+ - [openmrs-module-bedmanagement](https://github.com/openmrs/openmrs-module-bedmanagement) must be installed on the OpenMRS server
17
+ - At least one Location must be tagged with "Admission Location" (or the configured tag name)
18
+
19
+ ## Setup Workflow
20
+
21
+ 1. **Configure Admission Location**: Ensure your ward location has the "Admission Location" tag
22
+ 2. **Create Bed Types**: Define bed types (e.g., `maternity-standard`, `maternity-labor-delivery`)
23
+ 3. **Create Bed Tags** (optional): Define tags for categorizing beds
24
+ 4. **Create Beds**: Add beds with bed numbers, types, and layout positions (row/column)
25
+ 5. **Use Ward App**: Assign patients to beds using the [Ward App](../esm-ward-app)
26
+
27
+ ## Configuration
28
+
29
+ The app can be configured via the frontend configuration:
30
+
31
+ ```typescript
32
+ {
33
+ admissionLocationTagName: "Admission Location" // Default: "Admission Location"
34
+ }
35
+ ```
36
+
37
+ This determines which location tag identifies wards that support bed management.
38
+
39
+ ## Key Features
40
+
41
+ - **Bed Types Management**: Create, edit, and delete bed types with name, display name, and description
42
+ - **Bed Tags Management**: Create, edit, and delete tags for categorizing beds
43
+ - **Bed Administration**: Create and edit beds with:
44
+ - Bed number (max 10 characters)
45
+ - Bed type assignment
46
+ - Row and column positions for layout visualization
47
+ - Location assignment
48
+ - Optional tag assignments
49
+ - **Bed Summary**: View beds grouped by location with occupancy statistics
50
+
51
+ ## What This App Does NOT Do
52
+
53
+ - ❌ Assign patients to beds (use [Ward App](../esm-ward-app))
54
+ - ❌ Perform bed swaps or transfers (use [Ward App](../esm-ward-app))
55
+ - ❌ Manage patient admissions (use [Ward App](../esm-ward-app))
56
+ - ❌ Display bed layouts with patients (use [Ward App](../esm-ward-app))
57
+
58
+ ## Related Modules
59
+
60
+ - **[Ward App](../esm-ward-app)**: Provides patient management, bed assignments, transfers, and bed layout visualization
61
+ - **[Backend Bed Management Module](https://github.com/openmrs/openmrs-module-bedmanagement)**: Provides REST APIs and business logic
62
+
63
+ ## Example: Setting Up a Maternity Ward
64
+
65
+ 1. Create bed types:
66
+ - `maternity-standard` (Display: "MAT-STD")
67
+ - `maternity-labor-delivery` (Display: "LAB-DEL")
68
+ - `maternity-postpartum` (Display: "POSTPART")
69
+
70
+ 2. Create bed tags (optional):
71
+ - `Oxygen`
72
+ - `Isolation`
73
+ - `Wheelchair Accessible`
74
+
75
+ 3. Create beds:
76
+ - Bed M-101: Type `maternity-standard`, Row 1, Column 1
77
+ - Bed M-102: Type `maternity-standard`, Row 1, Column 2
78
+ - Continue for all beds...
79
+
80
+ 4. Use Ward App to assign patients to these beds during daily operations.
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"bed-management"}],"extensions":[{"component":"adminCardLink","name":"bed-management-admin-card-link","slot":"system-admin-page-card-link-slot"},{"component":"adminLeftPanelLink","name":"bed-administration-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"bedTypeLeftPanelLink","name":"bed-type-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"bedTagLeftPanelLink","name":"bed-tag-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"summaryLeftPanelLink","name":"bed-management-home-dashboard-link","slot":"bed-management-left-panel-slot","order":0}],"modals":[{"name":"delete-bed-tag-modal","component":"deleteBedTagModal"},{"name":"delete-bed-type-modal","component":"deleteBedTypeModal"},{"name":"edit-bed-tag-modal","component":"editBedTagModal"},{"name":"edit-bed-type-modal","component":"editBedTypeModal"},{"name":"new-bed-tag-modal","component":"newBedTagModal"},{"name":"new-bed-type-modal","component":"newBedTypeModal"}],"workspaces":[{"name":"bed-form-workspace","title":"Add or edit bed","component":"bedFormWorkspace","type":"workspace"}],"version":"9.2.1-pre.7136"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"bed-management"}],"extensions":[{"component":"adminCardLink","name":"bed-management-admin-card-link","slot":"system-admin-page-card-link-slot"},{"component":"adminLeftPanelLink","name":"bed-administration-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"bedTypeLeftPanelLink","name":"bed-type-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"bedTagLeftPanelLink","name":"bed-tag-left-panel-link","slot":"bed-management-left-panel-slot"},{"component":"summaryLeftPanelLink","name":"bed-management-home-dashboard-link","slot":"bed-management-left-panel-slot","order":0}],"modals":[{"name":"delete-bed-tag-modal","component":"deleteBedTagModal"},{"name":"delete-bed-type-modal","component":"deleteBedTypeModal"},{"name":"edit-bed-tag-modal","component":"editBedTagModal"},{"name":"edit-bed-type-modal","component":"editBedTypeModal"},{"name":"new-bed-tag-modal","component":"newBedTagModal"},{"name":"new-bed-type-modal","component":"newBedTypeModal"}],"workspaces":[{"name":"bed-form-workspace","title":"Add or edit bed","component":"bedFormWorkspace","type":"workspace"}],"version":"9.2.1-pre.7137"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-bed-management-app",
3
- "version": "9.2.1-pre.7136",
3
+ "version": "9.2.1-pre.7137",
4
4
  "description": "Bed management app for OpenMRS 3",
5
5
  "browser": "dist/openmrs-esm-bed-management-app.js",
6
6
  "main": "src/index.ts",