Package com.ibm.fhir.model.resource
Class AuditEvent
- 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.AuditEvent
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class AuditEvent extends DomainResource
A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditEvent.AgentAn actor taking an active role in the event or activity that is logged.static classAuditEvent.Builderstatic classAuditEvent.EntitySpecific instances of data or objects that have been accessed.static classAuditEvent.SourceThe system that is reporting the 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 AuditEvent.Builderbuilder()booleanequals(Object obj)AuditEventActiongetAction()Indicator for type of action performed during the event that generated the audit.List<AuditEvent.Agent>getAgent()An actor taking an active role in the event or activity that is logged.List<AuditEvent.Entity>getEntity()Specific instances of data or objects that have been accessed.AuditEventOutcomegetOutcome()Indicates whether the event succeeded or failed.StringgetOutcomeDesc()A free text description of the outcome of the event.PeriodgetPeriod()The period during which the activity occurred.List<CodeableConcept>getPurposeOfEvent()The purposeOfUse (reason) that was used during the event being recorded.InstantgetRecorded()The time when the event was recorded.AuditEvent.SourcegetSource()The system that is reporting the event.List<Coding>getSubtype()Identifier for the category of event.CodinggetType()Identifier for a family of the event.booleanhasChildren()inthashCode()AuditEvent.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
-
getType
public Coding getType()
Identifier for a family of the event. For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function.- Returns:
- An immutable object of type
Codingthat is non-null.
-
getSubtype
public List<Coding> getSubtype()
Identifier for the category of event.- Returns:
- An unmodifiable list containing immutable objects of type
Codingthat may be empty.
-
getAction
public AuditEventAction getAction()
Indicator for type of action performed during the event that generated the audit.- Returns:
- An immutable object of type
AuditEventActionthat may be null.
-
getPeriod
public Period getPeriod()
The period during which the activity occurred.- Returns:
- An immutable object of type
Periodthat may be null.
-
getRecorded
public Instant getRecorded()
The time when the event was recorded.- Returns:
- An immutable object of type
Instantthat is non-null.
-
getOutcome
public AuditEventOutcome getOutcome()
Indicates whether the event succeeded or failed.- Returns:
- An immutable object of type
AuditEventOutcomethat may be null.
-
getOutcomeDesc
public String getOutcomeDesc()
A free text description of the outcome of the event.- Returns:
- An immutable object of type
Stringthat may be null.
-
getPurposeOfEvent
public List<CodeableConcept> getPurposeOfEvent()
The purposeOfUse (reason) that was used during the event being recorded.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getAgent
public List<AuditEvent.Agent> getAgent()
An actor taking an active role in the event or activity that is logged.- Returns:
- An unmodifiable list containing immutable objects of type
AuditEvent.Agentthat is non-empty.
-
getSource
public AuditEvent.Source getSource()
The system that is reporting the event.- Returns:
- An immutable object of type
AuditEvent.Sourcethat is non-null.
-
getEntity
public List<AuditEvent.Entity> getEntity()
Specific instances of data or objects that have been accessed.- Returns:
- An unmodifiable list containing immutable objects of type
AuditEvent.Entitythat 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 AuditEvent.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static AuditEvent.Builder builder()
-
-