public class ValueSets extends AbstractValueSets<org.hl7.fhir.dstu3.model.ValueSet,ValueSets>
fhirVersion, members, spark, TABLE_NAME_PATTERN, URL_AND_VERSION_ENCODER, VALUE_ENCODER, VALUE_SETS_DATABASE, VALUE_SETS_TABLE, values, VALUES_TABLE, valueSetEncoder, valueSets| Modifier and Type | Method and Description |
|---|---|
protected void |
addToValueSet(org.hl7.fhir.dstu3.model.ValueSet valueSet,
org.apache.spark.sql.Dataset<Value> values) |
static List<Value> |
expandValues(org.hl7.fhir.dstu3.model.ValueSet valueSet)
Given a value set, returns a list of value records it contains.
|
static ValueSets |
getDefault(org.apache.spark.sql.SparkSession spark)
Returns the collection of value sets from the default database and tables.
|
static ValueSets |
getEmpty(org.apache.spark.sql.SparkSession spark)
Returns an empty ValueSets instance.
|
static ValueSets |
getFromDatabase(org.apache.spark.sql.SparkSession spark,
String databaseName)
Returns the collection of value sets from the tables in the given database.
|
static org.apache.spark.sql.Encoder<org.hl7.fhir.dstu3.model.ValueSet> |
getValueSetEncoder()
Returns the encoder for value sets.
|
ValueSets |
withValueSets(org.apache.spark.sql.Dataset<org.hl7.fhir.dstu3.model.ValueSet> valueSets)
Returns a new ValueSets instance that includes the given value sets.
|
getLatestValues, getLatestVersions, getLatestVersions, getUrlAndVersionEncoder, getUrlAndVersions, getValueEncoder, getValues, getValues, getValues, getValueSet, getValueSets, hasDuplicateUrlAndVersions, valueSetDatasetFromDirectory, withDisjointValueSetsFromDirectory, withDisjointValueSetsFromDirectory, withValueSets, withValueSets, withValueSetsFromDirectory, writeToDatabase, writeToDatabase, writeToTablespublic static org.apache.spark.sql.Encoder<org.hl7.fhir.dstu3.model.ValueSet> getValueSetEncoder()
public static ValueSets getDefault(org.apache.spark.sql.SparkSession spark)
spark - the spark sessionpublic static ValueSets getFromDatabase(org.apache.spark.sql.SparkSession spark, String databaseName)
spark - the spark sessiondatabaseName - name of the database containing the value sets and values tablespublic static ValueSets getEmpty(org.apache.spark.sql.SparkSession spark)
spark - the spark sessionpublic ValueSets withValueSets(org.apache.spark.sql.Dataset<org.hl7.fhir.dstu3.model.ValueSet> valueSets)
withValueSets in class AbstractValueSets<org.hl7.fhir.dstu3.model.ValueSet,ValueSets>valueSets - the value sets to add to the returned collection.public static List<Value> expandValues(org.hl7.fhir.dstu3.model.ValueSet valueSet)
valueSet - a value setprotected void addToValueSet(org.hl7.fhir.dstu3.model.ValueSet valueSet,
org.apache.spark.sql.Dataset<Value> values)
addToValueSet in class AbstractValueSets<org.hl7.fhir.dstu3.model.ValueSet,ValueSets>Copyright © 2019. All rights reserved.