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 unit named Administration, one per facility, created with the facility; cannot be edited or deleted, and no unit can be created under it
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 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)

The Departments/Teams page of City General Hospital. The list on the left shows the top level of the facility: Endocrinology, Urology, Pharmacy, Laboratory, Emergency, General Medicine and the other units, with Administration, outlined, at the same level as them.

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.

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, 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, Staff, Doctor, Administrator, Nurse
can_manage_facility_organization_usersAdd, remove, and assign roles to users in a facility organizationFacility Admin, Administrator