Package com.ibm.fhir.model.resource
Class AllergyIntolerance.Reaction
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.AllergyIntolerance.Reaction
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- AllergyIntolerance
public static class AllergyIntolerance.Reaction extends BackboneElement
Details about each adverse reaction event linked to exposure to the identified substance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AllergyIntolerance.Reaction.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static AllergyIntolerance.Reaction.Builder
builder()
boolean
equals(java.lang.Object obj)
String
getDescription()
Text description about the reaction as a whole, including details of the manifestation if required.CodeableConcept
getExposureRoute()
Identification of the route by which the subject was exposed to the substance.java.util.List<CodeableConcept>
getManifestation()
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.java.util.List<Annotation>
getNote()
Additional text about the adverse reaction event not captured in other fields.DateTime
getOnset()
Record of the date and/or time of the onset of the Reaction.AllergyIntoleranceSeverity
getSeverity()
Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.CodeableConcept
getSubstance()
Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event.boolean
hasChildren()
int
hashCode()
AllergyIntolerance.Reaction.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getSubstance
public CodeableConcept getSubstance()
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.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getManifestation
public java.util.List<CodeableConcept> getManifestation()
Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that is non-empty.
-
getDescription
public String getDescription()
Text description about the reaction as a whole, including details of the manifestation if required.- Returns:
- An immutable object of type
String
that may be null.
-
getOnset
public DateTime getOnset()
Record of the date and/or time of the onset of the Reaction.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getSeverity
public AllergyIntoleranceSeverity getSeverity()
Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.- Returns:
- An immutable object of type
AllergyIntoleranceSeverity
that may be null.
-
getExposureRoute
public CodeableConcept getExposureRoute()
Identification of the route by which the subject was exposed to the substance.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getNote
public java.util.List<Annotation> getNote()
Additional text about the adverse reaction event not captured in other fields.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public AllergyIntolerance.Reaction.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static AllergyIntolerance.Reaction.Builder builder()
-
-