Stream: shorthand
Topic: xml
Hans van Amstel (Apr 15 2020 at 11:09):
Is it possible to generate a profile in xml format instead of json with sushi?
Chris Moesel (Apr 15 2020 at 12:34):
Currently, no -- but if you have sushi build it as an IG (by including an ig-data
folder), then you can run it through the IG Publisher jar and the IG Publisher will generate XML versions of the profiles.
Keith Boone (Apr 15 2020 at 15:02):
There's also a way to convert JSON to XML, maybe even command line using a Java Jar file from somewhere.
I built a format converter in about 15 minutes.
There should be a simple way to do that in JavaScript as well.
Chris Moesel (Apr 15 2020 at 15:33):
That's a good point, @Keith Boone. There is actually a VS Code extension that can convert FHIR JSON <--> XML. VS Code extensions are usually JavaScript or TypeScript, so maybe there is already some JS/TS code we could leverage if we wanted to support this directly in SUSHI.
Keith Boone (Apr 15 2020 at 15:55):
And here's my little program: https://gist.github.com/keithboone/e7e2e21be7a8ac69578fe035fb39f7f8
Last updated: Apr 12 2022 at 19:14 UTC