Package com.pixelmed.anatproc
Class CombinedAnatomicConcepts
java.lang.Object
com.pixelmed.anatproc.Concept
com.pixelmed.anatproc.CodedConcept
com.pixelmed.anatproc.DisplayableConcept
com.pixelmed.anatproc.CombinedAnatomicConcepts
This class supports anatomic concepts that may be combinations of one another.
Instances cannot be constructed directly, but rather are looked up using static methods that access a library of known combinations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static com.pixelmed.anatproc.Combination[]
Fields inherited from class com.pixelmed.anatproc.DisplayableConcept
fullyQualifiedMenuEntry, shortcutMenuEntry
Fields inherited from class com.pixelmed.anatproc.CodedConcept
codeMeaning, codeStringEquivalent, codeValue, codingSchemeDesignator, codingSchemeVersion, conceptIdentifier, legacyCodingSchemeDesignator, synonynms
Fields inherited from class com.pixelmed.anatproc.Concept
conceptUniqueIdentifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Concept
getCombinedConcept
(Concept[] concepts) Combine multiple concepts into a single concept containing all if possible.static DisplayableConcept
getCombinedConcept
(Concept[] concepts, DictionaryOfConcepts dict) Combine multiple concepts into a single concept containing all if possible.static Concept
getCombinedConcept
(Concept a, Concept b) Combine two concepts into a single concept containing both if possible.static DisplayableConcept
getCombinedConcept
(Concept a, Concept b, DictionaryOfConcepts dict) Combine two concepts into a single concept containing both if possible.protected static Concept[]
newConceptArray
(Concept... values) Methods inherited from class com.pixelmed.anatproc.DisplayableConcept
getFullyQualifiedMenuEntry, getShortcutMenuEntry, toString
Methods inherited from class com.pixelmed.anatproc.CodedConcept
getCodeAsString, getCodedSequenceItem, getCodeMeaning, getCodeStringEquivalent, getCodeValue, getCodingSchemeDesignator, getCodingSchemeVersion, getConceptIdentifier, getLegacyCodingSchemeDesignator, getSynonyms, toStringBrief
Methods inherited from class com.pixelmed.anatproc.Concept
equals, getConceptUniqueIdentifier, hashCode
-
Field Details
-
combinations
protected static com.pixelmed.anatproc.Combination[] combinations
-
-
Constructor Details
-
CombinedAnatomicConcepts
public CombinedAnatomicConcepts()
-
-
Method Details
-
newConceptArray
-
getCombinedConcept
Combine multiple concepts into a single concept containing all if possible.
- Parameters:
concepts
- the concepts to combine- Returns:
- a combined concept if it exists, else null
-
getCombinedConcept
Combine two concepts into a single concept containing both if possible.
- Parameters:
a
- one conceptb
- another concept- Returns:
- a combined concept if it exists, else null
-
getCombinedConcept
Combine multiple concepts into a single concept containing all if possible.
- Parameters:
concepts
- the concepts to combinedict
- dictionary of concepts to lookup- Returns:
- a combined concept if it exists and is present in the dictionary, else null
-
getCombinedConcept
public static DisplayableConcept getCombinedConcept(Concept a, Concept b, DictionaryOfConcepts dict) Combine two concepts into a single concept containing both if possible.
- Parameters:
a
- one conceptb
- another conceptdict
- dictionary of concepts to lookup- Returns:
- a combined concept if it exists and is present in the dictionary, else null
-