Class AllergyIntolerance.Reaction.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.AllergyIntolerance.Reaction.Builder
-
- Enclosing class:
- AllergyIntolerance.Reaction
public static class AllergyIntolerance.Reaction.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class com.ibm.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllergyIntolerance.Reaction
build()
Build theAllergyIntolerance.Reaction
AllergyIntolerance.Reaction.Builder
description(String description)
Text description about the reaction as a whole, including details of the manifestation if required.AllergyIntolerance.Reaction.Builder
description(java.lang.String description)
Convenience method for settingdescription
.AllergyIntolerance.Reaction.Builder
exposureRoute(CodeableConcept exposureRoute)
Identification of the route by which the subject was exposed to the substance.AllergyIntolerance.Reaction.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.AllergyIntolerance.Reaction.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.protected AllergyIntolerance.Reaction.Builder
from(AllergyIntolerance.Reaction reaction)
AllergyIntolerance.Reaction.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).AllergyIntolerance.Reaction.Builder
manifestation(CodeableConcept... manifestation)
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.AllergyIntolerance.Reaction.Builder
manifestation(java.util.Collection<CodeableConcept> manifestation)
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.AllergyIntolerance.Reaction.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.AllergyIntolerance.Reaction.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.AllergyIntolerance.Reaction.Builder
note(Annotation... note)
Additional text about the adverse reaction event not captured in other fields.AllergyIntolerance.Reaction.Builder
note(java.util.Collection<Annotation> note)
Additional text about the adverse reaction event not captured in other fields.AllergyIntolerance.Reaction.Builder
onset(DateTime onset)
Record of the date and/or time of the onset of the Reaction.AllergyIntolerance.Reaction.Builder
severity(AllergyIntoleranceSeverity severity)
Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.AllergyIntolerance.Reaction.Builder
substance(CodeableConcept substance)
Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event.protected void
validate(AllergyIntolerance.Reaction reaction)
-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public AllergyIntolerance.Reaction.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 AllergyIntolerance.Reaction.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 AllergyIntolerance.Reaction.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 AllergyIntolerance.Reaction.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 AllergyIntolerance.Reaction.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
-
substance
public AllergyIntolerance.Reaction.Builder substance(CodeableConcept substance)
Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance. reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.- Parameters:
substance
- Specific substance or pharmaceutical product considered to be responsible for event- Returns:
- A reference to this Builder instance
-
manifestation
public AllergyIntolerance.Reaction.Builder manifestation(CodeableConcept... manifestation)
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.This element is required.
- Parameters:
manifestation
- Clinical symptoms/signs associated with the Event- Returns:
- A reference to this Builder instance
-
manifestation
public AllergyIntolerance.Reaction.Builder manifestation(java.util.Collection<CodeableConcept> manifestation)
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.This element is required.
- Parameters:
manifestation
- Clinical symptoms/signs associated with the Event- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
description
public AllergyIntolerance.Reaction.Builder description(java.lang.String description)
Convenience method for settingdescription
.- Parameters:
description
- Description of the event as a whole- Returns:
- A reference to this Builder instance
- See Also:
description(com.ibm.fhir.model.type.String)
-
description
public AllergyIntolerance.Reaction.Builder description(String description)
Text description about the reaction as a whole, including details of the manifestation if required.- Parameters:
description
- Description of the event as a whole- Returns:
- A reference to this Builder instance
-
onset
public AllergyIntolerance.Reaction.Builder onset(DateTime onset)
Record of the date and/or time of the onset of the Reaction.- Parameters:
onset
- Date(/time) when manifestations showed- Returns:
- A reference to this Builder instance
-
severity
public AllergyIntolerance.Reaction.Builder severity(AllergyIntoleranceSeverity severity)
Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.- Parameters:
severity
- mild | moderate | severe (of event as a whole)- Returns:
- A reference to this Builder instance
-
exposureRoute
public AllergyIntolerance.Reaction.Builder exposureRoute(CodeableConcept exposureRoute)
Identification of the route by which the subject was exposed to the substance.- Parameters:
exposureRoute
- How the subject was exposed to the substance- Returns:
- A reference to this Builder instance
-
note
public AllergyIntolerance.Reaction.Builder note(Annotation... note)
Additional text about the adverse reaction event not captured in other fields.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
note
- Text about event not captured in other fields- Returns:
- A reference to this Builder instance
-
note
public AllergyIntolerance.Reaction.Builder note(java.util.Collection<Annotation> note)
Additional text about the adverse reaction event not captured in other fields.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:
note
- Text about event not captured in other fields- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public AllergyIntolerance.Reaction build()
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
AllergyIntolerance.Reaction
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Reaction per the base specification
-
validate
protected void validate(AllergyIntolerance.Reaction reaction)
-
from
protected AllergyIntolerance.Reaction.Builder from(AllergyIntolerance.Reaction reaction)
-
-