FHIR Chat · FHIR JSON Schema · implementers

Stream: implementers

Topic: FHIR JSON Schema


view this post on Zulip Aditya Joshi (Apr 08 2020 at 12:04):

Hi everyone.
I am trying to validate FHIR Patient resource in JSON format using JSON schema. I have downloaded JSON schema from FHIR site-
http://hl7.org/fhir/downloads.html

I am getting errors in fhir json schema when validate it using Oxygen XML Validator tool-

Description: Not a JSON Schema keyword. This property is ignored by validation engine: "id"
Description: Not a JSON Schema keyword. This property is ignored by validation engine: "discriminator"

Any help please on this. @Grahame Grieve , @Lloyd McKenzie

view this post on Zulip Lloyd McKenzie (Apr 08 2020 at 14:12):

That sounds like you might not be using the right files. Can you attach the file you're using as instance and the file you're using as schema?

view this post on Zulip Aditya Joshi (Apr 09 2020 at 17:01):

Hi @Lloyd McKenzie

image.png

In Oxygen, I am validating the schema itself and it is giving me error.

I have downloaded JSON schema from FHIR site-
http://hl7.org/fhir/downloads.html
On above link page, there is a section as shown below-
JSON
Examples - all the example resources in JSON format
JSON Schema (Needs JSON Schema draft-06 or more recent)

JSON Schema is a link and provides a zip folder with json schema. Is this the right place to get FHIR JSON schema.

When I try to validate any resource (tried with Patient), I am getting error that schema itself is not valid.
attached json schema file here- fhir.schema.json

view this post on Zulip Lloyd McKenzie (Apr 09 2020 at 17:57):

We're finding lots of variability in tooling capabilities & interpretations, so it's possible this is a tooling issue. @Grahame Grieve

view this post on Zulip Aditya Joshi (Apr 11 2020 at 13:00):

Hi @Lloyd McKenzie does it mean that schema I have attached is correct?
any other tool you can suggest where FHIR Json schema can be tested.

view this post on Zulip Lloyd McKenzie (Apr 11 2020 at 14:23):

@Grahame Grieve


Last updated: Apr 12 2022 at 19:14 UTC