Stream: implementers
Topic: JSON Generation Tools
Pier Alberto Gibellini (Nov 27 2019 at 08:51):
Hi! In Dedalus we're looking for tools that simplify generation of example JSON resources based on existing profiles. We know about the tools available on the FHIR Tools Registry page, specifically the notepad++ plugin, but as far as I know it builds JSON starting exclusively from the core FHIR structure definitions. Has anyone suggestions about other existing tools? We're using STU3. Thanks!
Ward Weistra (Nov 27 2019 at 11:14):
Simplifier.net has an (currently in beta) tool that allows you to generate examples/instances from STU3 profiles. For example, going to https://simplifier.net/nictizstu3-zib2017/nl-core-patient, click the Tools button top right and choose whether to generate an Empty instance or let Simplifier fill in some example data where possible.
Ward Weistra (Nov 27 2019 at 11:16):
This only generates XML at this point, but this can easily be converted to JSON. For example by using the Simplifier.net/snippet tool: https://simplifier.net/snippet/wardweistra/3
Grahame Grieve (Nov 27 2019 at 12:26):
the notepad++ plug-in can generate from any profile as well as from the base definitions
nicola (RIO/SS) (Nov 27 2019 at 12:31):
We have this project for Xmas hackathon - so probably in a couple of months you will have such tool :)
Jason Walonoski (Nov 27 2019 at 16:49):
We've thought about creating a system in Synthea where you drop in an Implementation Guide, and some set of mapping files (example for US Core observations, maybe other mapping files containing FHIR Path or other expressions that instruct Synthea how to populate certain fields in the profiles from the patient data. We have a pretty good one-off solution for US Core in place, but we need to abstract it to support any arbitrary IG. Happy to get help if others are interested.
Simone Heckmann (Nov 27 2019 at 16:53):
Simplifier.net has an (currently in beta) tool that allows you to generate examples/instances from STU3 profiles. For example, going to https://simplifier.net/nictizstu3-zib2017/nl-core-patient, click the Tools button top right and choose whether to generate an Empty instance or let Simplifier fill in some example data where possible.
@Ward Weistra
This is awesome! Please add this to R4 :pray:
Ward Weistra (Nov 27 2019 at 16:57):
Thanks @Simone Heckmann, we were waiting to see user demand for that, so I'll add your name to the list!
Of course we're not creating any realistic data, just data that should pass validation. We'd be very happy to see @Jason Walonoski's Synthea support profiles outside of US-Core!
cc @Michael van der Zel regarding interest in NL example data from Synthea
Simone Heckmann (Nov 27 2019 at 18:23):
I actually find the creation of an empty resource (with fixed values) even more useful than adding test data.
Eric Haas (Nov 27 2019 at 19:10):
(deleted)
Pier Alberto Gibellini (Nov 28 2019 at 13:26):
the notepad++ plug-in can generate from any profile as well as from the base definitions
Thanks Grahame! But to use it, we shall start from some FHIR package containing the profiles we need to generate the JSON for, right?
Grahame Grieve (Nov 28 2019 at 15:54):
well, it needs to get the content from somewhere, and packages are the easiest way. but I think you can get the profiles from somewhere else too
Tim Blake (Nov 29 2019 at 04:39):
We've thought about creating a system in Synthea where you drop in an Implementation Guide, and some set of mapping files (example for US Core observations, maybe other mapping files containing FHIR Path or other expressions that instruct Synthea how to populate certain fields in the profiles from the patient data. We have a pretty good one-off solution for US Core in place, but we need to abstract it to support any arbitrary IG. Happy to get help if others are interested.
I know that @Michael Lawley at CSIRO has been thinking about something along these lines in Australia. Would personally love to see this!
Tobias Cervin (Dec 12 2019 at 09:27):
Thanks Simone Heckmann, we were waiting to see user demand for that, so I'll add your name to the list!
Of course we're not creating any realistic data, just data that should pass validation. We'd be very happy to see Jason Walonoski's Synthea support profiles outside of US-Core!cc Michael van der Zel regarding interest in NL example data from Synthea
Would also love to be added on this list since we're working in Simplifier/R4 and just in the starts of creating IG's/ResourceGuides for clients!
Ward Weistra (Dec 12 2019 at 16:25):
Thanks Tobias, I'll let you know when we get around to it!
Last updated: Apr 12 2022 at 19:14 UTC