Skip to content

Commit a0dd315

Browse files
authored
Merge pull request #78 from ohcnetwork/docs/facility-department-location
Add Department and Location docs for 3.1
2 parents 290c444 + abf4b95 commit a0dd315

15 files changed

Lines changed: 804 additions & 49 deletions
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
sidebar_position: 2
3+
---
4+
5+
# Department
6+
7+
## Definition
8+
9+
A **[department](https://build.fhir.org/organization.html)** in Care is a group inside a facility, such as a ward, a clinical team, or an administrative unit. A department can hold sub-departments, so the departments of a facility form a hierarchy. Care models a department on the FHIR Organization resource.
10+
11+
Note: Care creates one root department named Administration for every new facility. You cannot create, edit, or delete this root department from the settings screens. You also cannot create a department under it. The person who creates the facility becomes the Facility Admin of the root department.
12+
13+
Note: Your deployment sets the maximum nesting depth and the maximum number of departments for each facility.
14+
15+
## Key Attributes
16+
17+
| Components | What it captures |
18+
| --- | --- |
19+
| Name | The name of the department. This is required. |
20+
| Description | A description of the department. This is optional. |
21+
| Type | The kind of department. Select Department or Team. |
22+
| Parent department | The department that this department sits under. A department with no parent is a top-level department in the facility. |
23+
| Active | Whether the department is active. |
24+
25+
### Type
26+
27+
Type records the kind of department. You select the type when you create the department, and you can change it later. Care offers these two values:
28+
29+
- Department
30+
- Team
31+
32+
Note: Care keeps other department types for its own use, such as the root Administration department. Care does not offer these types on the department settings screens.
33+
34+
## Permissions
35+
36+
| Permission | What it allows |
37+
| --- | --- |
38+
| Can Create Facility Organizations | Create a new department. The Facility Admin role holds this permission. |
39+
| Can Manage Facility Organizations | Edit the name, description, and type of a department. The Facility Admin and Administrator roles hold this permission. |
40+
| Can Delete Facility Organizations | Delete a department. The Facility Admin role holds this permission. |
41+
| Can List Users in a Facility Organizations | See the members of a department. The Facility Admin, Admin, Staff, Doctor, Administrator, and Nurse roles hold this permission. |
42+
| Can Manage Users in a Facility Organization | Add a member to a department, remove a member from it, or change the role of a member in it. The Facility Admin and Administrator roles hold this permission. |
43+
44+
Note: A role that you grant on a department also applies to the sub-departments of that department.
45+
46+
## Related
47+
48+
- Flow: [Create a department](../../flows/facility/department/create-department.mdx)
49+
- Flow: [Update a department](../../flows/facility/department/update-department.mdx)
50+
- Flow: [Add users to a department](../../flows/facility/department/add-users-to-department.mdx)
51+
- Flow: [Delete a department](../../flows/facility/department/delete-department.mdx)
52+
- Concept: [Facility](../../concepts/facility/facility.mdx)

versioned_docs/version-3.1/concepts/facility/location.mdx

Lines changed: 70 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,77 +2,98 @@
22
sidebar_position: 4
33
---
44

5-
# Location
5+
# Locations
66

7-
A **location** is a physical place inside a facility where care happens or resources sit — a building, a wing, a ward, a room, or a single bed. Locations form a nested tree that mirrors the real geography of your facility, so the platform can answer questions like "which bed is this patient in?" and "who is allowed into this ward?".
7+
## Definition
88

9-
## What it represents
9+
A **[location](https://build.fhir.org/location.html)** in Care is a physical place inside a facility. A location can be a building, a ward, a room, or a bed. Locations sit inside one another and form a hierarchy. For example, a building contains wards, a ward contains rooms, and a room contains beds.
1010

11-
In Care's FHIR-aligned model, a location maps to the **Location** resource. Each location records:
11+
## Key Attributes
1212

13-
- **What kind of place it is** — a name, a description, and a physical form such as ward, room, or bed
14-
- **Where it sits in the tree** — its parent and children, since every place can nest inside a larger one and hold smaller ones, with no fixed limit on depth
15-
- **Whether it is usable** — and, for beds and rooms, a finer operational state (occupied, unoccupied, housekeeping, contaminated, isolated, closed)
16-
- **Who is in it** — the encounter, if any, currently occupying the place (most meaningful for a bed)
17-
- **Who may work there** — the organizations granted access to this part of the facility
13+
| Components | What it captures |
14+
| --- | --- |
15+
| Name | The name of the location. You must enter a name. |
16+
| Description | A description of the location. This is optional. |
17+
| Location Form | The type of place that the location represents. You must choose a Location Form when you create the location. You cannot change it later. |
18+
| Status | The state of the location. You must choose a status. |
19+
| Operational Status | The current use of the location. You must choose an operational status. |
20+
| Parent location | The location that this location sits under in the hierarchy. You set the parent location when you create the location. |
21+
| Order among siblings | The position of the location among the locations under the same parent location. |
22+
| Organizations | The facility departments that you link to the location. |
23+
| Availability | Whether the location is Available or Reserved. |
24+
| Current Encounter | The encounter of the patient who uses this location now. |
1825

19-
A location is a *place*, not a *department* or a *team*. A ward as a physical space is a location; the unit of staff and responsibility that runs it is an [organization](../access-governance/organization.mdx). The two are linked, but they are different primitives — you nest places inside places, and you grant an organization access to a place.
26+
### Location Form
2027

21-
## Classification
28+
The Location Form tells Care what type of place the location is. Choose one of these forms:
2229

23-
Two attributes describe what a location *is*, and they are fixed when it is created.
30+
- Site
31+
- Building
32+
- Wing
33+
- Ward
34+
- Level
35+
- Corridor
36+
- Room
37+
- Bed
38+
- Vehicle
39+
- House
40+
- Cabinet
41+
- Road
42+
- Area
43+
- Jurisdiction
44+
- Virtual
2445

25-
- **Mode** separates a *kind* of place from a concrete *instance* of one. A `kind` is a class of location — "a ward", "a building" — and can contain children. An `instance` is one specific place — "Bed 12", "Room 4" — and is a leaf: instances cannot have children.
26-
- **Form** is the physical type, drawn from a standard FHIR list: site, building, wing, ward, level, corridor, room, bed, vehicle, house, and more. This is what lets a deployment model the difference between a wing and the beds inside it.
46+
### Parent location and hierarchy
2747

28-
Beds are not a separate concept in Care — a bed is simply a location whose form is `bed` and whose mode is `instance`. The whole facility map, from building down to bed, is one uniform tree.
48+
A location with no parent location is a top-level location for the facility. Only some Location Forms can hold child locations. A Ward can hold child locations. A Bed cannot hold child locations.
2949

30-
## Lifecycle
50+
Note: You must choose a parent location before you create a Bed.
3151

32-
A location's own status is deliberately simple — it describes whether the place exists and is usable, not whether someone is in it.
52+
Note: Your deployment sets the limit for the depth of the hierarchy. Your deployment also sets the limit for the total number of locations in one facility.
3353

34-
```text
35-
active → inactive
36-
(unknown)
37-
```
54+
You can change the order of the locations under the same parent location. See [Reorder locations](../../flows/facility/location/reorder-locations.mdx).
3855

39-
- **active** — the location is live and can be used for encounters and assignments
40-
- **inactive** — retired from routine use but kept for history; it does not disappear
41-
- **unknown** — status has not been determined
56+
### Organizations
4257

43-
Separately, beds and rooms carry an **operational status** that changes far more often: occupied, unoccupied, housekeeping, contaminated, isolated, or closed. This is the day-to-day signal a bed-management board reads, and it is distinct from the location simply being `active`.
58+
Organizations are the facility departments that you link to the location. The linked departments control which members can access the location. See [Manage a location's organizations](../../flows/facility/location/manage-location-organizations.mdx).
4459

45-
## How it connects
60+
### Availability
4661

47-
Locations are the spatial backbone that other primitives attach to.
62+
Care sets the availability of the location. The location is Reserved when a patient is assigned to it. In all other cases the location is Available. You cannot set the availability yourself.
4863

49-
- **Encounters** occupy locations over time. When a patient is admitted to a bed, a record captures *which* place, *when* occupancy began, and *whether* it is planned, active, reserved, or completed. From these records the platform derives a location's current encounter and whether it is free or reserved — which is how a bed knows it is taken.
50-
- **Organizations** are granted access to locations. Giving a [facility organization](../access-governance/facility-organization.mdx) access to a ward lets every user under that organization work in the ward and its descendants, through the role they hold. Access flows *downward*: grant it at the building and it reaches every room and bed inside.
51-
- **Facility** owns the whole tree. Every location belongs to exactly one [facility](../facility/facility.mdx), and the root of its tree sits at the facility level.
64+
## Status
5265

53-
One important consequence of the tree: access and other inherited properties cascade to descendants asynchronously. When you change who can reach a ward, the rooms and beds beneath it settle a moment later rather than instantly — expect it to be eventually consistent, not immediate.
66+
| Status | Description |
67+
| --- | --- |
68+
| Active | The facility uses the location. |
69+
| Inactive | The facility does not use the location. |
70+
| Unknown | The state of the location is not known. |
5471

55-
## Permissions
72+
## Operational Status
5673

57-
Access to locations is governed by facility-level permissions. Viewing the location tree is open to most clinical roles; changing the tree or its access grants is reserved for administrators and senior staff.
74+
| Operational Status | Description |
75+
| --- | --- |
76+
| Closed | The location is closed for use. |
77+
| Housekeeping | Housekeeping staff prepare the location. |
78+
| Occupied | A patient uses the location. |
79+
| Unoccupied | No patient uses the location. |
80+
| Isolated | The location is under isolation. |
81+
| Contaminated | The location is contaminated. |
5882

59-
| Permission | Description | System Roles |
60-
| --- | --- | --- |
61-
| `can_write_facility_locations` | Create, edit, or delete a location, and add or remove an organization's access to one (add a ward, room, or bed; change status; grant org access) | Facility Admin, Admin, Staff |
62-
| `can_create_facility_organization` | Create a root location (one with no parent) at the top of the facility tree | Facility Admin |
63-
| `can_list_facility_locations` | View a facility's locations, the location tree, and which organizations have access to a location | Admin, Doctor, Facility Admin, Administrator, Nurse, Staff, Pharmacist |
64-
| `can_manage_facility_organization` | Grant or change an organization's access to a location | Facility Admin, Administrator |
65-
| `can_write_encounter` | Assign or move an encounter (a patient) to a location, such as placing them in a bed | Admin, Doctor, Nurse, Facility Admin |
83+
## Permissions
6684

67-
Roles are granted through facility and organization memberships, and because location access follows the tree, a permission held at a parent location cascades down to everything nested beneath it.
85+
| Permission | What it allows |
86+
| --- | --- |
87+
| Can List Facility Locations | View locations. |
88+
| Can Create/Update Facility Locations | Create, edit, reorder, and delete locations. |
6889

69-
## Related
90+
Note: To manage the organizations of a location, you also need permission to manage the facility department that you link or unlink.
7091

71-
- Reference: [Location (technical)](../../references/facility/location.mdx)
72-
- Concept: [Facility](../facility/facility.mdx)
73-
- Concept: [Facility organization](../access-governance/facility-organization.mdx)
74-
- Concept: [Encounter](../clinical/encounter.mdx)
75-
76-
## FHIR reference
92+
## Related
7793

78-
Care's location aligns with the FHIR [Location](https://build.fhir.org/location.html) resource, including its mode (`kind` / `instance`), physical-form codes, and operational-status codes for beds and rooms.
94+
- Flow: [Create a location](../../flows/facility/location/create-location.mdx)
95+
- Flow: [View locations](../../flows/facility/location/view-locations.mdx)
96+
- Flow: [Edit a location](../../flows/facility/location/edit-location.mdx)
97+
- Flow: [Reorder locations](../../flows/facility/location/reorder-locations.mdx)
98+
- Flow: [Delete a location](../../flows/facility/location/delete-location.mdx)
99+
- Flow: [Manage a location's organizations](../../flows/facility/location/manage-location-organizations.mdx)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"label": "Department",
3+
"position": 2,
4+
"key": "facility-department-flows"
5+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
# Add users to a department
6+
7+
## Overview
8+
9+
This flow describes how to manage the members of a [department](../../../concepts/facility/department.mdx) in Care. You can add a user, change a member's role, and remove a member.
10+
11+
## Pre-requisites
12+
13+
- The department is set up in the facility.
14+
- The user has an account in Care. If the user has no account, you can create the account during this flow.
15+
- You have the permissions listed below.
16+
17+
## Permissions
18+
19+
| Permission | Access |
20+
| --- | --- |
21+
| Can List Users in a Facility Organizations | Lets you view the members of a department. Facility Admin, Admin, Staff, Doctor, Administrator, and Nurse hold this permission. |
22+
| Can Manage Users in a Facility Organization | Lets you add a member, change a member's role, or remove a member. Facility Admin and Administrator hold this permission. |
23+
24+
Note: You cannot give a member a role that carries more permissions than your own effective permissions on that department and its parent departments. Care blocks the attempt.
25+
26+
## Steps
27+
28+
### 1. Open the Users tab of the department
29+
30+
Open the facility. Select Settings. Select Departments. Open the department. Select the Users tab.
31+
32+
### 2. Add a user to the department
33+
34+
Select Link User. Search for the user. Select the user. Under Select Role, select a role. Select Add to Organization.
35+
36+
Note: To link a service account, select the Service accounts tab. Then select Link Service Account.
37+
38+
Note: If the user has no account in Care, select Add User. Complete the user form. Care then opens the Link User form with the new user selected.
39+
40+
### 3. Change a member's role
41+
42+
Find the member in the list. Select Edit next to the member's name. Care opens the Edit User Role sheet. Under Select New Role, select the new role. Select Update Role.
43+
44+
Note: You must select a role different from the member's current role.
45+
46+
Note: Care blocks a role change that removes the last Facility Admin from the facility's root department.
47+
48+
### 4. Remove a member
49+
50+
Find the member in the list. Select Edit next to the member's name. In the sheet that opens, select Remove User. Select Remove to confirm.
51+
52+
Note: Care blocks the removal of the last member of the facility's root department.
53+
54+
## Expected Outcome
55+
56+
- Care shows the new member in the Users tab of the department, with the role of the member.
57+
- Care shows a success message when you add a member, change a member's role, or remove a member.
58+
- Care removes the member from the list when you remove the member.
59+
60+
## Related
61+
62+
Concepts:
63+
64+
- [Department](../../../concepts/facility/department.mdx)
65+
66+
Flows:
67+
68+
- [Create a department](./create-department.mdx)
69+
- [Update a department](./update-department.mdx)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Create a department
6+
7+
## Overview
8+
9+
This flow describes how to create a new [department](../../../concepts/facility/department.mdx) in a facility in Care.
10+
11+
## Pre-requisites
12+
13+
- You are a member of the facility.
14+
- If you create the department under an existing department (a sub-department), open that parent department first.
15+
- You have the permission listed below.
16+
17+
## Permissions
18+
19+
| Permission | Access |
20+
| --- | --- |
21+
| Can Create Facility Organizations | Lets you create a department. Held by Facility Admin. |
22+
23+
## Steps
24+
25+
### 1. Open the departments settings
26+
27+
Open the facility. Select Settings. Select Departments.
28+
29+
### 2. Start the new department
30+
31+
To create a top-level department, select Add Department/Team from the Departments list.
32+
33+
To create a sub-department, open the parent department first. Then select Add Department/Team on the page of that department.
34+
35+
Note: You cannot create a department under the root Administration department.
36+
37+
### 3. Complete the form
38+
39+
Care opens the Create Department/Team form.
40+
41+
| Components | What it captures |
42+
| --- | --- |
43+
| Name | The name of the department. Required. |
44+
| Type | Choose Department or Team. |
45+
| Description | A description of the department. Optional. |
46+
47+
Note: Care does not accept a duplicate department name. The name must be different from the names of the other departments at the same level under the same top-level department.
48+
49+
Note: Your deployment sets a maximum nesting depth. Your deployment also sets a maximum total number of departments per facility. If you reach either limit, Care blocks the creation.
50+
51+
### 4. Save the department
52+
53+
Select Create Organization.
54+
55+
## Expected Outcome
56+
57+
- Care creates the department under the facility, or under the parent department you selected.
58+
- Care shows a success message.
59+
60+
## Related
61+
62+
Concepts:
63+
64+
- [Department](../../../concepts/facility/department.mdx)
65+
66+
Flows:
67+
68+
- [Update a department](./update-department.mdx)
69+
- [Add users to a department](./add-users-to-department.mdx)

0 commit comments

Comments
 (0)