Class AllergyIntolerance

  • All Implemented Interfaces:
    Visitable

    @Generated("org.linuxforhealth.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)

    • 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.
      • 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.
        Returns:
        An immutable object of type DateTime, Age, Period, Range or String that 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 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.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object