Interface FHIRTermServiceProvider

    • Method Detail

      • isSupported

        boolean isSupported​(CodeSystem codeSystem)
        Indicates whether the given code system is supported
        Parameters:
        codeSystem - the code system
        Returns:
        true if the given code system is supported, false otherwise
      • findConcept

        CodeSystem.Concept findConcept​(CodeSystem codeSystem,
                                       Code code)
        Find the concept in the provided code system that matches the specified code.
        Parameters:
        codeSystem - the code system to search
        code - the code to match
        Returns:
        the code system concept that matches the specified code, or null if no such concept exists
      • findConcept

        CodeSystem.Concept findConcept​(CodeSystem codeSystem,
                                       CodeSystem.Concept concept,
                                       Code code)
        Find the concept in tree rooted by the provided concept that matches the specified code.
        Parameters:
        codeSystem - the code system
        concept - the root of the hierarchy to search
        code - the code to match
        Returns:
        the code system concept that matches the specified code, or null if not such concept exists
      • getConcepts

        Set<CodeSystem.Concept> getConcepts​(CodeSystem codeSystem)
        Get a set containing CodeSystem.Concept instances where all structural hierarchies have been flattened.
        Parameters:
        codeSystem - the code system
        Returns:
        flattened list of Concept instances for the given code system
      • getConcepts

        Set<CodeSystem.Concept> getConcepts​(CodeSystem codeSystem,
                                            CodeSystem.Concept concept)
        Get a set containing CodeSystem.Concept instances where all structural hierarchies have been flattened.
        Parameters:
        codeSystem - the code system
        concept - the root of the hierarchy containing the Concept instances to be flattened
        Returns:
        flattened set of Concept instances for the given tree