public class Snomed extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SNOMED_CODE_SYSTEM_URI
SNOMED code system URI.
|
static String |
SNOMED_HIERARCHY_URI
Hierarchy URI used for SNOMED is-a relationships.
|
Constructor and Description |
---|
Snomed() |
Modifier and Type | Method and Description |
---|---|
static org.apache.spark.sql.Dataset<Hierarchies.HierarchicalElement> |
readRelationshipFile(org.apache.spark.sql.SparkSession spark,
String snomedRelationshipPath)
Reads a Snomed relationship file and converts it to a
Hierarchies.HierarchicalElement dataset. |
static Hierarchies |
withRelationships(org.apache.spark.sql.SparkSession spark,
Hierarchies hierarchies,
String snomedRelationshipPath,
String snomedVersion)
Returns a ConceptMaps instance with the specified multiaxial hierarchy.
|
public static final String SNOMED_HIERARCHY_URI
public static final String SNOMED_CODE_SYSTEM_URI
public static org.apache.spark.sql.Dataset<Hierarchies.HierarchicalElement> readRelationshipFile(org.apache.spark.sql.SparkSession spark, String snomedRelationshipPath)
Hierarchies.HierarchicalElement
dataset.spark
- the Spark sessionsnomedRelationshipPath
- path to the SNOMED relationship fileHierarchies.HierarchicalElement
representing the hierarchical relationship.public static Hierarchies withRelationships(org.apache.spark.sql.SparkSession spark, Hierarchies hierarchies, String snomedRelationshipPath, String snomedVersion)
Hierarchies.HierarchicalElement
dataset, and adds it to the given hierarchies.spark
- the Spark sessionhierarchies
- a Hierarchies
instance to which the hierarchy will be addedsnomedRelationshipPath
- path to the relationship CSVsnomedVersion
- the version of SNOMED being read.Hierarchies
instance that includes the read hierarchy.Copyright © 2020. All rights reserved.