Skip to content

[docs] Reference layer for 3.1: new and refreshed reference pages - #139

Open
billjohnc wants to merge 2 commits into
mainfrom
docs/reference-layer-3-1-3925
Open

billjohnc wants to merge 2 commits into
mainfrom
docs/reference-layer-3-1-3925

Conversation

@billjohnc

Copy link
Copy Markdown
Contributor

Fills the gaps in the Care 3.1 reference layer ("How is it built?"). Text only, 3.1 only, references/ only. No concept, flow, 3.0 or sidebar file changes (references are autogenerated in the sidebar).

Source of truth: care develop ddfd840 (23 Nov). care_fe develop abf394594 only where a screen decides what a field means; the pages say when a rule is care_fe-only.

New reference pages (6)

Page Covers
clinical/immunization.mdx Immunization: fields, status and reason enums, specs, permissions, filters
clinical/immunization-recommendation.mdx ImmunizationRecommendation (separate model): recommendation tree, forecast status, apply_policy
definitions/immunization-policy.mdx ImmunizationPolicy (separate model): facility vs instance policies, template shape and validation
medications/medication-return.mdx Medication returns: a DeliveryOrder with a patient and SupplyDelivery items; status rules, stock, refund invoice
platform/action.mdx Configurable actions: Action configurations, the action JSON that questionnaires share, contexts, instructions, where actions run
platform/workspace.mdx Workspace and its sharing and user-default models: scopes, visibility, endpoints, care_fe template shape

Refreshed reference pages (18)

These are every 3.1 reference page on main that no open PR #102-#138 touches, minus references/supply/* and platform/report.mdx (other sessions own those). All were last changed on 17 Jun.

  • access-governance: organization, permission, permission-association, role. Care seeds one Admin role with the ROLE_ORG context: the two Admin declarations in role.py sync onto one row by name. It is not a facility role. RoleAssociation is unused at ddfd840.
  • billing: account (total_gross comes from invoices), charge-item (write statuses, the status lock while an item is on an invoice, the cancel flow, change_account), payment-reconciliation (update changes only the base fields; cancel and change-account actions).
  • facility: device (form responses, care_type, history permissions), facility-config (the invoice number is a Python expression), facility-flag, healthcare-service, location (inventory_usage, has_beds, has_sub_locations, tags; the organization cascade is synchronous; depth limit).
  • foundation: base-model (nothing writes history; value sets bind through ValueSetBoundCoding).
  • platform: favorites, meta-artifact, resource-category (delete endpoint, monetary components).
  • scheduling: booking (create_appointment flow, revisit charges, tags), schedule (3.1 encounter defaults, date rules, slots stored on demand).

access-governance/user.mdx is owned by #136, which already removes qualification, doctor_experience_commenced_on, doctor_medical_council_registration and weekly_working_hours.

Links to add after merge

Left out because the targets exist only in open PRs:

Those PRs' concept pages can link back to the new references.

For other PRs

Product issues found (recorded, not filed)

  • ?favorite_list= on the immunization policy list fails, because the viewset adds FavoritesFilter without FAVORITE_RESOURCE.
  • The two Admin role declarations collapse into one ROLE_ORG row that also holds the facility permissions of ADMIN_ROLE.
  • A charge item create with performer_actor likely fails: the check reads the facility before it is set.
  • The booking list's organization_ids path calls the authorization handler with the wrong arguments.
  • execute_action does not check the configuration's facility, and action configuration writes skip ActionEvaluator.authorize().
  • Workspace get_organizations uses the wrong read spec. get_user_default_attributes can return deleted workspaces.

Checks

  • npm run build passes for en and ml.
  • MDX corruption scan is clean.

🤖 Generated with Claude Code

billjohnc and others added 2 commits November 30, 2026 16:23
…and workspaces

New reference pages, read from care develop ddfd840:
- clinical/immunization.mdx (Immunization)
- clinical/immunization-recommendation.mdx (ImmunizationRecommendation, apply_policy)
- definitions/immunization-policy.mdx (ImmunizationPolicy and its template)
- medications/medication-return.mdx (patient returns on DeliveryOrder/SupplyDelivery, refund invoice)
- platform/action.mdx (Action configurations, action JSON, evaluator, registries)
- platform/workspace.mdx (Workspace, sharing models, user defaults)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checked 18 reference pages, last changed on 17 Jun, against care develop
ddfd840 and fixed what changed or was wrong:
- access-governance: organization, permission, permission-association, role
- billing: account, charge-item, payment-reconciliation
- facility: device, facility-config, facility-flag, healthcare-service, location
- foundation: base-model
- platform: favorites, meta-artifact, resource-category
- scheduling: booking, schedule

Main corrections: one Admin role with the ROLE_ORG context (not a facility
role), RoleAssociation unused, account gross from invoices, charge item
write statuses and cancel flow, payment reconciliation create-only fields,
new location and schedule fields, resource category delete endpoint,
device form responses, base-model history unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: b94a6cd
Status: ✅  Deploy successful!
Preview URL: https://35ab0984.coredocs.pages.dev
Branch Preview URL: https://docs-reference-layer-3-1-392.coredocs.pages.dev

View logs

@billjohnc
billjohnc marked this pull request as ready for review December 1, 2026 05:42

This branch has not been deployed

No deployments
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