Class TermMapper

    • Method Detail

      • map

        public Term map​(EntityDetail entityDetail)
        Map (convert) EntityDetail to Term or a sub type of Term
        Parameters:
        entityDetail - the supplied EntityDetail
        Returns:
        Term the equivalent Term to the supplied entityDetail.
      • mapPrimitiveToNode

        protected boolean mapPrimitiveToNode​(Term term,
                                             String propertyName,
                                             Object value)
        Map a primitive omrs property to the term object.
        Overrides:
        mapPrimitiveToNode in class EntityDetailMapper<Term>
        Parameters:
        term - the term to be updated
        propertyName - the omrs property name
        value - the omrs primitive property value
        Returns:
        true if the propertyName was recognised and mapped to the Node, otherwise false
      • updateNodeWithClassification

        protected boolean updateNodeWithClassification​(Term term,
                                                       Classification omasClassification)
      • getInlinedClassifications

        protected List<Classification> getInlinedClassifications​(Term term)
        A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications)
        Parameters:
        term - supplied term
        Returns:
        inlined classifications.