Class AbstractTermServiceProvider

    • Constructor Detail

      • AbstractTermServiceProvider

        public AbstractTermServiceProvider()
    • Method Detail

      • 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
      • 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)