Class CombinedAnatomicConcepts


  • public class CombinedAnatomicConcepts
    extends DisplayableConcept

    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 Detail

      • combinations

        protected static com.pixelmed.anatproc.Combination[] combinations
    • Constructor Detail

      • CombinedAnatomicConcepts

        public CombinedAnatomicConcepts()
    • Method Detail

      • newConceptArray

        protected static Concept[] newConceptArray​(Concept... values)
      • getCombinedConcept

        public static Concept getCombinedConcept​(Concept[] concepts)

        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

        public static Concept getCombinedConcept​(Concept a,
                                                 Concept b)

        Combine two concepts into a single concept containing both if possible.

        Parameters:
        a - one concept
        b - another concept
        Returns:
        a combined concept if it exists, else null
      • getCombinedConcept

        public static DisplayableConcept getCombinedConcept​(Concept[] concepts,
                                                            DictionaryOfConcepts dict)

        Combine multiple concepts into a single concept containing all if possible.

        Parameters:
        concepts - the concepts to combine
        dict - 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 concept
        b - another concept
        dict - dictionary of concepts to lookup
        Returns:
        a combined concept if it exists and is present in the dictionary, else null