Package com.ibm.fhir.model.resource
Class AllergyIntolerance
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.AllergyIntolerance
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class AllergyIntolerance extends DomainResource
Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.Maturity level: FMM3 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AllergyIntolerance.Builder
static class
AllergyIntolerance.Reaction
Details about each adverse reaction event linked to exposure to the identified substance.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
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.Builder
builder()
boolean
equals(java.lang.Object obj)
Reference
getAsserter()
The source of the information about the allergy that is recorded.java.util.List<AllergyIntoleranceCategory>
getCategory()
Category of the identified substance.CodeableConcept
getClinicalStatus()
The clinical status of the allergy or intolerance.CodeableConcept
getCode()
Code for an allergy or intolerance statement (either a positive or a negated/excluded statement).AllergyIntoleranceCriticality
getCriticality()
Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.Reference
getEncounter()
The encounter when the allergy or intolerance was asserted.java.util.List<Identifier>
getIdentifier()
Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.DateTime
getLastOccurrence()
Represents the date and/or time of the last known occurrence of a reaction event.java.util.List<Annotation>
getNote()
Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.Element
getOnset()
Estimated or actual date, date-time, or age when allergy or intolerance was identified.Reference
getPatient()
The patient who has the allergy or intolerance.java.util.List<AllergyIntolerance.Reaction>
getReaction()
Details about each adverse reaction event linked to exposure to the identified substance.DateTime
getRecordedDate()
The recordedDate represents when this particular AllergyIntolerance record was created in the system, which is often a system-generated date.Reference
getRecorder()
Individual who recorded the record and takes responsibility for its content.AllergyIntoleranceType
getType()
Identification of the underlying physiological mechanism for the reaction risk.CodeableConcept
getVerificationStatus()
Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).boolean
hasChildren()
int
hashCode()
AllergyIntolerance.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.- Returns:
- An unmodifiable list containing immutable objects of type
Identifier
that may be empty.
-
getClinicalStatus
public CodeableConcept getClinicalStatus()
The clinical status of the allergy or intolerance.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getVerificationStatus
public CodeableConcept getVerificationStatus()
Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getType
public AllergyIntoleranceType getType()
Identification of the underlying physiological mechanism for the reaction risk.- Returns:
- An immutable object of type
AllergyIntoleranceType
that may be null.
-
getCategory
public java.util.List<AllergyIntoleranceCategory> getCategory()
Category of the identified substance.- Returns:
- An unmodifiable list containing immutable objects of type
AllergyIntoleranceCategory
that may be empty.
-
getCriticality
public AllergyIntoleranceCriticality getCriticality()
Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.- Returns:
- An immutable object of type
AllergyIntoleranceCriticality
that may be null.
-
getCode
public CodeableConcept getCode()
Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., "Latex"), an allergy or intolerance condition (e.g., "Latex allergy"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g., "No known allergy", "No known drug allergies"). 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.
-
getPatient
public Reference getPatient()
The patient who has the allergy or intolerance.- Returns:
- An immutable object of type
Reference
that is non-null.
-
getEncounter
public Reference getEncounter()
The encounter when the allergy or intolerance was asserted.- Returns:
- An immutable object of type
Reference
that may be null.
-
getOnset
public Element getOnset()
Estimated or actual date, date-time, or age when allergy or intolerance was identified.
-
getRecordedDate
public DateTime getRecordedDate()
The recordedDate represents when this particular AllergyIntolerance record was created in the system, which is often a system-generated date.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getRecorder
public Reference getRecorder()
Individual who recorded the record and takes responsibility for its content.- Returns:
- An immutable object of type
Reference
that may be null.
-
getAsserter
public Reference getAsserter()
The source of the information about the allergy that is recorded.- Returns:
- An immutable object of type
Reference
that may be null.
-
getLastOccurrence
public DateTime getLastOccurrence()
Represents the date and/or time of the last known occurrence of a reaction event.- Returns:
- An immutable object of type
DateTime
that may be null.
-
getNote
public java.util.List<Annotation> getNote()
Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
getReaction
public java.util.List<AllergyIntolerance.Reaction> getReaction()
Details about each adverse reaction event linked to exposure to the identified substance.- Returns:
- An unmodifiable list containing immutable objects of type
AllergyIntolerance.Reaction
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
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.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static AllergyIntolerance.Builder builder()
-
-