Package com.ibm.fhir.model.type
Class Annotation.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Annotation.Builder
-
- Enclosing class:
- Annotation
public static class Annotation.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 Annotation.Builderauthor(Element author)The individual responsible for making the annotation.Annotationbuild()Build theAnnotationAnnotation.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Annotation.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Annotation.Builderfrom(Annotation annotation)Annotation.Builderid(String id)Unique id for the element within a resource (for internal references).Annotation.Buildertext(Markdown text)The text of the annotation in markdown format.Annotation.Buildertime(DateTime time)Indicates when this particular annotation was made.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Annotation.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 Annotation.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 Annotation.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
-
author
public Annotation.Builder author(Element author)
The individual responsible for making the annotation.This is a choice element with the following allowed types:
When of typeReference, the allowed resource types for this reference are:PractitionerPatientRelatedPersonOrganization
- Parameters:
author- Individual responsible for the annotation- Returns:
- A reference to this Builder instance
-
time
public Annotation.Builder time(DateTime time)
Indicates when this particular annotation was made.- Parameters:
time- When the annotation was made- Returns:
- A reference to this Builder instance
-
text
public Annotation.Builder text(Markdown text)
The text of the annotation in markdown format.This element is required.
- Parameters:
text- The annotation - text content (as markdown)- Returns:
- A reference to this Builder instance
-
build
public Annotation build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Annotation - Throws:
IllegalStateException- if the current state cannot be built into a valid Annotation per the base specification
-
from
protected Annotation.Builder from(Annotation annotation)
-
-