FHIR Chat · code with ValueSet binding · implementers

Stream: implementers

Topic: code with ValueSet binding


view this post on Zulip Katarina (Aug 26 2021 at 12:29):

Hi,
I want to define an observation profile where the status codes are restricted.
I defined an own valueset containing only three codes from the codesystem (final,amended, corrected). This valueset I binded on the status element in the observation profile. This looks like this:

    <element id="Observation.status">
        <path value="Observation.status" />
        <mustSupport value="true" />
        <binding>
            <strength value="required" />
            <description value="Status des Erregernachweis" />
            <valueSet value="https://example.de/fhir/ValueSet/pathogenDetectionStatus" />
        </binding>
    </element>

When I validate an example where status is set to an invalid code ( <status value="unknown" /> ) I get no error.
It seems the valueset binding is ignored.
What did I wrong?

Kind regards,
Katarina

view this post on Zulip Mareike Przysucha (Aug 26 2021 at 12:30):

Can you post the example? Which validator do you use?

view this post on Zulip Katarina (Aug 26 2021 at 12:47):

<Observation xmlns="http://hl7.org/fhir">
<meta>
<profile value="https://example.de/fhir/StructureDefinition/PathogenDetectionCVDP" />
</meta>
<status value="unknown" />
...
</Observation>

With HAPI-Server I get no error.

In Simplifier I get at least this error:
Code 'unknown' from system '' does not exist in valueset 'https://example.de/fhir/ValueSet/pathogenDetectionStatus'

view this post on Zulip Mareike Przysucha (Aug 26 2021 at 12:51):

Thanks.
My first guess was that profile was missing, but that's not the problem.
My second guess would be that the HAPI Server doesn't know your profile. Might that be the case? Simplifier knows your profile if you work in the same project or set your dependencies correctly.

view this post on Zulip Katarina (Aug 26 2021 at 13:02):

Thank you. I uploaded my profile to HAPI Server. But you might be correct that HAPI does not validate correctly. I don't know how to find out.

view this post on Zulip Mareike Przysucha (Aug 26 2021 at 13:04):

probably you could raise the issue again in #hapi, there are the experts.
Else: @Patrick Werner: do you have an idea?

view this post on Zulip Katarina (Aug 26 2021 at 13:16):

I will do this. Thank you.

view this post on Zulip Patrick Werner (Aug 26 2021 at 14:02):

The public hapi server is not aware of your profile, therefore it can't validate against it.

view this post on Zulip Patrick Werner (Aug 26 2021 at 14:04):

couldn't find your profile on the server:
http://hapi.fhir.org/baseR4/StructureDefinition?url=https%3A%2F%2Fexample.de%2Ffhir%2FStructureDefinition%2FPathogenDetectionCVDP

view this post on Zulip Patrick Werner (Aug 26 2021 at 14:04):

`


Last updated: Apr 12 2022 at 19:14 UTC