Class FHIRTermService

    • Method Detail

      • isExpandable

        public boolean isExpandable​(ValueSet valueSet)
        Indicates whether the given value set is expandable
        Specified by:
        isExpandable in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set
        Returns:
        true if the given value set is expandable, false otherwise
      • expand

        public ValueSet expand​(ValueSet valueSet,
                               ExpansionParameters parameters)
        Expand the given value set and expansion parameters
        Specified by:
        expand in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set to expand
        parameters - the expansion parameters
        Returns:
        the expanded value set, or the original value set if already expanded or unable to expand
      • expand

        public ValueSet expand​(ValueSet valueSet)
        Expand the given value set
        Specified by:
        expand in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set to expand
        Returns:
        the expanded value set, or the original value set if already expanded or unable to expand
      • lookup

        public LookupOutcome lookup​(Uri system,
                                    String version,
                                    Code code,
                                    LookupParameters parameters)
        Lookup the code system concept for the given system, version, code and lookup parameters
        Specified by:
        lookup in interface FHIRTermServiceProvider
        Parameters:
        system - the system
        version - the version
        code - the code
        parameters - the lookup parameters
        Returns:
        the outcome of the lookup
      • lookup

        public LookupOutcome lookup​(Uri system,
                                    String version,
                                    Code code)
        Lookup the code system concept for the given system, version, and code
        Specified by:
        lookup in interface FHIRTermServiceProvider
        Parameters:
        system - the system
        version - the version
        code - the code
        Returns:
        the outcome of the lookup
      • lookup

        public LookupOutcome lookup​(Coding coding,
                                    LookupParameters parameters)
        Lookup the code system concept for the given coding and lookup parameters
        Specified by:
        lookup in interface FHIRTermServiceProvider
        Parameters:
        coding - the coding to lookup
        parameters - the lookup parameters
        Returns:
        the outcome of the lookup
      • lookup

        public LookupOutcome lookup​(Coding coding)
        Lookup the code system concept for the given coding
        Specified by:
        lookup in interface FHIRTermServiceProvider
        Parameters:
        coding - the coding to lookup
        Returns:
        the outcome of the lookup
      • subsumes

        public ConceptSubsumptionOutcome subsumes​(Coding codingA,
                                                  Coding codingB)
        Perform a subsumption test to determine if the code system concept represented by the given coding "A" subsumes the code system concept represented by the given coding "B"
        Specified by:
        subsumes in interface FHIRTermServiceProvider
        Parameters:
        codingA - the coding "A"
        codingB - the coding "B"
        Returns:
        the outcome of the subsumption test
      • closure

        public Set<CodeSystem.Concept> closure​(Coding coding)
        Generate the transitive closure for the code system concept represented by the given coding
        Specified by:
        closure in interface FHIRTermServiceProvider
        Parameters:
        coding - the coding
        Returns:
        a set containing the transitive closure for the code system concept represented by the given coding
      • validateCode

        public ValidationOutcome validateCode​(CodeSystem codeSystem,
                                              String version,
                                              Code code,
                                              String display,
                                              ValidationParameters parameters)
        Validate a code and display using the provided code system, version and validation parameters
        Specified by:
        validateCode in interface FHIRTermServiceProvider
        Parameters:
        codeSystem - the code system
        version - the version
        code - the code
        display - the display
        parameters - the validation parameters
        Returns:
        the outcome of validation
      • validateCode

        public ValidationOutcome validateCode​(CodeSystem codeSystem,
                                              String version,
                                              Code code,
                                              String display)
        Validate a code and display using the provided code system and version
        Specified by:
        validateCode in interface FHIRTermServiceProvider
        Parameters:
        code - system the code system
        version - the version
        code - the code
        display - the display
        Returns:
        the outcome of validation
      • validateCode

        public ValidationOutcome validateCode​(ValueSet valueSet,
                                              Uri system,
                                              String version,
                                              Code code,
                                              String display,
                                              ValidationParameters parameters)
        Validate a code and display using the provided value set and validation parameters
        Specified by:
        validateCode in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set
        system - the system
        version - the version
        code - the code
        display - the display
        parameters - the validation parameters
        Returns:
        the outcome of validation
      • validateCode

        public ValidationOutcome validateCode​(ValueSet valueSet,
                                              Uri system,
                                              String version,
                                              Code code,
                                              String display)
        Validate a code and display using the provided value set
        Specified by:
        validateCode in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set
        system - the system
        version - the version
        code - the code
        display - the display
        Returns:
        the outcome of validation
      • validateCode

        public ValidationOutcome validateCode​(ValueSet valueSet,
                                              Coding coding)
        Validate a coding using the provided value set using the provided validation parameters
        Specified by:
        validateCode in interface FHIRTermServiceProvider
        Parameters:
        valueSet - the value set
        coding - the coding
        parameters - the validation parameters
        Returns:
        the outcome of validation
      • translate

        public TranslationOutcome translate​(ConceptMap conceptMap,
                                            Uri system,
                                            String version,
                                            Code code,
                                            TranslationParameters parameters)
        Translate the given system, version and code using the provided concept map and translation parameters
        Specified by:
        translate in interface FHIRTermServiceProvider
        Parameters:
        conceptMap - the concept map
        system - the system
        version - the version
        code - the code
        parameters - the translation parameters
        Returns:
        the outcome of translation
      • translate

        public TranslationOutcome translate​(ConceptMap conceptMap,
                                            Uri system,
                                            String version,
                                            Code code)
        Translate the given system, version and code using the provided concept map
        Specified by:
        translate in interface FHIRTermServiceProvider
        Parameters:
        conceptMap - the concept map
        system - the system
        version - the version
        code - the code
        Returns:
        the outcome of translation