Repository navigation
feat(seed): the one demo seed fills every viewer surface, and the journeys run on it (#6663) - #6695
Merged
Merged
Conversation
…id the validator refuses (#6680) eprescription-fhir, ereferral, international-patient-summary and treat-registry-report carried "/.*/" on an ACTIVITY whose template constrains action_archetype_id to a pattern, which the validator holds since #5951. They are regenerated through scripts/generate-ckm-examples.sh against the server of this tree; the other twelve examples stay as they are. The validation golden records ereferral with the 12 passes every clean example reports, in place of the 27 its pattern finding added.
…rneys run on it (#6663)
rubentalstra
enabled auto-merge
November 26, 2026 13:05
6 tasks
…e-id' into feat/seed-every-viewer-surface
Member
Author
…t own it (#6663) The e2e_adl2 scenes upload and delete cnf_adl2_versioned 1.0.0 and 1.1.0 themselves, so a seed that stores them, and commits on 1.1.0, makes their cleanup a 409. The seed keeps its other three ADL 2 templates.
Member
Author
|
The seed now runs to the end in every ui-e2e shard: pgp signing, a signed checkpoint that verifies, and 41 entries in the representative's subject view. Shards 1/3 passed. Shards 2/3 and 3/3 failed in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FerroEHR now has one seed for its synthetic demo dataset, and it fills every page the viewer work under #6640 adds. Part of #6663. The recorder's seed (
scripts/viewer-record.sh) moves onto this walker in a second PR, once #6642 lands its fix of the recorder. That PR closes the issue.One owner
scripts/sandbox/reseed.shandscripts/sandbox/seed/manifest.jsonare the one seed. Before this PR there were three seed paths:sandbox-reseed.yml)scripts/ui-e2e.shstep 2b)ferroehr-admin, withferroehras the clinician; the journeys read their EHR and composition from the ids file the walker writesssr_apprecording (scripts/viewer-record.sh)The compose quickstart has no seed. The walker keeps its path and its
SANDBOX_*environment. The nightly workflow runs the scripts of the release the box serves, so moving the file would break the reseed of every release before this one.What the dataset now holds
Everything goes through the public API, so every write passes the same authorization and leaves the same access record a client's does:
PERSONs (patient template v3) with identifiers, date of birth, sex and the record subject of their EHR, under IHE the FerroPIX pseudonym. Also the healthcare providerORGANISATIONthe deployment acts for (two versions), a lab organisation, two care-teamGROUPs, a system client'sAGENTwith itscommit_compositionROLE, the privacy officer'sROLEgranting the seeding administratorwrite_access_policy,write_care_relationshipandwrite_representation, a guardian's representation and a proxy's representation.refused-reason-missingand then admitted with its reason. Three care relationships, one ended in a second version. EHR access settings on two EHRs: a restriction with a consent, and an opt-out./retention/duelists them), a whole-record hold and an object hold.ferroehr-proxyreads the subject view of the patient's access log. The review across EHRs must name all eight. ITI-81 must answer system records. Where the server signs with an OpenPGP key, the walker seals a checkpoint andPOST /admin/access-log/verifymust pass.POST /query/cohort, the viewer'sminimal_evaluationtemplate with a two-version composition and three Simplified Flat compositions with measured values (what the journeys used to seed themselves).It is deterministic. The bodies are files, and the dates are days relative to the run's UTC date. It is idempotent: the marker EHR ends a second run before it writes anything. The manifest's
notesand the book's sandbox section say the data is synthetic and list the three logins.Postures
The sandbox and development postures change for this dataset only. The production defaults are unchanged.
deploy/hosted/ferroehr.sandbox.toml: two more demo logins with the public password,ferroehr-clinician(a professional) andferroehr-proxy(the representative, whosePERSONthe seed writes). The grant ceiling addswrite_access_policy,write_care_relationship,write_representationandaccess_service.deploy/hosted/docker-compose.yml, which travels in the image: the provision step createsferroehr-clinicianthrough SCIM besideferroehr, andferroehr-hold-cliniciangrants it the clinical scopes.docker/ferroehr.dev.toml:ferroehr-proxy, the same grant ceiling, and[privacy.cohort] subjects = true, as the sandbox has.docker/viewer/e2e-env.yml:[record.signing] mode = "pgp"withdocker/signing/version-signing-test.key.asc, a committed ML-DSA-65+Ed25519 key labelled TEST MATERIAL in its README, on the pattern of the SCIM test key.The sandbox's own signing key, generated on the box, and the check of the first full reseed after the release are #6694.
Verified
Every run below started from a fresh database. They used a manifest copy that skips the ADL 2 library and the four templates of #6680 (#6684).
deploy/hosted/ferroehr.sandbox.toml, RBAC off, IHE pseudonyms inurn:oid:2.999.7.1, the clinician provisioned over SCIM and granted as the compose file does), with only FerroPIX, FerroTERM and the box's issuer swapped for local stand-ins: the walker runs to the end on digest signing.shellcheck,compose-hardening,shipped-configs,hosted-deploy-script,neutral-identifiers,file-size: clean.The e2e lane runs the full manifest once #6684 is merged into this branch.