Package com.ibm.fhir.model.type
Class CodeableConcept.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.CodeableConcept.Builder
-
- Enclosing class:
- CodeableConcept
public static class CodeableConcept.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeableConceptbuild()Build theCodeableConceptCodeableConcept.Buildercoding(Coding... coding)A reference to a code defined by a terminology system.CodeableConcept.Buildercoding(Collection<Coding> coding)A reference to a code defined by a terminology system.CodeableConcept.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.CodeableConcept.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected CodeableConcept.Builderfrom(CodeableConcept codeableConcept)CodeableConcept.Builderid(String id)Unique id for the element within a resource (for internal references).CodeableConcept.Buildertext(String text)A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public CodeableConcept.Builder id(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:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public CodeableConcept.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
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public CodeableConcept.Builder extension(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
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
coding
public CodeableConcept.Builder coding(Coding... coding)
A reference to a code defined by a terminology system.Adds new element(s) to the existing list
- Parameters:
coding- Code defined by a terminology system- Returns:
- A reference to this Builder instance
-
coding
public CodeableConcept.Builder coding(Collection<Coding> coding)
A reference to a code defined by a terminology system.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
coding- Code defined by a terminology system- Returns:
- A reference to this Builder instance
-
text
public CodeableConcept.Builder text(String text)
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.- Parameters:
text- Plain text representation of the concept- Returns:
- A reference to this Builder instance
-
build
public CodeableConcept build()
Build theCodeableConcept- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
CodeableConcept - Throws:
IllegalStateException- if the current state cannot be built into a valid CodeableConcept per the base specification
-
from
protected CodeableConcept.Builder from(CodeableConcept codeableConcept)
-
-