Class AdverseEvent
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdverseEvent.Builder
static class
AdverseEvent.SuspectEntity
Describes the entity that is suspected to have caused the adverse event.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.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 AdverseEvent.Builder
builder()
boolean
equals(java.lang.Object obj)
AdverseEventActuality
getActuality()
Whether the event actually happened, or just had the potential to.java.util.List<CodeableConcept>
getCategory()
The overall type of event, intended for search and filtering purposes.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.DateTime
getDate()
The date (and perhaps time) when the adverse event occurred.DateTime
getDetected()
Estimated or actual date the AdverseEvent began, in the opinion of the reporter.Reference
getEncounter()
The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.CodeableConcept
getEvent()
This element defines the specific type of event that occurred or that was prevented from occurring.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.Reference
getLocation()
The information about where the adverse event occurred.CodeableConcept
getOutcome()
Describes the type of outcome from the adverse event.DateTime
getRecordedDate()
The date on which the existence of the AdverseEvent was first recorded.Reference
getRecorder()
Information on who recorded the adverse event.java.util.List<Reference>
getReferenceDocument()
AdverseEvent.referenceDocument.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).CodeableConcept
getSeriousness()
Assessment whether this event was of real importance.CodeableConcept
getSeverity()
Describes the severity of the adverse event, in relation to the subject.java.util.List<Reference>
getStudy()
AdverseEvent.study.Reference
getSubject()
This subject or group impacted by the event.java.util.List<Reference>
getSubjectMedicalHistory()
AdverseEvent.subjectMedicalHistory.java.util.List<AdverseEvent.SuspectEntity>
getSuspectEntity()
Describes the entity that is suspected to have caused the adverse event.boolean
hasChildren()
int
hashCode()
AdverseEvent.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
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.
-
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 AdverseEvent.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 AdverseEvent.Builder builder()
-
-