Skip to main content
Version: 3.1

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.

TypeWhat it is
rootThe system-generated top node, one per facility, created with the facility; cannot be edited or deleted
deptA department — a major functional division such as Cardiology or Radiology
teamA working team within the facility, often nested under a department
roleA facility-scoped user group, used to grant a shared role to a set of staff
otherAny 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, and departments, teams, and groups hang beneath it as nested children — a department can itself contain sub-teams, several levels deep.

Facility root → 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 high in the tree reaches every unit nested under it without being re-granted at each level. 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) 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. Because the tree cascades downward, a permission held on a parent unit applies to every unit nested under it.

PermissionDescriptionSystem Roles
can_create_facility_organizationCreate a new department or team beneath an existing unitFacility Admin
can_view_facility_organizationSee a facility's organizations and where they sit in the treeFacility Admin, Admin, Staff, Doctor, Administrator, Nurse, Volunteer
can_manage_facility_organizationChange a unit's name, description, metadata, and similar detailsFacility Admin, Administrator
can_delete_facility_organizationRemove a facility organizationFacility Admin
can_list_facility_organization_usersSee who belongs to a facility organizationFacility Admin, Admin, Staff, Doctor, Administrator, Nurse
can_manage_facility_organization_usersAdd, remove, and assign roles to users in a facility organizationFacility Admin, Administrator