Skip to content

Add Department and Location docs for 3.1 - #78

Merged
aravindm4 merged 1 commit into
mainfrom
docs/facility-department-location
Aug 11, 2026
Merged

Add Department and Location docs for 3.1#78
aravindm4 merged 1 commit into
mainfrom
docs/facility-department-location

Conversation

@aravindm4

Copy link
Copy Markdown
Member

What

Publishes the Department and Location documentation from care_docs into the docs site (version 3.1).

Department (new)

  • New concept at concepts/facility/department.mdx
  • Four flows under flows/facility/department/:
    1. Create a department
    2. Update a department
    3. Add users to a department
    4. Delete a department

Location

  • Replaces the existing concepts/facility/location.mdx with the authored version
  • Six flows under flows/facility/location/:
    1. Create a location
    2. View locations
    3. Edit a location
    4. Reorder locations
    5. Delete a location
    6. Manage a location's organizations

Both sit as sibling module categories under Flows > Facility, beside the existing Facility module.

Notes for reviewers

  • The Location concept is replaced, not extended. The authored version covers Definition, Key Attributes, the location hierarchy, Permissions and Related.
  • The Location concept page keeps the authored title "Locations" while the file and route stay singular (location), matching the sibling concepts Facility, Device and Healthcare Service.
  • Department is new; it did not previously exist as a concept page. Note that Care models departments as facility organizations, so it sits alongside the existing concepts/access-governance/facility-organization.mdx.

Verification

Docusaurus build passes for both en and ml locales.

Publish the Department concept and four flows, and the Location concept
and six flows, from the care_docs sources. Both sit as module
categories under Flows > Facility.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: abf4b95
Status: ✅  Deploy successful!
Preview URL: https://f6e9c4b5.coredocs.pages.dev
Branch Preview URL: https://docs-facility-department-loc.coredocs.pages.dev

View logs

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated by Docs Reviewer for #78 · opus50 · 114.4 AIC · ⌖ 9.61 AIC · ⊞ 11K


## Definition

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checklist item 7 (FHIR): linking the FHIR resource page is right, but narrating the mapping is not. Please drop the final sentence — "Care models a department on the FHIR Organization resource." The link on department already carries that.

---

# Location
# Locations

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mirroring (conventions, "Mirror 3.0 → 3.1", checklist item 11): this rewrite lands only in version-3.1. versioned_docs/version-3.0/concepts/facility/location.mdx still holds the old page, so the two versions diverge. Please mirror this file — and the new concepts/facility/department.mdx — into version-3.0.

| Permission | Access |
| --- | --- |
| Can Create/Update Facility Locations | Lets you link and unlink departments on the location. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Factual hygiene (checklist 16): linking and unlinking organizations on a location is gated by its own permission, not can_write_facility_locations. care/security/permissions/location.py defines Can List Facility Location Organizations and Can Create/Update Facility Location Organizations (Facility Admin, Admin, Staff). Please list those two here instead of "Can Create/Update Facility Locations".

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.
- Flow: [Create a location](../../flows/facility/location/create-location.mdx)
- Flow: [View locations](../../flows/facility/location/view-locations.mdx)
- Flow: [Edit a location](../../flows/facility/location/edit-location.mdx)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Related list drops the technical reference link. The concept skill requires Related to always carry the matching reference, and references/facility/location.mdx exists. Please re-add - Reference: [Location](../../references/facility/location.mdx), plus the sibling concept links that were removed (Facility, Facility organization, Encounter).

@aravindm4
aravindm4 merged commit a0dd315 into main Aug 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant