FHIR Chat · Validation against profile · python

Stream: python

Topic: Validation against profile


view this post on Zulip Christian Nau (Mar 25 2021 at 13:50):

Hi,
I would like to validate received FHIR resources (JSON) against my own profiles (to skip those that are invalid for my application).
Any recommendation how to do this?

view this post on Zulip Julian Sass (Mar 25 2021 at 14:25):

You could load your profiles onto a server, validate your received resources with a post $validate against the server and then check the OperationOutcome of the validation.

view this post on Zulip Christian Nau (Mar 25 2021 at 15:10):

Thanks @Julian Sass for your answer.

Yes, that's the first thing I thought about as well.
I hoped to be able to do this without querying the server again.
But maybe I think of it to complicated.

Is there an alternative solution for validation locally on client side?

view this post on Zulip Bob Milius (Mar 25 2021 at 15:17):

You can use the stand-alone FHIR validator and with the -profile option. See https://wiki.hl7.org/Using_the_FHIR_Validator and the section titled "What to validate against" (about halfway through the page).

view this post on Zulip Christian Nau (Mar 25 2021 at 15:30):

Thank you @ Bob Milius - I will have a look at this.


Last updated: Apr 12 2022 at 19:14 UTC