FHIR Chat · Running the transformer.... · CCDA / FHIR mapping stream

Stream: CCDA / FHIR mapping stream

Topic: Running the transformer....


view this post on Zulip Jean Duteau (May 04 2018 at 19:03):

I'm sure that I'm this close to getting the transformer to run with my maps, but there is something wrong and I don't get much of an error response back:
Start Transform http://hl7.org/fhir/cda/mapping/dischargeSummaryDocument
Group : Bundle
rule : "rule_type"
...Failure: null

I made a simple map that has just one rule that sets a target variable to a constant:

map "http://hl7.org/fhir/cda/mapping/dischargeSummaryDocument" = "DischangeSummaryDocument from CDA to FHIR"

uses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target

group for type+types Bundle
input "source" : ClinicalDocument as source
input "target" : Bundle as target

"rule_type": for source make target.type = "document"

The "Failure: null" is less than helpful so I'm wondering if it has something to do with not being able to create a Bundle resource as a target?

view this post on Zulip Lloyd McKenzie (May 04 2018 at 19:16):

Have you tried running it in Eclipse so you can see where it's erroring?

view this post on Zulip Jean Duteau (May 04 2018 at 19:17):

no. running it from the command-line using the pre-built jar

view this post on Zulip Jean Duteau (May 04 2018 at 20:20):

okay, ran it from Eclipse and StructureMapUtilities line 1509 is throwing a FHIRException but gets a NullPointer when it's trying to create the exception text.

view this post on Zulip Jean Duteau (May 04 2018 at 20:21):

if someone can let me know what it's looking for and what I'm not providing, that would be great.

view this post on Zulip Grahame Grieve (May 05 2018 at 03:23):

not sure which variable is null at line 1509. but your map requires that the bundle already exists - if you're using the validator, it doesn't already exist

view this post on Zulip Grahame Grieve (May 05 2018 at 03:23):

that's why the first item of detail in the maps I wrote to get going with is to create the bundle. Can you start from my maps?

view this post on Zulip Jean Duteau (May 05 2018 at 21:51):

If I had your maps I could. I don’t see any mapping files in the projects I’ve been told about

view this post on Zulip Grahame Grieve (May 06 2018 at 03:18):

https://github.com/HL7/ccda-on-fhir/resources/maps


Last updated: Apr 12 2022 at 19:14 UTC