trait DataTypeMappings extends AnyRef
Interface for mapping FHIR datatypes to Spark datatypes.
- Alphabetic
- By Inheritance
- DataTypeMappings
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
baseType(): Class[_ <: IBaseDatatype]
Returns the base class of FHIR types in the version used.
Returns the base class of FHIR types in the version used.
- returns
the base class for FHIR types in the version used
-
abstract
def
getValidChoiceTypes(choice: RuntimeChildChoiceDefinition): Seq[Class[_ <: IBase]]
Returns the list of valid child types of given choice.
Returns the list of valid child types of given choice.
- choice
the choice child definition.
- returns
list of valid types for this
-
abstract
def
overrideCompositeExpression(inputObject: Expression, definition: BaseRuntimeElementCompositeDefinition[_]): Option[Seq[ExpressionWithName]]
Allows custom expressions to be used when encoding composite objects.
Allows custom expressions to be used when encoding composite objects. This supports special cases where FHIR objects don't follow conventions expected by reusable encoding logic, allowing custom expressions to be used just for that case.
For most expressions this method should simply return None, indicate that no override is necessary.
- inputObject
an expression referring to the composite object to encode
- definition
the composite definition to encode
- returns
an optional sequence of named expressions if the composite is overridden.
-
abstract
def
primitiveDecoderExpression(primitiveClass: Class[_ <: IPrimitiveType[_]], path: Option[Expression]): Expression
Returns an expression to deserialize a primitive type.
-
abstract
def
primitiveEncoderExpression(inputObject: Expression, primitive: RuntimePrimitiveDatatypeDefinition): Expression
Returns an expression to serialize a primitive type.
-
abstract
def
primitiveToDataType(definition: RuntimePrimitiveDatatypeDefinition): DataType
Converts the given FHIR primitive to the Spark DataType used to encode it.
Converts the given FHIR primitive to the Spark DataType used to encode it.
- definition
the FHIR datatype definition.
- returns
the corresponding Spark datatype
-
abstract
def
skipField(compositeDefinition: BaseRuntimeElementCompositeDefinition[_], child: BaseRuntimeChildDefinition): Boolean
Returns true if the given field should be skipped during encoding and decoding, false otherwise.
Returns true if the given field should be skipped during encoding and decoding, false otherwise. This allows the data type to explicitly short circuit a handful of recursive data model definitions that cannot be encoded in Spark.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
customEncoder(elementDefinition: BaseRuntimeElementDefinition[_], elementName: String): Option[CustomCoder]
Returns a specialized custom coder for this child definition.
Returns a specialized custom coder for this child definition.
- elementDefinition
the element definition
- elementName
the name of the element
- returns
a specialized custom coder
-
def
dataTypeToUtf8Expr(inputObject: Expression): Expression
Returns a Spark expression that translate a string-based FHIR type to a Spark UTF8 string.
Returns a Spark expression that translate a string-based FHIR type to a Spark UTF8 string. This pattern occurs frequently, so this method is here as a convenience.
- inputObject
the expression referring to a string-based FHIR type
- returns
an expression that produces a Spark UTF8 string
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated