Stream: IG creation
Topic: Converting from XSLT to FHIR Mapping Language?
Jean Duteau (Aug 06 2020 at 19:22):
Has anyone done any conversions from XSLT to FHIR Mapping Language or back? We are using a mapping tool to produce our mappings and it doesn't know FHIR natively, so the mappings are basically XML to XML (or XML to JSON). It can produce XSLTs so I'm trying to see if we can programmatically generate FML files from the XSLTs.
Grahame Grieve (Aug 06 2020 at 19:59):
sounds really really hard.
Jean Duteau (Aug 06 2020 at 19:59):
yeah, i know, it was mainly a shot across the bow.
Rik Smithies (Aug 06 2020 at 21:15):
I've considered FML to XSLT, as a way to execute FML. But it didn't seem much easier than implementing a general FML runner.
XSLT to FML would be extremely hard. There a lots of ways to do the same XSLT - push, pull, named templates, modes, functions etc. Unless the XSLT was very standardised (which it may be is if it itself generated), or largely table driven. Also I am not sure what it gains you, since XSLT is already executable.
Easiest would be to derive both XSLT and FML from the same mapping source.
Can you dump the "rules"?
Lloyd McKenzie (Aug 06 2020 at 21:47):
If the XSLT was generated from some other formal syntax, it might be possible. Arbitrary ad-hoc XML would be pretty evil.
Last updated: Apr 12 2022 at 19:14 UTC