Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Observation BMI resource with dataAbsentReason (FI-3752) #620

Open
yunwwang opened this issue Feb 13, 2025 · 0 comments
Open

Allow Observation BMI resource with dataAbsentReason (FI-3752) #620

yunwwang opened this issue Feb 13, 2025 · 0 comments
Labels
bug This is a bug in Inferno g10-test-kit This issue affects onc-certification-g10-test-kit us-core-test-kit This issue affects us-core-test-kit

Comments

@yunwwang
Copy link
Contributor

This is reported in slack thread here.

When server send an Observation BMI resource with dataAbsentReason, validator throw a validation error:

Observation: Slice 'Observation.value[x]:valueQuantity': a matching slice is required, but not found (from http://hl7.org/fhir/StructureDefinition/bmi|4.0.1).

The reason is that all resources have to be valid no only to its declared profiles but also to corresponding FHIR resource type and FHIR core profiles. When validator validates a US Core BMI observation resource, it validates it using both US Core BMI profile and FHIR BMI profile.

US Core BMI profile inherits from FHIR vital-signs profile which allows the choice between value[x] and dataAbsentReason. FHIR BMI profile also inherits from FHIR vital-signs profiles but restricts the choice to mnadate value[x] to be presented.

This combination causes the validation error you have seen.

Inferno will add an filter for this error message in the next release. At the same time, if you want to continue the testing, the only work around is to remove any BMI (and similar Observation vital signs ) resources which having dataAbsentReason only from server responses.

@yunwwang yunwwang changed the title Allow Observation BMI resource with dataAbsentReason Allow Observation BMI resource with dataAbsentReason (FI-3752) Feb 13, 2025
@yunwwang yunwwang added g10-test-kit This issue affects onc-certification-g10-test-kit us-core-test-kit This issue affects us-core-test-kit bug This is a bug in Inferno labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug in Inferno g10-test-kit This issue affects onc-certification-g10-test-kit us-core-test-kit This issue affects us-core-test-kit
Projects
None yet
Development

No branches or pull requests

1 participant