Class ValueSet.Expansion.Contains.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.BackboneElement.Builder
-
- org.linuxforhealth.fhir.model.resource.ValueSet.Expansion.Contains.Builder
-
- Enclosing class:
- ValueSet.Expansion.Contains
public static class ValueSet.Expansion.Contains.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueSet.Expansion.Contains.Builder
_abstract(java.lang.Boolean _abstract)
Convenience method for setting_abstract
.ValueSet.Expansion.Contains.Builder
_abstract(Boolean _abstract)
If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.ValueSet.Expansion.Contains
build()
Build theValueSet.Expansion.Contains
ValueSet.Expansion.Contains.Builder
code(Code code)
The code for this item in the expansion hierarchy.ValueSet.Expansion.Contains.Builder
contains(java.util.Collection<ValueSet.Expansion.Contains> contains)
Other codes and entries contained under this entry in the hierarchy.ValueSet.Expansion.Contains.Builder
contains(ValueSet.Expansion.Contains... contains)
Other codes and entries contained under this entry in the hierarchy.ValueSet.Expansion.Contains.Builder
designation(java.util.Collection<ValueSet.Compose.Include.Concept.Designation> designation)
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc.ValueSet.Expansion.Contains.Builder
designation(ValueSet.Compose.Include.Concept.Designation... designation)
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc.ValueSet.Expansion.Contains.Builder
display(java.lang.String display)
Convenience method for settingdisplay
.ValueSet.Expansion.Contains.Builder
display(String display)
The recommended display for this item in the expansion.ValueSet.Expansion.Contains.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.ValueSet.Expansion.Contains.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected ValueSet.Expansion.Contains.Builder
from(ValueSet.Expansion.Contains contains)
ValueSet.Expansion.Contains.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).ValueSet.Expansion.Contains.Builder
inactive(java.lang.Boolean inactive)
Convenience method for settinginactive
.ValueSet.Expansion.Contains.Builder
inactive(Boolean inactive)
If the concept is inactive in the code system that defines it.ValueSet.Expansion.Contains.Builder
modifierExtension(java.util.Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ValueSet.Expansion.Contains.Builder
modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ValueSet.Expansion.Contains.Builder
system(Uri system)
An absolute URI which is the code system in which the code for this item in the expansion is defined.protected void
validate(ValueSet.Expansion.Contains contains)
ValueSet.Expansion.Contains.Builder
version(java.lang.String version)
Convenience method for settingversion
.ValueSet.Expansion.Contains.Builder
version(String version)
The version of the code system from this code was taken.-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public ValueSet.Expansion.Contains.Builder id(java.lang.String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
id
in classBackboneElement.Builder
- Parameters:
id
- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public ValueSet.Expansion.Contains.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ValueSet.Expansion.Contains.Builder extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
modifierExtension
public ValueSet.Expansion.Contains.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public ValueSet.Expansion.Contains.Builder modifierExtension(java.util.Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
system
public ValueSet.Expansion.Contains.Builder system(Uri system)
An absolute URI which is the code system in which the code for this item in the expansion is defined.- Parameters:
system
- System value for the code- Returns:
- A reference to this Builder instance
-
_abstract
public ValueSet.Expansion.Contains.Builder _abstract(java.lang.Boolean _abstract)
Convenience method for setting_abstract
.- Parameters:
_abstract
- If user cannot select this entry- Returns:
- A reference to this Builder instance
- See Also:
_abstract(org.linuxforhealth.fhir.model.type.Boolean)
-
_abstract
public ValueSet.Expansion.Contains.Builder _abstract(Boolean _abstract)
If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.- Parameters:
_abstract
- If user cannot select this entry- Returns:
- A reference to this Builder instance
-
inactive
public ValueSet.Expansion.Contains.Builder inactive(java.lang.Boolean inactive)
Convenience method for settinginactive
.- Parameters:
inactive
- If concept is inactive in the code system- Returns:
- A reference to this Builder instance
- See Also:
inactive(org.linuxforhealth.fhir.model.type.Boolean)
-
inactive
public ValueSet.Expansion.Contains.Builder inactive(Boolean inactive)
If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).- Parameters:
inactive
- If concept is inactive in the code system- Returns:
- A reference to this Builder instance
-
version
public ValueSet.Expansion.Contains.Builder version(java.lang.String version)
Convenience method for settingversion
.- Parameters:
version
- Version in which this code/display is defined- Returns:
- A reference to this Builder instance
- See Also:
version(org.linuxforhealth.fhir.model.type.String)
-
version
public ValueSet.Expansion.Contains.Builder version(String version)
The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.- Parameters:
version
- Version in which this code/display is defined- Returns:
- A reference to this Builder instance
-
code
public ValueSet.Expansion.Contains.Builder code(Code code)
The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.- Parameters:
code
- Code - if blank, this is not a selectable code- Returns:
- A reference to this Builder instance
-
display
public ValueSet.Expansion.Contains.Builder display(java.lang.String display)
Convenience method for settingdisplay
.- Parameters:
display
- User display for the concept- Returns:
- A reference to this Builder instance
- See Also:
display(org.linuxforhealth.fhir.model.type.String)
-
display
public ValueSet.Expansion.Contains.Builder display(String display)
The recommended display for this item in the expansion.- Parameters:
display
- User display for the concept- Returns:
- A reference to this Builder instance
-
designation
public ValueSet.Expansion.Contains.Builder designation(ValueSet.Compose.Include.Concept.Designation... designation)
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
designation
- Additional representations for this item- Returns:
- A reference to this Builder instance
-
designation
public ValueSet.Expansion.Contains.Builder designation(java.util.Collection<ValueSet.Compose.Include.Concept.Designation> designation)
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
designation
- Additional representations for this item- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
contains
public ValueSet.Expansion.Contains.Builder contains(ValueSet.Expansion.Contains... contains)
Other codes and entries contained under this entry in the hierarchy.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
contains
- Codes contained under this entry- Returns:
- A reference to this Builder instance
-
contains
public ValueSet.Expansion.Contains.Builder contains(java.util.Collection<ValueSet.Expansion.Contains> contains)
Other codes and entries contained under this entry in the hierarchy.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
contains
- Codes contained under this entry- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public ValueSet.Expansion.Contains build()
Build theValueSet.Expansion.Contains
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
ValueSet.Expansion.Contains
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Contains per the base specification
-
validate
protected void validate(ValueSet.Expansion.Contains contains)
-
from
protected ValueSet.Expansion.Contains.Builder from(ValueSet.Expansion.Contains contains)
-
-