FHIR Chat · Mapping · implementers

Stream: implementers

Topic: Mapping


view this post on Zulip Mikhail Lapshin (Nov 21 2016 at 14:50):

Greetings from FHIR DevDays 2016! For those of you, who is interested in new ideas on how to express the mapping logic between FHIR and other systems, I’ve set up a repository containing a demonstration of JUTE language, which we're using internally at Health Samurai. This repository contains an example of HL7 v2 to FHIR Bundle mapping, and translation of the Mapping Language tutorial from FHIR documentation.

The repository is available here: https://github.com/HealthSamurai/jute-example

Examples are executable, so you can play with language in your terminal.

For today, the language itself is represented mostly as a reference implementation, and it has no documentation at all, but we will invest our time in documenting it, if there is sufficient interest from community. Please feel free to contact me if you have any questions.

view this post on Zulip robert worden (Sep 04 2017 at 17:15):

I want to run some tests on FHIR mappings. On the website mapping pages, I can't see exactly how to run FHIR mappings on HAPI 2.5. What package/class/method do you invoke to do this? Some link to where that is defined?

view this post on Zulip Lloyd McKenzie (Sep 04 2017 at 17:54):

@James Agnew ?

view this post on Zulip robert worden (Sep 14 2017 at 13:09):

Has anyone got FHIRPath expressions to work in the mapping language? Copying patterns which appear to work in Grahame's R2-R3 maps, using rules (in mappings from a relational database to FHIR) like:
p_filler1 : for s_PATIENT1.record as s_record1 where s_record1.INTERNAL_ID = s_record.INTERNAL_ID
then {
I get parse errors :
Error at 12, 18: Found s_record1 expecting a token name.
The only way I can avoid these parse errors is to put the FHIRPath expression, or parts of it, in double quotes - and then the expression does not evaluate correctly.
Any clues welcomed!

view this post on Zulip Grahame Grieve (Sep 14 2017 at 17:26):

how are you parsing the fhirpath?

view this post on Zulip robert worden (Sep 14 2017 at 18:21):

I've done it two ways (a) directly passing a StructureMap resource to the engine and (b) parsing the concrete syntax. Both seem to give the same result in StructureMapUtilities - the string FHIRPath expression gets parsed by class FHIRPath

view this post on Zulip robert worden (Sep 14 2017 at 18:22):

calling class FHIRLexer. I've emailed more details.

view this post on Zulip robert worden (Sep 14 2017 at 18:23):

I meant class FHIRPathEngine calling FHIRLexer - finger trouble

view this post on Zulip robert worden (Sep 17 2017 at 12:15):

How do I run FHIR mappings to produce a DSTU2 resource?
The mapping engine (method transform(..) in class StructureUtilities) assumes the target is of class Base in STU3.
I cannot use the DSTU2 ResourceFactory to produce a subclass of an STU3 Base - DSTU2 resource classes do not extend the STU3 Base class..


Last updated: Apr 12 2022 at 19:14 UTC