public class Loinc extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOINC_CODE_SYSTEM_URI
LOINC code system URI.
|
static String |
LOINC_HIERARCHY_URI
Hierarchy URI used for LOINC is-a relationships.
|
Constructor and Description |
---|
Loinc() |
Modifier and Type | Method and Description |
---|---|
static org.apache.spark.sql.Dataset<Hierarchies.HierarchicalElement> |
readMultiaxialHierarchyFile(org.apache.spark.sql.SparkSession spark,
String loincHierarchyPath)
Reads the LOINC mutliaxial hierarchy file and converts it to a
Hierarchies.HierarchicalElement
dataset. |
static Hierarchies |
withLoincHierarchy(org.apache.spark.sql.SparkSession spark,
Hierarchies hierarchies,
String loincHierarchyPath,
String loincVersion)
Returns a
Hierarchies instance with the specified multiaxial hierarchy. |
public static final String LOINC_HIERARCHY_URI
public static final String LOINC_CODE_SYSTEM_URI
public static org.apache.spark.sql.Dataset<Hierarchies.HierarchicalElement> readMultiaxialHierarchyFile(org.apache.spark.sql.SparkSession spark, String loincHierarchyPath)
Hierarchies.HierarchicalElement
dataset.spark
- the Spark sessionloincHierarchyPath
- path to the multiaxial hierarchy CSVHierarchies.HierarchicalElement
representing the hierarchical relationship.public static Hierarchies withLoincHierarchy(org.apache.spark.sql.SparkSession spark, Hierarchies hierarchies, String loincHierarchyPath, String loincVersion)
Hierarchies
instance with the specified multiaxial hierarchy. This method
reads the LOINC multiaxial hierarchy file and converts it to a Hierarchies.HierarchicalElement
dataset, and adds it to the given hierarchies.spark
- the Spark sessionhierarchies
- a Hierarchies
instance to which the hierarchy will be addedloincHierarchyPath
- path to the multiaxial hierarchy CSVloincVersion
- the version of the LOINC hierarchy being readHierarchies
instance that includes the read hierarchy.Copyright © 2018. All rights reserved.