Reputation: 691
I am trying to validate a FHIR json Bundle Resource using ajv.
The command line is:
ajv validate -s "Bundle.schema.json" -d "SampleBundleDanielToJson.json" -r "*.schema.json"
But I get:
schema Bundle.schema.json is invalid
error: can't resolve reference Element.schema.json#/definitions/Element from id http://hl7.org/fhir/json-schema/Element#
All FHIR schemas and SampleBundleDanielToJson.json are at the same directory. I play different options with -r parametres, for example setting referenced schemas one by one but I also do not success.
Any idea about how to do a FHIR Json validation? Thanks
enter code here
Upvotes: 1
Views: 714
Reputation: 6793
The FHIR JSON schemas published in FHIR R3 have known issues. Try using the draft version of FHIR R4 at http://build.fhir.org.
Upvotes: 2