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 classAllergyIntolerance.Builderstatic classAllergyIntolerance.ReactionDetails 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
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static AllergyIntolerance.Builderbuilder()booleanequals(Object obj)ReferencegetAsserter()The source of the information about the allergy that is recorded.List<AllergyIntoleranceCategory>getCategory()Category of the identified substance.CodeableConceptgetClinicalStatus()The clinical status of the allergy or intolerance.CodeableConceptgetCode()Code for an allergy or intolerance statement (either a positive or a negated/excluded statement).AllergyIntoleranceCriticalitygetCriticality()Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.ReferencegetEncounter()The encounter when the allergy or intolerance was asserted.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.DateTimegetLastOccurrence()Represents the date and/or time of the last known occurrence of a reaction event.List<Annotation>getNote()Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.ElementgetOnset()Estimated or actual date, date-time, or age when allergy or intolerance was identified.ReferencegetPatient()The patient who has the allergy or intolerance.List<AllergyIntolerance.Reaction>getReaction()Details about each adverse reaction event linked to exposure to the identified substance.DateTimegetRecordedDate()The recordedDate represents when this particular AllergyIntolerance record was created in the system, which is often a system-generated date.ReferencegetRecorder()Individual who recorded the record and takes responsibility for its content.AllergyIntoleranceTypegetType()Identification of the underlying physiological mechanism for the reaction risk.CodeableConceptgetVerificationStatus()Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).booleanhasChildren()inthashCode()AllergyIntolerance.BuildertoBuilder()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 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
Identifierthat may be empty.
-
getClinicalStatus
public CodeableConcept getClinicalStatus()
The clinical status of the allergy or intolerance.- Returns:
- An immutable object of type
CodeableConceptthat 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
CodeableConceptthat may be null.
-
getType
public AllergyIntoleranceType getType()
Identification of the underlying physiological mechanism for the reaction risk.- Returns:
- An immutable object of type
AllergyIntoleranceTypethat may be null.
-
getCategory
public List<AllergyIntoleranceCategory> getCategory()
Category of the identified substance.- Returns:
- An unmodifiable list containing immutable objects of type
AllergyIntoleranceCategorythat 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
AllergyIntoleranceCriticalitythat 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
CodeableConceptthat may be null.
-
getPatient
public Reference getPatient()
The patient who has the allergy or intolerance.- Returns:
- An immutable object of type
Referencethat is non-null.
-
getEncounter
public Reference getEncounter()
The encounter when the allergy or intolerance was asserted.- Returns:
- An immutable object of type
Referencethat may be null.
-
getOnset
public Element getOnset()
Estimated or actual date, date-time, or age when allergy or intolerance was identified.- Returns:
- An immutable object of type
Elementthat may be null.
-
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
DateTimethat may be null.
-
getRecorder
public Reference getRecorder()
Individual who recorded the record and takes responsibility for its content.- Returns:
- An immutable object of type
Referencethat may be null.
-
getAsserter
public Reference getAsserter()
The source of the information about the allergy that is recorded.- Returns:
- An immutable object of type
Referencethat 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
DateTimethat may be null.
-
getNote
public 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
Annotationthat may be empty.
-
getReaction
public 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.Reactionthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(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
-
toBuilder
public AllergyIntolerance.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static AllergyIntolerance.Builder builder()
-
-