Stream: implementers
Topic: XML and JSON Schema
Scott Robertson (Oct 30 2020 at 22:10):
Got a question from an implementation team. Want to be sure I have this right:
- XML schemas exist for FHIR Core (I have them so they do exist)
- XML schemas are not generated for FHIR IGs
- JSON schemas are not generated for FHIR Core or FHIR IGs
Michele Mottini (Oct 30 2020 at 22:19):
Pretty sure JSON schemas are generated for FHIR core (at least for R4)
Scott Robertson (Oct 30 2020 at 22:38):
@Michele Mottini thank you! exactly why I asked. found the JSON Schema file.
remaining point if anyone can confirm: are either XML or JSON schema generated for IGs?
Michele Mottini (Oct 30 2020 at 22:41):
No schemas for implementation guides
Eric Haas (Oct 30 2020 at 23:00):
schematrons are generated for Igs
Lloyd McKenzie (Oct 30 2020 at 23:14):
It's pretty much useless to try to create XML schemas for profiles. It's slightly less useless for JSON schema, but the current state of JSON schema validators doesn't really make it worth the effort. In all cases, you don't want to use schema for code generation and they're pretty poor at validation compared to the hand-coded validators (which understand terminology bindings, FHIRPath invariants, slicing and a bunch of other important things that neither of the schema languages can handle.
Scott Robertson (Oct 30 2020 at 23:22):
I appreciate the feedback. Just wanted to check since I hadn't looked into the FHIR schemas (XML or JSON) in a while. Certainly didn't want to say "doesn't exist" and ruin my local SME status when someone found the JSON schemas :smirk:
Mat de Hoog (Nov 02 2020 at 11:35):
I am looking for an XML example of a resource which can ontain multiple value like blood presure, weight.
I do have the blood pressure observation example but that one only contains ONE value set.
Anyone has such an example available?
I just learned this does not exist. I need to work in a different way.
Lin Zhang (Nov 02 2020 at 13:47):
@Mat de Hoog Maybe this is an example you want: http://build.fhir.org/observation-example-vitals-panel.html
Lloyd McKenzie (Nov 02 2020 at 14:07):
Or this: http://build.fhir.org/observation-example-bloodpressure.html
Last updated: Apr 12 2022 at 19:14 UTC