-
Notifications
You must be signed in to change notification settings - Fork 49
fix for type cast exception while converting from hapi object to avro specific record #67
Conversation
bunsen-avro-records-stu3/pom.xml
Outdated
@@ -161,7 +161,6 @@ | |||
<argument>http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter</argument> | |||
<argument>http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization</argument> | |||
<argument>http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication</argument> | |||
<argument>http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest</argument> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're removing this resource?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to generate an avro class that has contained resource inline instead from maven plugin. As you suggested the prior test is sufficient.
reverted the change 2a1ef48
resourceTypeUrls | ||
.put("http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest", | ||
ImmutableList.of("http://hl7.org/fhir/StructureDefinition/Provenance")); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is part of the tools
code (and not really itself testing code), let's remove this addition. The prior test should be sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted 2a1ef48
@@ -34,6 +34,7 @@ | |||
import org.apache.avro.generic.GenericData.Record; | |||
import org.apache.avro.generic.IndexedRecord; | |||
import org.apache.avro.specific.SpecificData; | |||
import org.apache.avro.specific.SpecificRecord; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a needed import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, removed in 2a1ef48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thanks for the fix!
Merged! |
Summary
Closes #66, resolving exception.