Packages

trait DataTypeMappings extends AnyRef

Interface for mapping FHIR datatypes to Spark datatypes.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataTypeMappings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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

  2. 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

  3. 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.

  4. abstract def primitiveDecoderExpression(primitiveClass: Class[_ <: IPrimitiveType[_]], path: Option[Expression]): Expression

    Returns an expression to deserialize a primitive type.

  5. abstract def primitiveEncoderExpression(inputObject: Expression, primitive: RuntimePrimitiveDatatypeDefinition): Expression

    Returns an expression to serialize a primitive type.

  6. 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

  7. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  6. 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

  7. 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

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped