Class RemoteTermServiceProvider

    • Method Detail

      • close

        public void close()
        Close the client associated with this remote term service provider.
      • closure

        public java.util.Map<Code,​java.util.Set<CodeSystem.Concept>> closure​(CodeSystem codeSystem,
                                                                                   java.util.Set<Code> codes)
        Description copied from interface: FHIRTermServiceProvider
        Get a map of sets containing CodeSystem.Concept instances where all structural hierarchies have been flattened
        Parameters:
        codeSystem - the code system
        codes - the set of roots of hierarchies containing the Concept instances to be flattened
        Returns:
        a map containing flattened sets of Concept instances for the given trees
      • getConcept

        public CodeSystem.Concept getConcept​(CodeSystem codeSystem,
                                             Code code)
        Description copied from interface: FHIRTermServiceProvider
        Get the concept in the provided code system with the specified code. Consumers should not expect the returned Concept to contain child concepts, even where such concepts exist in the underlying CodeSystem.
        Specified by:
        getConcept in interface FHIRTermServiceProvider
        Specified by:
        getConcept in class AbstractTermServiceProvider
        Parameters:
        codeSystem - the code system
        code - the code
        Returns:
        the code system concept with the specified code, or null if no such concept exists
      • getConcepts

        public <R> java.util.Set<R> getConcepts​(CodeSystem codeSystem,
                                                java.util.function.Function<CodeSystem.Concept,​? extends R> function)
        Description copied from interface: FHIRTermServiceProvider
        Get a set containing FHIRTermServiceProvider instances mapped from concepts where all structural hierarchies have been flattened.
        Type Parameters:
        R - the element type of the result set
        Parameters:
        codeSystem - the code system containing the set of Concept instances to be flattened
        function - the function to apply to each element of the result set
        Returns:
        flattened set of FHIRTermServiceProvider instances mapped from concepts for the given code system
      • getConcepts

        public <R> java.util.Set<R> getConcepts​(CodeSystem codeSystem,
                                                java.util.List<ValueSet.Compose.Include.Filter> filters,
                                                java.util.function.Function<CodeSystem.Concept,​? extends R> function)
        Description copied from interface: FHIRTermServiceProvider
        Get a set containing FHIRTermServiceProvider instances mapped from concepts where all structural hierarchies have been flattened and filtered by the given set of value set include filters.
        Type Parameters:
        R - the element type of the result set
        Parameters:
        codeSystem - the code system containing the set of Concept instances to be flattened / filtered
        filters - the value set include filters
        function - the function to apply to each element of the result set
        Returns:
        flattened / filtered set of FHIRTermServiceProvider instances mapped from concepts for the given code system
      • hasConcepts

        public boolean hasConcepts​(CodeSystem codeSystem,
                                   java.util.Set<Code> codes)
        Description copied from interface: FHIRTermServiceProvider
        Indicates whether the given code system contains a concept for each of the specified codes.
        Parameters:
        codeSystem - the code system
        codes - the codes
        Returns:
        true if the given code system contains a concept for each of the specified codes, false otherwise
      • subsumes

        public boolean subsumes​(CodeSystem codeSystem,
                                Code codeA,
                                Code codeB)
        Description copied from interface: FHIRTermServiceProvider
        Indicates whether the concept for CodeA subsumes the concept for codeB in the passed CodeSystem.
        Specified by:
        subsumes in interface FHIRTermServiceProvider
        Specified by:
        subsumes in class AbstractTermServiceProvider
        Parameters:
        codeSystem - the code system
        codeA - the root of the hierarchy to search
        codeB - the code to match
        Returns:
        true if the code system concept for codeB exists in the tree rooted by the concept for CodeA, false otherwise