Interface TerminologyServer<T,​ID>

  • Type Parameters:
    T - concept type
    ID - id type
    All Known Implementing Classes:
    FhirTerminologyServerImpl

    public interface TerminologyServer<T,​ID>
    • Method Detail

      • expand

        List<T> expand​(ID valueSetId)
        Expands the value set identified by the provided ID.
        Parameters:
        valueSetId -
        Returns:
        Returns the list of concepts of type T that conform the expansion of the value set.
      • lookUp

        T lookUp​(ID conceptId)
        Searches all the attributes associated with the concept that corresponds to the provided ID.
        Parameters:
        conceptId -
        Returns:
        A complex Object of type T that contains all the attributes directly associated to the concept identified by the provided ID.
      • validate

        Boolean validate​(T concept,
                         ID valueSetId)
        Evaluates if the concept provided T belongs to the value set identified by the provided ID.
        Parameters:
        concept - to evaluate.
        valueSetId -
        Returns:
        true if the concept belongs to the specified value set.
      • subsumes

        TerminologyServer.SubsumptionResult subsumes​(T conceptA,
                                                     T conceptB)
        Evaluates if the concept B subsumes concept A.
        Parameters:
        concept - that is subsumed by the concept in the second param.
        concept - that subsumes the concept in the first param.
        Returns:
        TerminologyServer.SubsumptionResult indicating the result of the subsumption evaluation.