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 classAllergyIntolerance.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 voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static AllergyIntolerance.Reaction.Builderbuilder()booleanequals(java.lang.Object obj)StringgetDescription()Text description about the reaction as a whole, including details of the manifestation if required.CodeableConceptgetExposureRoute()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.DateTimegetOnset()Record of the date and/or time of the onset of the Reaction.AllergyIntoleranceSeveritygetSeverity()Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.CodeableConceptgetSubstance()Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event.booleanhasChildren()inthashCode()AllergyIntolerance.Reaction.BuildertoBuilder()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
CodeableConceptthat 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
CodeableConceptthat 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
Stringthat 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
DateTimethat 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
AllergyIntoleranceSeveritythat 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
CodeableConceptthat 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
Annotationthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public AllergyIntolerance.Reaction.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static AllergyIntolerance.Reaction.Builder builder()
-
-