
Package org.hl7.fhir.convertors.loaders
Class R4ToR5Loader
- java.lang.Object
-
- org.hl7.fhir.convertors.loaders.BaseLoaderR5
-
- org.hl7.fhir.convertors.loaders.R4ToR5Loader
-
- All Implemented Interfaces:
VersionConvertorAdvisor50
,org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
public class R4ToR5Loader extends BaseLoaderR5 implements org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader, VersionConvertorAdvisor50
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.convertors.loaders.BaseLoaderR5
BaseLoaderR5.ILoaderKnowledgeProvider, BaseLoaderR5.NullLoaderKnowledgeProvider
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.convertors.loaders.BaseLoaderR5
killPrimitives, lkp, patchUrls, types, URL_BASE, URL_DSTU2, URL_DSTU2016MAY, URL_DSTU3, URL_ELEMENT_DEF_NAMESPACE, URL_R4
-
-
Constructor Summary
Constructors Constructor Description R4ToR5Loader(String[] types, BaseLoaderR5.ILoaderKnowledgeProvider lkp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hl7.fhir.dstu2.model.Resource
convertR2(org.hl7.fhir.r5.model.Resource resource)
org.hl7.fhir.dstu2016may.model.Resource
convertR2016May(org.hl7.fhir.r5.model.Resource resource)
org.hl7.fhir.dstu3.model.Resource
convertR3(org.hl7.fhir.r5.model.Resource resource)
org.hl7.fhir.r4.model.Resource
convertR4(org.hl7.fhir.r5.model.Resource resource)
org.hl7.fhir.r5.model.CodeSystem
getCodeSystem(org.hl7.fhir.r5.model.ValueSet src)
void
handleCodeSystem(org.hl7.fhir.r5.model.CodeSystem cs, org.hl7.fhir.r5.model.ValueSet vs)
boolean
ignoreEntry(org.hl7.fhir.r5.model.Bundle.BundleEntryComponent src)
org.hl7.fhir.r5.model.Bundle
loadBundle(InputStream stream, boolean isJson)
org.hl7.fhir.r5.model.Resource
loadResource(InputStream stream, boolean isJson)
-
Methods inherited from class org.hl7.fhir.convertors.loaders.BaseLoaderR5
getNewLoader, getResourcePath, getTypes, isKillPrimitives, isPatchUrls, loaderFactory, setKillPrimitives, setPatchUrls, setPath
-
-
-
-
Constructor Detail
-
R4ToR5Loader
public R4ToR5Loader(String[] types, BaseLoaderR5.ILoaderKnowledgeProvider lkp)
-
-
Method Detail
-
loadBundle
public org.hl7.fhir.r5.model.Bundle loadBundle(InputStream stream, boolean isJson) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Specified by:
loadBundle
in interfaceorg.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
loadResource
public org.hl7.fhir.r5.model.Resource loadResource(InputStream stream, boolean isJson) throws org.hl7.fhir.exceptions.FHIRException, IOException
- Specified by:
loadResource
in interfaceorg.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
ignoreEntry
public boolean ignoreEntry(org.hl7.fhir.r5.model.Bundle.BundleEntryComponent src)
- Specified by:
ignoreEntry
in interfaceVersionConvertorAdvisor50
-
convertR2
public org.hl7.fhir.dstu2.model.Resource convertR2(org.hl7.fhir.r5.model.Resource resource) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
convertR2
in interfaceVersionConvertorAdvisor50
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
convertR2016May
public org.hl7.fhir.dstu2016may.model.Resource convertR2016May(org.hl7.fhir.r5.model.Resource resource) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
convertR2016May
in interfaceVersionConvertorAdvisor50
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
convertR4
public org.hl7.fhir.r4.model.Resource convertR4(org.hl7.fhir.r5.model.Resource resource) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
convertR4
in interfaceVersionConvertorAdvisor50
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
handleCodeSystem
public void handleCodeSystem(org.hl7.fhir.r5.model.CodeSystem cs, org.hl7.fhir.r5.model.ValueSet vs)
- Specified by:
handleCodeSystem
in interfaceVersionConvertorAdvisor50
-
getCodeSystem
public org.hl7.fhir.r5.model.CodeSystem getCodeSystem(org.hl7.fhir.r5.model.ValueSet src)
- Specified by:
getCodeSystem
in interfaceVersionConvertorAdvisor50
-
convertR3
public org.hl7.fhir.dstu3.model.Resource convertR3(org.hl7.fhir.r5.model.Resource resource) throws org.hl7.fhir.exceptions.FHIRException
- Specified by:
convertR3
in interfaceVersionConvertorAdvisor50
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
-