Package com.ibm.fhir.model.resource
Class ValueSet
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.ValueSet
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class ValueSet extends DomainResource
A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements] (terminologies.html).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValueSet.Builder
static class
ValueSet.Compose
A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from.static class
ValueSet.Expansion
A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static ValueSet.Builder
builder()
boolean
equals(Object obj)
ValueSet.Compose
getCompose()
A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from.List<ContactDetail>
getContact()
Contact details to assist a user in finding and communicating with the publisher.Markdown
getCopyright()
A copyright statement relating to the value set and/or its contents.DateTime
getDate()
The date (and optionally time) when the value set was created or revised (e.g.Markdown
getDescription()
A free text natural language description of the value set from a consumer's perspective.ValueSet.Expansion
getExpansion()
A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes.Boolean
getExperimental()
A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.List<Identifier>
getIdentifier()
A 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.Boolean
getImmutable()
If this is set to 'true', then no new versions of the content logical definition can be created.List<CodeableConcept>
getJurisdiction()
A legal or geographic region in which the value set is intended to be used.String
getName()
A natural language name identifying the value set.String
getPublisher()
The name of the organization or individual that published the value set.Markdown
getPurpose()
Explanation of why this value set is needed and why it has been designed as it has.PublicationStatus
getStatus()
The status of this value set.String
getTitle()
A short, descriptive, user-friendly title for the value set.Uri
getUrl()
An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier.List<UsageContext>
getUseContext()
The content was developed with a focus and intent of supporting the contexts that are listed.String
getVersion()
The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance.boolean
hasChildren()
int
hashCode()
ValueSet.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getUrl
public Uri getUrl()
An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.- Returns:
- An immutable object of type
Uri
that may be null.
-
getIdentifier
public List<Identifier> getIdentifier()
A 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.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getVersion
public String getVersion()
The identifier that is 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 value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.- Returns:
- An immutable object of type
String
that may be null.
-
getName
public String getName()
A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.- Returns:
- An immutable object of type
String
that may be null.
-
getTitle
public String getTitle()
A short, descriptive, user-friendly title for the value set.- Returns:
- An immutable object of type
String
that may be null.
-
getStatus
public PublicationStatus getStatus()
The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.- Returns:
- An immutable object of type
PublicationStatus
that is non-null.
-
getExperimental
public Boolean getExperimental()
A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.- Returns:
- An immutable object of type
Boolean
that may be null.
-
getDate
public DateTime getDate()
The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').- Returns:
- An immutable object of type
DateTime
that may be null.
-
getPublisher
public String getPublisher()
The name of the organization or individual that published the value set.- Returns:
- An immutable object of type
String
that may be null.
-
getContact
public List<ContactDetail> getContact()
Contact details to assist a user in finding and communicating with the publisher.- Returns:
- An unmodifiable list containing immutable objects of type
ContactDetail
that may be empty.
-
getDescription
public Markdown getDescription()
A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.- Returns:
- An immutable object of type
Markdown
that may be null.
-
getUseContext
public List<UsageContext> getUseContext()
The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate value set instances.- Returns:
- An unmodifiable list containing immutable objects of type
UsageContext
that may be empty.
-
getJurisdiction
public List<CodeableConcept> getJurisdiction()
A legal or geographic region in which the value set is intended to be used.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that may be empty.
-
getImmutable
public Boolean getImmutable()
If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change.- Returns:
- An immutable object of type
Boolean
that may be null.
-
getPurpose
public Markdown getPurpose()
Explanation of why this value set is needed and why it has been designed as it has.- Returns:
- An immutable object of type
Markdown
that may be null.
-
getCopyright
public Markdown getCopyright()
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.- Returns:
- An immutable object of type
Markdown
that may be null.
-
getCompose
public ValueSet.Compose getCompose()
A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).- Returns:
- An immutable object of type
ValueSet.Compose
that may be null.
-
getExpansion
public ValueSet.Expansion getExpansion()
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.- Returns:
- An immutable object of type
ValueSet.Expansion
that may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
toBuilder
public ValueSet.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static ValueSet.Builder builder()
-
-