FHIR Chat · Why are XML and JSON sources different · implementers

Stream: implementers

Topic: Why are XML and JSON sources different


view this post on Zulip nabinkhadka (Mar 02 2019 at 06:39):

Why are XML and JSON sources different in downloads page? https://www.hl7.org/fhir/downloads.html has https://www.hl7.org/fhir/definitions.json.zip and https://www.hl7.org/fhir/definitions.xml.zip

view this post on Zulip Lloyd McKenzie (Mar 02 2019 at 07:26):

Can you explain what you mean by 'different'?

view this post on Zulip nabinkhadka (Mar 02 2019 at 07:36):

@Lloyd McKenzie There are entries like "$ref": "#/definitions/Element" in json file while this is not present in XML files.

view this post on Zulip nabinkhadka (Mar 02 2019 at 07:36):

Can I construct csv file from either json or XML?

view this post on Zulip Grahame Grieve (Mar 02 2019 at 07:59):

You’re looking at the json scheme, which is different to the XML scheme - but neither are found in the downloads you list

view this post on Zulip Grahame Grieve (Mar 02 2019 at 07:59):

You can build a csv how ever you want... but what are you trying to achieve?

view this post on Zulip nabinkhadka (Mar 02 2019 at 08:03):

@Grahame Grieve Thank you for your response.

I am trying to create some useful CSV files which is much easier than reading XML or JSON for users. I am refering to these two links in the downloads page. Screen-Shot-2019-03-02-at-1.48.25-PM.png

view this post on Zulip Grahame Grieve (Mar 02 2019 at 12:29):

well, ignore the schema and use the profiles files - the structure definitions (in either json or xml) - they're already fairly flat and not a hard transform into csv

view this post on Zulip Lloyd McKenzie (Mar 02 2019 at 15:46):

Note that if you're using the IG Publisher, it can already produce csvs

view this post on Zulip Alexander Zautke (Mar 03 2019 at 10:20):

You might also want to check out https://simplifier.net. It provides you with a rendered view of your FHIR profiles and resources out-of-the-box.

view this post on Zulip Brian Postlethwaite (Mar 03 2019 at 22:09):

And CSV isn't so good with collections, so ha ING things like multiple contact numbers or names.

view this post on Zulip nabinkhadka (Mar 04 2019 at 04:25):

well, ignore the schema and use the profiles files - the structure definitions (in either json or xml) - they're already fairly flat and not a hard transform into csv

Thanks, Grahame, that was really helpful. What are the other files? Where should I study to get the clear picture of what those files are for?

I am particularly interested in valuesets data (will want to convert to CSV)

view this post on Zulip Grahame Grieve (Mar 04 2019 at 04:28):

what other files?

view this post on Zulip nabinkhadka (Mar 04 2019 at 04:30):

I mean other than profiles files. There are conceptmaps.json, dataelements.json, v2-tables.json, v3-codesystems.json and valuesets.json

view this post on Zulip Grahame Grieve (Mar 04 2019 at 04:31):

dataelemeents- ignore

view this post on Zulip Grahame Grieve (Mar 04 2019 at 04:31):

value sets, v2 tables and v2 code systems contain CodeSystem and ValueSet resources for fhir, v2, and v3 terminologies

view this post on Zulip Grahame Grieve (Mar 04 2019 at 04:31):

conceptmaps = ConcetMaps


Last updated: Apr 12 2022 at 19:14 UTC