Skip to content

API: snapshot tests for the KBV Condition Diagnosis pipeline#206

Merged
ryukzak merged 1 commit into
mainfrom
kbv-condition-snapshot-tests
Jul 24, 2026
Merged

API: snapshot tests for the KBV Condition Diagnosis pipeline#206
ryukzak merged 1 commit into
mainfrom
kbv-condition-snapshot-tests

Conversation

@ryukzak

@ryukzak ryukzak commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator
  • Add snapshot tests mirroring the kbv-condition-diagnosis on-the-fly example (kbv.basis@1.9.0 from the simplifier registry, tree-shaken to KBV_PR_Base_Condition_Diagnosis), fully in-memory — no disk output.
  • Pins every pipeline stage for the base resource and the profile, in base-first order:
    • FHIR schema + TypeSchema for Condition
    • FHIR schema + TypeSchema (profile and resolved snapshot) for KBV_PR_Base_Condition_Diagnosis
    • generated Condition.ts and Condition_KBV_PR_Base_Condition_Diagnosis.ts
  • Generated files are located by path suffix with a loud error listing available keys on miss.

The profile exercises open type-sliced choice elements (onset[x]/abatement[x]) and a profile reference target on subject (KBV_PR_Base_Patient). The snapshots pin current representations at each stage, so upcoming TypeSchema refactorings (e.g. #203) will surface their representation changes explicitly in these snapshot diffs.

Pins FHIR schema, TypeSchema (profile + resolved snapshot) and generated
TypeScript for KBV_PR_Base_Condition_Diagnosis and its base Condition,
mirroring the on-the-fly example (kbv.basis@1.9.0, open type-sliced
onset[x]/abatement[x], profile reference target on subject).
@ryukzak
ryukzak merged commit 7eb71a6 into main Jul 24, 2026
35 checks passed
@ryukzak
ryukzak deleted the kbv-condition-snapshot-tests branch July 24, 2026 13:52
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