Class AbstractTermServiceProvider

    • Constructor Detail

      • AbstractTermServiceProvider

        public AbstractTermServiceProvider()
    • Method Detail

      • closure

        public abstract java.util.Set<CodeSystem.Concept> closure​(CodeSystem codeSystem,
                                                                  Code code)
        Description copied from interface: FHIRTermServiceProvider
        Get a set containing CodeSystem.Concept instances where all structural hierarchies have been flattened.
        Specified by:
        closure in interface FHIRTermServiceProvider
        Parameters:
        codeSystem - the code system
        code - the root of the hierarchy containing the Concept instances to be flattened
        Returns:
        flattened set of Concept instances for the given tree
      • getConcept

        public abstract 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
        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 abstract java.util.Set<CodeSystem.Concept> getConcepts​(CodeSystem codeSystem,
                                                                      java.util.List<ValueSet.Compose.Include.Filter> filters)
        Description copied from interface: FHIRTermServiceProvider
        Get a set containing CodeSystem.Concept instances where all structural hierarchies have been flattened and filtered by the given set of value set include filters.
        Specified by:
        getConcepts in interface FHIRTermServiceProvider
        Parameters:
        codeSystem - the code system containing the set of Concept instances to be flattened / filtered
        filters - the value set include filters
        Returns:
        flattened / filtered set of Concept instances for the given code system
      • hasConcept

        public abstract boolean hasConcept​(CodeSystem codeSystem,
                                           Code code)
        Description copied from interface: FHIRTermServiceProvider
        Indicates whether the given code system contains a concept with the specified code.
        Specified by:
        hasConcept in interface FHIRTermServiceProvider
        Parameters:
        codeSystem - the code system
        code - the code
        Returns:
        true if the given code system contains a concept with the specified code, false otherwise
      • isSupported

        public abstract boolean isSupported​(CodeSystem codeSystem)
        Description copied from interface: FHIRTermServiceProvider
        Indicates whether the given code system is supported.
        Specified by:
        isSupported in interface FHIRTermServiceProvider
        Parameters:
        codeSystem - the code system
        Returns:
        true if the given code system is supported, false otherwise
      • subsumes

        public abstract 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
        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
      • checkArgument

        protected void checkArgument​(CodeSystem codeSystem)
      • checkArguments

        protected void checkArguments​(CodeSystem codeSystem,
                                      Code code)
      • checkArguments

        protected void checkArguments​(CodeSystem codeSystem,
                                      Code codeA,
                                      Code codeB)
      • checkArguments

        protected <R> void checkArguments​(CodeSystem codeSystem,
                                          java.util.function.Function<CodeSystem.Concept,​? extends R> function)