# Identity healthcare profile

Upstream: [`govstack-identity`](https://specs.govstack.global/identity) — unversioned current page;
published variants include `identity-1.0`, `identity-1.0.1`, `identity-23q4`, `identity-23q4.1`,
`identity-development`. No version or maturity is asserted.

## Healthcare need

Patients, practitioners, caregivers and system callers must be identified well enough to deliver and
protect care. Identity is not self-contained: a valid login says nothing about whether a person may
see a clinical record.

## What upstream covers

Authentication, identity claims and federation of identity providers. It does not define clinical
patient matching, care relationships or clinical authorization.

## Added healthcare constraints

- **Authentication is not authorization** (`OCC-GOVSTACK-IDENTITY-R001`): role, purpose and care
  context must be evaluated before clinical access.
- **Patient matching is not national identity** (`OCC-IDENTITY-R001`): matching must handle
  duplicates, missing identifiers and emergency care; an unmatched patient still receives care.
- Caregiver, proxy and guardian access require explicit, auditable relationships.
- Emergency access is time-bound, justified and reviewed.

## Security and privacy

- National identifiers increase correlation risk; use them only with a lawful basis and minimum
  disclosure.
- Identity attributes should be minimised at each service boundary.
- Access to clinical information must be auditable independently of the identity provider.
- Federation must not make one identity provider a single point of clinical failure.

## Upstream or local

Authentication and identity claims belong upstream. Clinical matching, care relationships and
clinical authorization are healthcare-specific and belong in this profile and the clinical services.

## Evidence

None. EHRbase's basic-auth demo is not an identity integration. No patient-matching test exists.
