# Terminology demonstrator plan

Status: fixtures defined, 2026-12-04. No terminology server has been deployed and no case has been executed.

## Scope

Extend the EHRbase–DHIS2 demonstrator with a synthetic blood-pressure observation. The demonstrator
must not provide clinical advice, use real patient data or publish restricted terminology content.

## Steps

1. Choose a synthetic or explicitly redistributable code system for the fixture.
2. Record a synthetic encounter with systolic and diastolic observations and UCUM units.
3. Validate the codes against the fixture service.
4. Persist the composition in EHRbase with code system and version metadata.
5. Retrieve the composition and map it to a FHIR Observation.
6. Validate the FHIR representation against a pinned profile.
7. Derive a synthetic aggregate for DHIS2 without identifiers.
8. Correct the record and verify version history and audit.

## Fixtures

`fixtures/synthetic-terminology.json` defines synthetic codes, a value set and a concept map; `fixtures/cases.json` defines 13 protocol cases. Validate with `python3 tools/check_terminology_fixtures.py`. No restricted content.

## Fixtures to cover

- Valid and invalid codes.
- Wrong code system and wrong version.
- Active and inactive concepts.
- Value-set membership and missing translation.
- One-to-many and non-equivalent mappings.
- Service unavailable, stale cache and unauthorized access.

## Evidence

Record software versions, specification versions, terminology edition, commands, sanitized
request/response examples, expected and actual results, and limitations. Use `data/assessments.json`
only after a test is executed. No result is claimed until then.
