class SchemaConverter extends EncoderContext
The converter from FHIR schemas to SQL schemas.
- Alphabetic
- By Inheritance
- SchemaConverter
- EncoderContext
- EncoderSettings
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SchemaConverter(fhirContext: FhirContext, dataTypeMappings: DataTypeMappings, config: EncoderConfig)
- fhirContext
the FHIR context to use.
- dataTypeMappings
the data type mappings to use.
- config
encoder configuration to use.
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()
-
val
config: EncoderConfig
- Definition Classes
- SchemaConverter → EncoderContext
-
val
dataTypeMappings: DataTypeMappings
- Definition Classes
- SchemaConverter → EncoderContext
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
fhirContext: FhirContext
- Definition Classes
- SchemaConverter → EncoderContext
-
def
generateFid: Boolean
Indicates if unique field ids (_fid) should be added to the schema.
Indicates if unique field ids (_fid) should be added to the schema. This is required to support extension but it's an option at the moment to allow for backward compatibility with V1 encodes. Once V2 has matured this can be removed together with all V1 related classes and tests.
- returns
if unique field ids (_fid) should be added to the schema.
- Definition Classes
- EncoderContext → EncoderSettings
-
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
-
def
maxNestingLevel: Int
Gets the max nesting that recursive data types should be expanded to.
Gets the max nesting that recursive data types should be expanded to. Zero indicates that fields ot type T should not be expanded in the composite of type T.
- returns
the max nesting that recursive data types should be expanded to
- Definition Classes
- EncoderContext → EncoderSettings
-
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()
-
def
openTypes: Set[String]
The list of types that are encoded within open types, such as extensions.
The list of types that are encoded within open types, such as extensions.
- Definition Classes
- EncoderContext → EncoderSettings
-
def
resourceSchema[T <: IBaseResource](resourceClass: Class[T]): StructType
Returns the spark (SQL) schema that represents the given FHIR resource class.
Returns the spark (SQL) schema that represents the given FHIR resource class.
- resourceClass
The class implementing the FHIR resource.
- returns
The schema as a Spark StructType
-
def
resourceSchema(resourceDefinition: RuntimeResourceDefinition): StructType
Returns the (spark) SQL schema that represents the given FHIR resource definition.
Returns the (spark) SQL schema that represents the given FHIR resource definition.
- resourceDefinition
the FHIR resource definition.
- returns
the schema as a Spark StructType
-
def
supportsExtensions: Boolean
Indicates if support for FHIR extension should be enabled.
Indicates if support for FHIR extension should be enabled.
- returns
if support for FHIR extension should be enabled.
- Definition Classes
- EncoderContext → EncoderSettings
-
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