Class AdverseEvent

  • All Implemented Interfaces:
    Visitable

    @Generated("org.linuxforhealth.fhir.tools.CodeGenerator")
    public class AdverseEvent
    extends DomainResource
    Actual or potential/avoided event causing unintended physical injury resulting from or contributed to by medical care, a research study or other healthcare setting factors that requires additional monitoring, treatment, or hospitalization, or that results in death.

    Maturity level: FMM0 (Trial Use)

    • Method Detail

      • getIdentifier

        public Identifier getIdentifier()
        Business identifiers assigned to this adverse event by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
        Returns:
        An immutable object of type Identifier that may be null.
      • getActuality

        public AdverseEventActuality getActuality()
        Whether the event actually happened, or just had the potential to. Note that this is independent of whether anyone was affected or harmed or how severely.
        Returns:
        An immutable object of type AdverseEventActuality that is non-null.
      • getCategory

        public java.util.List<CodeableConcept> getCategory()
        The overall type of event, intended for search and filtering purposes.
        Returns:
        An unmodifiable list containing immutable objects of type CodeableConcept that may be empty.
      • getEvent

        public CodeableConcept getEvent()
        This element defines the specific type of event that occurred or that was prevented from occurring.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getSubject

        public Reference getSubject()
        This subject or group impacted by the event.
        Returns:
        An immutable object of type Reference that is non-null.
      • getEncounter

        public Reference getEncounter()
        The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.
        Returns:
        An immutable object of type Reference that may be null.
      • getDate

        public DateTime getDate()
        The date (and perhaps time) when the adverse event occurred.
        Returns:
        An immutable object of type DateTime that may be null.
      • getDetected

        public DateTime getDetected()
        Estimated or actual date the AdverseEvent began, in the opinion of the reporter.
        Returns:
        An immutable object of type DateTime that may be null.
      • getRecordedDate

        public DateTime getRecordedDate()
        The date on which the existence of the AdverseEvent was first recorded.
        Returns:
        An immutable object of type DateTime that may be null.
      • getResultingCondition

        public java.util.List<Reference> getResultingCondition()
        Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • getLocation

        public Reference getLocation()
        The information about where the adverse event occurred.
        Returns:
        An immutable object of type Reference that may be null.
      • getSeriousness

        public CodeableConcept getSeriousness()
        Assessment whether this event was of real importance.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getSeverity

        public CodeableConcept getSeverity()
        Describes the severity of the adverse event, in relation to the subject. Contrast to AdverseEvent.seriousness - a severe rash might not be serious, but a mild heart problem is.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getOutcome

        public CodeableConcept getOutcome()
        Describes the type of outcome from the adverse event.
        Returns:
        An immutable object of type CodeableConcept that may be null.
      • getRecorder

        public Reference getRecorder()
        Information on who recorded the adverse event. May be the patient or a practitioner.
        Returns:
        An immutable object of type Reference that may be null.
      • getContributor

        public java.util.List<Reference> getContributor()
        Parties that may or should contribute or have contributed information to the adverse event, which can consist of one or more activities. Such information includes information leading to the decision to perform the activity and how to perform the activity (e.g. consultant), information that the activity itself seeks to reveal (e.g. informant of clinical history), or information about what activity was performed (e.g. informant witness).
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • getSuspectEntity

        public java.util.List<AdverseEvent.SuspectEntity> getSuspectEntity()
        Describes the entity that is suspected to have caused the adverse event.
        Returns:
        An unmodifiable list containing immutable objects of type AdverseEvent.SuspectEntity that may be empty.
      • getSubjectMedicalHistory

        public java.util.List<Reference> getSubjectMedicalHistory()
        AdverseEvent.subjectMedicalHistory.
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • getReferenceDocument

        public java.util.List<Reference> getReferenceDocument()
        AdverseEvent.referenceDocument.
        Returns:
        An unmodifiable list containing immutable objects of type Reference that may be empty.
      • getStudy

        public java.util.List<Reference> getStudy()
        AdverseEvent.study.
        Returns:
        An unmodifiable list containing immutable objects of type Reference 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