Package com.ibm.fhir.model.resource
Class AdverseEvent
- 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.AdverseEvent
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.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 classAdverseEvent.Builderstatic classAdverseEvent.SuspectEntityDescribes the entity that is suspected to have caused the adverse event.
-
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 AdverseEvent.Builderbuilder()booleanequals(Object obj)AdverseEventActualitygetActuality()Whether the event actually happened, or just had the potential to.List<CodeableConcept>getCategory()The overall type of event, intended for search and filtering purposes.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.DateTimegetDate()The date (and perhaps time) when the adverse event occurred.DateTimegetDetected()Estimated or actual date the AdverseEvent began, in the opinion of the reporter.ReferencegetEncounter()The Encounter during which AdverseEvent was created or to which the creation of this record is tightly associated.CodeableConceptgetEvent()This element defines the specific type of event that occurred or that was prevented from occurring.IdentifiergetIdentifier()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.ReferencegetLocation()The information about where the adverse event occurred.CodeableConceptgetOutcome()Describes the type of outcome from the adverse event.DateTimegetRecordedDate()The date on which the existence of the AdverseEvent was first recorded.ReferencegetRecorder()Information on who recorded the adverse event.List<Reference>getReferenceDocument()AdverseEvent.referenceDocument.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).CodeableConceptgetSeriousness()Assessment whether this event was of real importance.CodeableConceptgetSeverity()Describes the severity of the adverse event, in relation to the subject.List<Reference>getStudy()AdverseEvent.study.ReferencegetSubject()This subject or group impacted by the event.List<Reference>getSubjectMedicalHistory()AdverseEvent.subjectMedicalHistory.List<AdverseEvent.SuspectEntity>getSuspectEntity()Describes the entity that is suspected to have caused the adverse event.booleanhasChildren()inthashCode()AdverseEvent.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 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
Identifierthat 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
AdverseEventActualitythat is non-null.
-
getCategory
public List<CodeableConcept> getCategory()
The overall type of event, intended for search and filtering purposes.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat 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
CodeableConceptthat may be null.
-
getSubject
public Reference getSubject()
This subject or group impacted by the event.- Returns:
- An immutable object of type
Referencethat 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
Referencethat may be null.
-
getDate
public DateTime getDate()
The date (and perhaps time) when the adverse event occurred.- Returns:
- An immutable object of type
DateTimethat 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
DateTimethat 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
DateTimethat may be null.
-
getResultingCondition
public 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
Referencethat may be empty.
-
getLocation
public Reference getLocation()
The information about where the adverse event occurred.- Returns:
- An immutable object of type
Referencethat may be null.
-
getSeriousness
public CodeableConcept getSeriousness()
Assessment whether this event was of real importance.- Returns:
- An immutable object of type
CodeableConceptthat 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
CodeableConceptthat may be null.
-
getOutcome
public CodeableConcept getOutcome()
Describes the type of outcome from the adverse event.- Returns:
- An immutable object of type
CodeableConceptthat 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
Referencethat may be null.
-
getContributor
public 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
Referencethat may be empty.
-
getSuspectEntity
public 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.SuspectEntitythat may be empty.
-
getSubjectMedicalHistory
public List<Reference> getSubjectMedicalHistory()
AdverseEvent.subjectMedicalHistory.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getReferenceDocument
public List<Reference> getReferenceDocument()
AdverseEvent.referenceDocument.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getStudy
public List<Reference> getStudy()
AdverseEvent.study.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat 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 AdverseEvent.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static AdverseEvent.Builder builder()
-
-