FHIR Chat · version conversion of claim resource · implementers

Stream: implementers

Topic: version conversion of claim resource


view this post on Zulip manasvi sharma (Mar 11 2020 at 07:14):

Hello I want to convert a claim type FHIR resource from STU3 to R4 . I looked into to the convertor files from org.hl7.fhir.core(https://github.com/hapifhir/org.hl7.fhir.core/tree/master/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors) but there is no file for claim type resource in conv_30_40 folder.
Also I looked into the HAPI - FHIR - converter . it has some code to convert claim type resource in VersionConvertor_30_40.class file but it is commented out.
so how can I convert a claim type resource from STU3 to R4?

view this post on Zulip Lloyd McKenzie (Mar 11 2020 at 14:26):

You may have to write the code yourself. It looks like most of the elements map pretty consistently. I suspect the lack of mappings may stem from the low adoption of Claim and other financial resources in STU3, but I'm not sure. @Grahame Grieve ?

view this post on Zulip Grahame Grieve (Mar 11 2020 at 19:53):

yes I took out all financial resources from the java code - PRs are welcome. Have you tried using the validator to convert it? there is a StructureMap conversion

view this post on Zulip manasvi sharma (Mar 12 2020 at 04:40):

I tried using the validator but the conversion is failing .
I run the following cmd :
java -jar org.hl7.fhir.validator.jar /Users/anuragshukla/Desktop/conversion/input/claimtest.json -version 3.0 -to-version 4.0 -output /Users/anuragshukla/Desktop/conversion/out.json

it gives following error:

...Failure: No matches found for rule for 'id to id' from http://hl7.org/fhir/StructureMap/Resource3to4, from rule 'Resource-id'
org.hl7.fhir.exceptions.FHIRException: No matches found for rule for 'id to id' from http://hl7.org/fhir/StructureMap/Resource3to4, from rule 'Resource-id'
at org.hl7.fhir.r5.utils.StructureMapUtilities.resolveGroupByTypes(StructureMapUtilities.java:1577)
at org.hl7.fhir.r5.utils.StructureMapUtilities.executeRule(StructureMapUtilities.java:1428)
at org.hl7.fhir.r5.utils.StructureMapUtilities.executeGroup(StructureMapUtilities.java:1398)
at org.hl7.fhir.r5.utils.StructureMapUtilities.executeGroup(StructureMapUtilities.java:1394)
at org.hl7.fhir.r5.utils.StructureMapUtilities.executeGroup(StructureMapUtilities.java:1394)
at org.hl7.fhir.r5.utils.StructureMapUtilities.transform(StructureMapUtilities.java:1360)
at org.hl7.fhir.validation.ValidationEngine.transformVersion(ValidationEngine.java:1729)

view this post on Zulip manasvi sharma (Mar 12 2020 at 04:45):

claimtest.json is a example of claim type resource taken from fhir website
http://hl7.org/fhir/STU3/claim-example.json.html

view this post on Zulip Lloyd McKenzie (Mar 12 2020 at 06:43):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Mar 13 2020 at 19:27):

so the release of the validator I did a few hours ago fixes the deployment issue that gave this error.

view this post on Zulip Grahame Grieve (Mar 13 2020 at 19:28):

you'll get further along to another error in the process which is an actual issue in the claim mapping

view this post on Zulip manasvi sharma (Mar 16 2020 at 09:58):

Thank you .
I am working on the code for conversion for claim resource . so where I have to add the data for the fields that are deleted in the R4. Like in which
fields I add data of Claim.employmentImpacted and Claim.hospitalization?

view this post on Zulip Lloyd McKenzie (Mar 16 2020 at 13:23):

Most stuff that's deleted in R4 is expected to go elsewhere. You'll have to ask the work group. Best place is #financial


Last updated: Apr 12 2022 at 19:14 UTC