FHIR Chat · R2 to R3 Mapping Statements · implementers

Stream: implementers

Topic: R2 to R3 Mapping Statements


view this post on Zulip Grahame Grieve (Nov 27 2016 at 19:07):

At DevDays, several people asked me about using the FHIR Mapping language to translate between FHIR R2 and FHIR R3.

Where we are with this is that I maintain a hand-written java clas that can interconvert between R2 and R3. The Build tooling makes extensive use of this for the conformance resources

view this post on Zulip Grahame Grieve (Nov 27 2016 at 19:08):

what I've written is a new java class that parses that java class and converts the code to a set of mapping statements. I've committed the class and it's output to svn - see \build\implementations\r2maps for the output

view this post on Zulip Grahame Grieve (Nov 27 2016 at 19:09):

my intention is to build this into the specification for the early Dec milestone, though they will need significant amounts of quality work

view this post on Zulip Grahame Grieve (Nov 27 2016 at 19:10):

so far, I only have data type maps, for R2 to R3

view this post on Zulip Vadim Peretokin (Feb 14 2017 at 19:35):

What do the "% RoundTrip Ok" and "% R3 Valid" columns actually mean at http://build.fhir.org/r2maps.html?

view this post on Zulip Vadim Peretokin (Feb 14 2017 at 19:36):

Is the first how many resources got roundtripped ok, or is it % of a resource that was roundtripped ok? Not sure what the valid part really means either

view this post on Zulip Grahame Grieve (Feb 14 2017 at 19:42):

% Execute ok is the % of resources where running the script doesn't terminate with an error
% Round trip ok is % of resources where running the script r2 -> r3 and r3 -> r2 results in the same canonical resource
% R3 valid is the % of resources where the R3 resource passes validation

view this post on Zulip Vadim Peretokin (Feb 14 2017 at 19:43):

Got it, thanks!

view this post on Zulip Grahame Grieve (Feb 14 2017 at 19:44):

the scripts are not being maintained since mid-jan. I'll do a round of editing on them once substantiative changes cease

view this post on Zulip Brian Postlethwaite (Feb 16 2017 at 05:28):

the r2 diff stuff in the ini, we can correct that post this sunday right?

view this post on Zulip Brian Postlethwaite (Feb 16 2017 at 05:30):

Is there a way to provide a mapping across resources? (1 resource in DSTU2 = 2 resources in STU3)

view this post on Zulip Grahame Grieve (Feb 16 2017 at 07:32):

yes the scripts work for that already .

view this post on Zulip Grahame Grieve (Feb 16 2017 at 07:32):

and yes, this can be correct post sunday night


Last updated: Apr 12 2022 at 19:14 UTC