Facility Organization
A facility organization is a department, team, or group inside a single facility — Cardiology, the Emergency Ward, the night-shift nursing team. It is how one facility is divided internally so that staff, patients, and resources can be grouped, and so that access can be granted to a part of the facility rather than the whole of it.
What it represents
A facility organization is the facility-scoped form of the organization primitive (FacilityOrganization). It carries a name and description, a place in the facility's internal tree, a type, and a list of member users — each with the role they hold.
The distinction from an instance-wide organization is one of scope. An instance organization is a deployment-level grouping — a hospital network, a governance body, a user group — that lives above any single facility. A facility organization exists only inside one facility and is deleted with it. Think of the instance organization as "who operates across the system" and the facility organization as "how one building is divided up inside."
Types
A facility organization's type describes the kind of unit it is within the facility.
| Type | What it is |
|---|---|
root | The system-generated unit named Administration, one per facility, created with the facility; cannot be edited or deleted, and no unit can be created under it |
dept | A department — a major functional division such as Cardiology or Radiology |
team | A working team within the facility, often nested under a department |
role | A facility-scoped user group, used to grant a shared role to a set of staff |
other | Any grouping that does not fit the categories above |
dept and team carry the everyday structure of a hospital; role provides facility-level user groups (the facility-scoped counterpart of an instance role organization).
How it is structured
Facility organizations form a tree. Every facility is created with a single root unit, named Administration. Departments, teams, and groups do not sit under Administration: Care does not allow any unit to be created under it. A department is created at the top level of the facility, beside Administration, and a department can itself contain sub-teams, several levels deep.
Administration (root) no units under it
Department (dept) → Team (team)
Department (dept) → Team (team)

A unit's name must be unique among its siblings — the units sharing its parent — but the same name can be reused in a different branch of the tree.
The tree is what makes access manageable: a permission granted in a department reaches every unit nested under it without being re-granted at each level. Because no unit sits under Administration, a role in Administration does not reach a department through the tree. Whether it counts depends on the action. Care counts a role in Administration for every encounter in the facility, and for managing departments and their members. Care does not count it for creating or changing a workspace that belongs to a department: that needs a role in the department or in a unit above it. Equally, a department "sees" only its own caseload, because patients and resources are attached at or below that department's node — never above it.
How it connects
- Facility — every facility organization belongs to exactly one facility and shares its lifetime.
- Encounters — an encounter is scoped to one or more responsible facility organizations. This is the link that decides who can reach a patient's encounter: a clinician's role in a responsible department (or any unit above it, or in Administration) is what grants access to that encounter and the clinical data recorded in it.
- Users & roles — staff are added as members with a role, which is how Care decides what each person may do within that unit and the units beneath it.
- Locations — physical locations such as wards and beds are modelled separately; a facility organization groups people and access, not rooms (though an encounter's current location also contributes to who can reach it).
Permissions
Access to facility organizations is governed by the permissions below. The roles listed are the system (default) roles that carry each permission; a deployment may bind these to its own roles. A permission held on a parent unit applies to every unit nested under it. To edit or delete a unit, create a unit under it, or manage its members, the permission also counts when it is held in Administration.
| Permission | Description | System Roles |
|---|---|---|
can_create_facility_organization | Create a new department or team beneath an existing unit | Facility Admin |
can_view_facility_organization | See a facility's organizations and where they sit in the tree | Facility Admin, Staff, Doctor, Administrator, Nurse, Volunteer |
can_manage_facility_organization | Change a unit's name, description, metadata, and similar details | Facility Admin, Administrator |
can_delete_facility_organization | Remove a facility organization | Facility Admin |
can_list_facility_organization_users | See who belongs to a facility organization | Facility Admin, Staff, Doctor, Administrator, Nurse |
can_manage_facility_organization_users | Add, remove, and assign roles to users in a facility organization | Facility Admin, Administrator |
Related
- Reference: Organization (technical)
- Concept: Organization · Facility · Encounter · Location