Stream: CCDA / FHIR mapping stream
Topic: Running the transformer....
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?
Lloyd McKenzie (May 04 2018 at 19:16):
Have you tried running it in Eclipse so you can see where it's erroring?
Jean Duteau (May 04 2018 at 19:17):
no. running it from the command-line using the pre-built jar
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.
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.
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
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?
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
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