Stream: conformance
Topic: FHIR Package xml
Patrick Werner (Dec 02 2020 at 15:01):
Hi, reading the FHIR package spec is see:
A package contains a set of FHIR resources in the JSON format for the specified FHIR version. Each resource is saved in a separate .JSON file in the 'package' directly under the root.
Patrick Werner (Dec 02 2020 at 15:02):
Just found a package containing XML:
https://simplifier.net/packages/kbv.basis/1.1.0
Patrick Werner (Dec 02 2020 at 15:04):
Shouldn't this be prevented by the Simplifier Stack? @Ward Weistra
Ward Weistra (Dec 02 2020 at 16:49):
@Patrick Werner Yes it should! :open_mouth: We'll look into how to prevent this next time, thanks for reporting.
Ward Weistra (Dec 03 2020 at 10:19):
@Patrick Werner So, this must have been a deliberate choice by the package author, to uncheck the option to convert the files to JSON and thereby be non-compliant with the spec:
image.png
A very fair next question would be whether we should offer users these options to 'shoot themselves in the foot'. The philosophy was that, especially with FHIR packages being new, we wanted to give users who already had all their files and folders in the right setup the option to not screw with that.
But we'll look into putting these options in a "Are you really sure of the implications" section in the wizard.
Patrick Werner (Dec 03 2020 at 10:21):
:+1:
Will contact the Project Owner and inform him about his choice breaking the standard.
Grahame Grieve (Dec 03 2020 at 20:13):
I also publish packages with xml in them instead of json, by user request, but these are n.n.n.xml where n.n.n is the base name. So it should be possible to do so. Perhaps you could change to 'publist an xml package as well'
Patrick Werner (Dec 03 2020 at 20:46):
i can see the use case, but in the fhir NPM package spec only json is mentioned/allowed.
Grahame Grieve (Dec 03 2020 at 21:52):
I think it should be revised to allow for the use case, but it should be limited somehow
Grahame Grieve (Dec 03 2020 at 21:53):
so that the expectation that normal packages are json holds true
Last updated: Apr 12 2022 at 19:14 UTC