Skip to content

MIABIS diagnosis on Observation - #373

Open
a-tuerk wants to merge 1 commit into
samply:developfrom
a-tuerk:miabis-diagnosis-observation
Open

MIABIS diagnosis on Observation#373
a-tuerk wants to merge 1 commit into
samply:developfrom
a-tuerk:miabis-diagnosis-observation

Conversation

@a-tuerk

@a-tuerk a-tuerk commented Aug 10, 2026

Copy link
Copy Markdown

MIABIS diagnosis on Observation.

The MIABIS-on-FHIR IG puts sample-linked diagnoses on Observation
(miabis-observation, value[x].coding[icd-10-who]) and reserves Condition
for diagnoses of the patient the biobank holds no specimen for. Condition.code
is 0..1 and the reference implementation (BBMRI-cz/MoF-library, used by
BBMRI-cz/fhir-module) leaves it empty, so diagnosis, date_of_diagnosis and
diagnosis_age_donor returned zero against MIABIS data. Both placements are
valid, so the snippets now match either, the same way the bbmri flavour matches
its three ICD-10 code systems.

The Diagnosis define and the stratifier basis move to Observation, since a
stratifier takes one population basis and the sample-linked diagnosis is the one
worth breaking down.

Verified against a Blaze store written by fhir-module: diagnosis queries now
return the expected donors where they returned zero, a coded Condition is
still matched, an absent code still returns zero, and the stratifier reports the
ICD-10 codes present.

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