public abstract class HapiConverter<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HapiConverter.HapiFieldSetter
Supporting interface to convert and set a field on a HAPI object.
|
static interface |
HapiConverter.HapiObjectConverter
Supporting interface to convert an object from a different data model
to a HAPI object.
|
static interface |
HapiConverter.MultiValueConverter
Supporting interface to convert multiple values for the corresponding field on a FHIR object.
|
| Constructor and Description |
|---|
HapiConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
extensionUrl()
The extension URL if the field is an extension, null otherwise.
|
abstract Object |
fromHapi(Object input)
Converts a HAPI object or list of objects to the equivalent
in the alternative data model.
|
abstract T |
getDataType()
Returns the schema of the converted item.
|
String |
getElementType()
The FHIR type of the element to be converted, or null
if there is no FHIR type, such as within a FHIR backbone element.
|
abstract HapiConverter.HapiFieldSetter |
toHapiConverter(ca.uhn.fhir.context.BaseRuntimeElementDefinition... elementDefinitions)
Returns a field setter to be used when converting an object of an
alternative model to HAPI.
|
public abstract Object fromHapi(Object input)
input - a HAPI object.public abstract T getDataType()
public String extensionUrl()
public String getElementType()
public abstract HapiConverter.HapiFieldSetter toHapiConverter(ca.uhn.fhir.context.BaseRuntimeElementDefinition... elementDefinitions)
elementDefinitions - the set of element definitions that the element can be.Copyright © 2020. All rights reserved.