Package com.ibm.fhir.model.type
Class ContactPoint.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.ContactPoint.Builder
-
- Enclosing class:
- ContactPoint
public static class ContactPoint.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 ContactPointbuild()Build theContactPointContactPoint.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ContactPoint.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected ContactPoint.Builderfrom(ContactPoint contactPoint)ContactPoint.Builderid(String id)Unique id for the element within a resource (for internal references).ContactPoint.Builderperiod(Period period)Time period when the contact point was/is in use.ContactPoint.Builderrank(PositiveInt rank)Specifies a preferred order in which to use a set of contacts.ContactPoint.Buildersystem(ContactPointSystem system)Telecommunications form for contact point - what communications system is required to make use of the contact.ContactPoint.Builderuse(ContactPointUse use)Identifies the purpose for the contact point.ContactPoint.Buildervalue(String value)The actual contact point details, in a form that is meaningful to the designated communication system (i.e.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public ContactPoint.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 ContactPoint.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 ContactPoint.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
-
system
public ContactPoint.Builder system(ContactPointSystem system)
Telecommunications form for contact point - what communications system is required to make use of the contact.- Parameters:
system- phone | fax | email | pager | url | sms | other- Returns:
- A reference to this Builder instance
-
value
public ContactPoint.Builder value(String value)
The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).- Parameters:
value- The actual contact point details- Returns:
- A reference to this Builder instance
-
use
public ContactPoint.Builder use(ContactPointUse use)
Identifies the purpose for the contact point.- Parameters:
use- home | work | temp | old | mobile - purpose of this contact point- Returns:
- A reference to this Builder instance
-
rank
public ContactPoint.Builder rank(PositiveInt rank)
Specifies a preferred order in which to use a set of contacts. ContactPoints with lower rank values are more preferred than those with higher rank values.- Parameters:
rank- Specify preferred order of use (1 = highest)- Returns:
- A reference to this Builder instance
-
period
public ContactPoint.Builder period(Period period)
Time period when the contact point was/is in use.- Parameters:
period- Time period when the contact point was/is in use- Returns:
- A reference to this Builder instance
-
build
public ContactPoint build()
Build theContactPoint- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
ContactPoint - Throws:
IllegalStateException- if the current state cannot be built into a valid ContactPoint per the base specification
-
from
protected ContactPoint.Builder from(ContactPoint contactPoint)
-
-