Stream: hapi
Topic: Converting
Andrew Broadbent (Apr 25 2017 at 11:12):
Hi all, I'm trying to use the converter to convert resources between DSTU2 and STU3, I'm reading my DSTU2 resource via 'FhirContext.forDSTU2().newXmlParser().parseResource(File). It returns an instance of ca.uhn.fhir.model.dstu2.resource.StructureDefinition.
I found this in the documentation about converting from 2 to 3:http://hapifhir.io/doc_converter.html, however it only accepts instances of org.hl7.fhir.instance.model.StructureDefinition. Is there anyway to convert ca.uhn.fhir.model.dstu2.resource.StructureDefinition?
Last updated: Apr 12 2022 at 19:14 UTC