HL7 / ccda-to-fhir

Mappings between CCDA templates and FHIR resources
15 stars 7 forks source link

Struggling with converting a sample ccda to fhir #2

Open daveboerner opened 4 years ago

daveboerner commented 4 years ago

I've been struggling with this for quite a while. It appears from the example I'm working with at https://wiki.hl7.org/Using_the_FHIR_Validator_to_transform_content#CCDA_to_FHIR which references this solution that there are numerous out of date references.

Does anyone have an up to date project/command that I could reference?

I am trying /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/java -jar org.hl7.fhir.validator.jar /Users/davidboerner/Documents/GitHub/ArielCCD.xml -transform /Users/davidboerner/Documents/GitHub/ccda-to-fhir/mappings/CCDAToFHIR.map -ig hl7.fhir.us.ccda -ig /Users/davidboerner/Documents/GitHub/ccda-to-fhir/mappings/ -output /Users/davidboerner/Documents/GitHub/ccda-to-fhir/output/ariel.json -ig hl7.fhir.r4.core -version 4.0 -log test.txt

but getting this error, even though I'm referencing the input structure as CCDA (-ig hl7.fhir.us.ccda) which I had to update from -ig hl7.fhir.cda#2.0 which is a broken link

...Failure: This does not appear to be a FHIR resource (unknown namespace/name "urn:hl7-org:v3::ClinicalDocument") at line 0 col 0 org.hl7.fhir.exceptions.FHIRFormatError: This does not appear to be a FHIR resource (unknown namespace/name "urn:hl7-org:v3::ClinicalDocument") at line 0 col 0

Any help most appreciated!

vibinernesto commented 3 years ago

I'm also facing an issues on this pasting the image (screenshot) below regarding the error im getting while executing this JAR file.

image

The content in this page is little misleading and we spend more time on analyzing this page assuming we have done something wrong. So, HL7 team members can take some action on top of this overcome such misleading pages or give even more proper documentation.

Thanks