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.Maturity level: FMM3 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditEvent.Agent
An actor taking an active role in the event or activity that is logged.static class
AuditEvent.Builder
static class
AuditEvent.Entity
Specific instances of data or objects that have been accessed.static class
AuditEvent.Source
The 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 void
accept(String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static AuditEvent.Builder
builder()
boolean
equals(Object obj)
AuditEventAction
getAction()
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.AuditEventOutcome
getOutcome()
Indicates whether the event succeeded or failed.String
getOutcomeDesc()
A free text description of the outcome of the event.Period
getPeriod()
The period during which the activity occurred.List<CodeableConcept>
getPurposeOfEvent()
The purposeOfUse (reason) that was used during the event being recorded.Instant
getRecorded()
The time when the event was recorded.AuditEvent.Source
getSource()
The system that is reporting the event.List<Coding>
getSubtype()
Identifier for the category of event.Coding
getType()
Identifier for a family of the event.boolean
hasChildren()
int
hashCode()
AuditEvent.Builder
toBuilder()
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
Coding
that is non-null.
-
getSubtype
public List<Coding> getSubtype()
Identifier for the category of event.- Returns:
- An unmodifiable list containing immutable objects of type
Coding
that 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
AuditEventAction
that may be null.
-
getPeriod
public Period getPeriod()
The period during which the activity occurred.- Returns:
- An immutable object of type
Period
that may be null.
-
getRecorded
public Instant getRecorded()
The time when the event was recorded.- Returns:
- An immutable object of type
Instant
that is non-null.
-
getOutcome
public AuditEventOutcome getOutcome()
Indicates whether the event succeeded or failed.- Returns:
- An immutable object of type
AuditEventOutcome
that may be null.
-
getOutcomeDesc
public String getOutcomeDesc()
A free text description of the outcome of the event.- Returns:
- An immutable object of type
String
that 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
CodeableConcept
that 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.Agent
that is non-empty.
-
getSource
public AuditEvent.Source getSource()
The system that is reporting the event.- Returns:
- An immutable object of type
AuditEvent.Source
that 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.Entity
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(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
-
toBuilder
public AuditEvent.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 AuditEvent.Builder builder()
-
-