Class ValueSet

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

    public class ValueSet
    extends DomainResource
    A value set specifies a set of codes drawn from one or more code systems.
    See Also:
    Serialized Form
    • Field Detail

      • url

        protected UriType url
        An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.
      • identifier

        protected Identifier identifier
        Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.
      • version

        protected StringType version
        Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.
      • name

        protected StringType name
        A free text natural language name describing the value set.
      • experimental

        protected BooleanType experimental
        This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
      • publisher

        protected StringType publisher
        The name of the individual or organization that published the value set.
      • date

        protected DateTimeType date
        The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').
      • lockedDate

        protected DateType lockedDate
        If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.
      • description

        protected StringType description
        A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
      • useContext

        protected List<CodeableConcept> useContext
        The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of value set definitions.
      • immutable

        protected BooleanType immutable
        If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.
      • requirements

        protected StringType requirements
        Explains why this value set is needed and why it has been constrained as it has.
      • copyright

        protected StringType copyright
        A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
      • extensible

        protected BooleanType extensible
        Whether this is intended to be used with an extensible binding or not.
      • compose

        protected ValueSet.ValueSetComposeComponent compose
        A set of criteria that provide the content logical definition of the value set by including or excluding codes from outside this value set.
      • expansion

        protected ValueSet.ValueSetExpansionComponent expansion
        A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.
      • SP_EXPANSION

        public static final String SP_EXPANSION
        Search parameter: expansion

        Description: Uniquely identifies this expansion
        Type: uri
        Path: ValueSet.expansion.identifier

        See Also:
        Constant Field Values
      • EXPANSION

        public static final ca.uhn.fhir.rest.gclient.UriClientParam EXPANSION
        Fluent Client search parameter constant for expansion

        Description: Uniquely identifies this expansion
        Type: uri
        Path: ValueSet.expansion.identifier

      • SP_STATUS

        public static final String SP_STATUS
        Search parameter: status

        Description: The status of the value set
        Type: token
        Path: ValueSet.status

        See Also:
        Constant Field Values
      • STATUS

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
        Fluent Client search parameter constant for status

        Description: The status of the value set
        Type: token
        Path: ValueSet.status

      • SP_DESCRIPTION

        public static final String SP_DESCRIPTION
        Search parameter: description

        Description: Text search in the description of the value set
        Type: string
        Path: ValueSet.description

        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION
        Fluent Client search parameter constant for description

        Description: Text search in the description of the value set
        Type: string
        Path: ValueSet.description

      • SP_NAME

        public static final String SP_NAME
        Search parameter: name

        Description: The name of the value set
        Type: string
        Path: ValueSet.name

        See Also:
        Constant Field Values
      • NAME

        public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME
        Fluent Client search parameter constant for name

        Description: The name of the value set
        Type: string
        Path: ValueSet.name

      • SP_CONTEXT

        public static final String SP_CONTEXT
        Search parameter: context

        Description: A use context assigned to the value set
        Type: token
        Path: ValueSet.useContext

        See Also:
        Constant Field Values
      • CONTEXT

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT
        Fluent Client search parameter constant for context

        Description: A use context assigned to the value set
        Type: token
        Path: ValueSet.useContext

      • SP_DATE

        public static final String SP_DATE
        Search parameter: date

        Description: The value set publication date
        Type: date
        Path: ValueSet.date

        See Also:
        Constant Field Values
      • DATE

        public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
        Fluent Client search parameter constant for date

        Description: The value set publication date
        Type: date
        Path: ValueSet.date

      • SP_IDENTIFIER

        public static final String SP_IDENTIFIER
        Search parameter: identifier

        Description: The identifier for the value set
        Type: token
        Path: ValueSet.identifier

        See Also:
        Constant Field Values
      • IDENTIFIER

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
        Fluent Client search parameter constant for identifier

        Description: The identifier for the value set
        Type: token
        Path: ValueSet.identifier

      • SP_REFERENCE

        public static final String SP_REFERENCE
        Search parameter: reference

        Description: A code system included or excluded in the value set or an imported value set
        Type: uri
        Path: ValueSet.compose.include.system

        See Also:
        Constant Field Values
      • REFERENCE

        public static final ca.uhn.fhir.rest.gclient.UriClientParam REFERENCE
        Fluent Client search parameter constant for reference

        Description: A code system included or excluded in the value set or an imported value set
        Type: uri
        Path: ValueSet.compose.include.system

      • SP_URL

        public static final String SP_URL
        Search parameter: url

        Description: The logical URL for the value set
        Type: uri
        Path: ValueSet.url

        See Also:
        Constant Field Values
      • URL

        public static final ca.uhn.fhir.rest.gclient.UriClientParam URL
        Fluent Client search parameter constant for url

        Description: The logical URL for the value set
        Type: uri
        Path: ValueSet.url

      • SP_PUBLISHER

        public static final String SP_PUBLISHER
        Search parameter: publisher

        Description: Name of the publisher of the value set
        Type: string
        Path: ValueSet.publisher

        See Also:
        Constant Field Values
      • PUBLISHER

        public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER
        Fluent Client search parameter constant for publisher

        Description: Name of the publisher of the value set
        Type: string
        Path: ValueSet.publisher

      • SP_VERSION

        public static final String SP_VERSION
        Search parameter: version

        Description: The version identifier of the value set
        Type: token
        Path: ValueSet.version

        See Also:
        Constant Field Values
      • VERSION

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION
        Fluent Client search parameter constant for version

        Description: The version identifier of the value set
        Type: token
        Path: ValueSet.version

    • Method Detail

      • getUrlElement

        public UriType getUrlElement()
        Returns:
        url (An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
      • hasUrl

        public boolean hasUrl()
      • setUrlElement

        public ValueSet setUrlElement​(UriType value)
        Parameters:
        value - url (An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
      • getUrl

        public String getUrl()
        Returns:
        An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.
      • setUrl

        public ValueSet setUrl​(String value)
        Parameters:
        value - An absolute URL that is used to identify this value set when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this value set is (or will be) published.
      • getIdentifier

        public Identifier getIdentifier()
        Returns:
        identifier (Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.)
      • setIdentifier

        public ValueSet setIdentifier​(Identifier value)
        Parameters:
        value - identifier (Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.)
      • getVersionElement

        public StringType getVersionElement()
        Returns:
        version (Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
      • setVersionElement

        public ValueSet setVersionElement​(StringType value)
        Parameters:
        value - version (Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
      • getVersion

        public String getVersion()
        Returns:
        Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.
      • setVersion

        public ValueSet setVersion​(String value)
        Parameters:
        value - Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.
      • getNameElement

        public StringType getNameElement()
        Returns:
        name (A free text natural language name describing the value set.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
      • hasName

        public boolean hasName()
      • setNameElement

        public ValueSet setNameElement​(StringType value)
        Parameters:
        value - name (A free text natural language name describing the value set.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
      • getName

        public String getName()
        Returns:
        A free text natural language name describing the value set.
      • setName

        public ValueSet setName​(String value)
        Parameters:
        value - A free text natural language name describing the value set.
      • getExperimentalElement

        public BooleanType getExperimentalElement()
        Returns:
        experimental (This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
      • setExperimentalElement

        public ValueSet setExperimentalElement​(BooleanType value)
        Parameters:
        value - experimental (This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
      • getExperimental

        public boolean getExperimental()
        Returns:
        This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
      • setExperimental

        public ValueSet setExperimental​(boolean value)
        Parameters:
        value - This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
      • getPublisherElement

        public StringType getPublisherElement()
        Returns:
        publisher (The name of the individual or organization that published the value set.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
      • setPublisherElement

        public ValueSet setPublisherElement​(StringType value)
        Parameters:
        value - publisher (The name of the individual or organization that published the value set.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
      • getPublisher

        public String getPublisher()
        Returns:
        The name of the individual or organization that published the value set.
      • setPublisher

        public ValueSet setPublisher​(String value)
        Parameters:
        value - The name of the individual or organization that published the value set.
      • getDateElement

        public DateTimeType getDateElement()
        Returns:
        date (The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
      • hasDate

        public boolean hasDate()
      • setDateElement

        public ValueSet setDateElement​(DateTimeType value)
        Parameters:
        value - date (The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
      • getDate

        public Date getDate()
        Returns:
        The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').
      • setDate

        public ValueSet setDate​(Date value)
        Parameters:
        value - The date that the value set status was last changed. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes (e.g. the 'content logical definition').
      • getLockedDateElement

        public DateType getLockedDateElement()
        Returns:
        lockedDate (If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
      • setLockedDateElement

        public ValueSet setLockedDateElement​(DateType value)
        Parameters:
        value - lockedDate (If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.). This is the underlying object with id, value and extensions. The accessor "getLockedDate" gives direct access to the value
      • getLockedDate

        public Date getLockedDate()
        Returns:
        If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.
      • setLockedDate

        public ValueSet setLockedDate​(Date value)
        Parameters:
        value - If a locked date is defined, then the Content Logical Definition must be evaluated using the current version of all referenced code system(s) and value set instances as of the locked date.
      • getDescriptionElement

        public StringType getDescriptionElement()
        Returns:
        description (A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • setDescriptionElement

        public ValueSet setDescriptionElement​(StringType value)
        Parameters:
        value - description (A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • getDescription

        public String getDescription()
        Returns:
        A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
      • setDescription

        public ValueSet setDescription​(String value)
        Parameters:
        value - A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set.
      • getUseContext

        public List<CodeableConceptgetUseContext()
        Returns:
        useContext (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of value set definitions.)
      • addUseContext

        public CodeableConcept addUseContext()
        Returns:
        useContext (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of value set definitions.)
      • getImmutableElement

        public BooleanType getImmutableElement()
        Returns:
        immutable (If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.). This is the underlying object with id, value and extensions. The accessor "getImmutable" gives direct access to the value
      • setImmutableElement

        public ValueSet setImmutableElement​(BooleanType value)
        Parameters:
        value - immutable (If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.). This is the underlying object with id, value and extensions. The accessor "getImmutable" gives direct access to the value
      • getImmutable

        public boolean getImmutable()
        Returns:
        If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.
      • setImmutable

        public ValueSet setImmutable​(boolean value)
        Parameters:
        value - If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.
      • getRequirementsElement

        public StringType getRequirementsElement()
        Returns:
        requirements (Explains why this value set is needed and why it has been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
      • setRequirementsElement

        public ValueSet setRequirementsElement​(StringType value)
        Parameters:
        value - requirements (Explains why this value set is needed and why it has been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
      • getRequirements

        public String getRequirements()
        Returns:
        Explains why this value set is needed and why it has been constrained as it has.
      • setRequirements

        public ValueSet setRequirements​(String value)
        Parameters:
        value - Explains why this value set is needed and why it has been constrained as it has.
      • getCopyrightElement

        public StringType getCopyrightElement()
        Returns:
        copyright (A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
      • setCopyrightElement

        public ValueSet setCopyrightElement​(StringType value)
        Parameters:
        value - copyright (A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
      • getCopyright

        public String getCopyright()
        Returns:
        A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
      • setCopyright

        public ValueSet setCopyright​(String value)
        Parameters:
        value - A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.
      • getExtensibleElement

        public BooleanType getExtensibleElement()
        Returns:
        extensible (Whether this is intended to be used with an extensible binding or not.). This is the underlying object with id, value and extensions. The accessor "getExtensible" gives direct access to the value
      • setExtensibleElement

        public ValueSet setExtensibleElement​(BooleanType value)
        Parameters:
        value - extensible (Whether this is intended to be used with an extensible binding or not.). This is the underlying object with id, value and extensions. The accessor "getExtensible" gives direct access to the value
      • getExtensible

        public boolean getExtensible()
        Returns:
        Whether this is intended to be used with an extensible binding or not.
      • setExtensible

        public ValueSet setExtensible​(boolean value)
        Parameters:
        value - Whether this is intended to be used with an extensible binding or not.
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class DomainResource
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class DomainResource
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class DomainResource