Class EventIdentificationType
- All Implemented Interfaces:
Serializable
,Validateable
- Since:
- 3.5
- Author:
- Christian Ohr
- See Also:
-
Constructor Summary
ConstructorDescriptionEventIdentificationType
(EventId eventID, Instant eventDateTime, EventOutcomeIndicator eventOutcomeIndicator) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull Instant
The EventDateTime is the date and time that the event being reported took place.@NonNull EventId
@NonNull EventOutcomeIndicator
The Purpose of Use value indicates the expected ultimate use of the data, rather than a likely near term use such as "send to X".int
hashCode()
void
setEventActionCode
(EventActionCode eventActionCode) void
setEventDateTime
(@NonNull Instant eventDateTime) The EventDateTime is the date and time that the event being reported took place.void
setEventID
(@NonNull EventId eventID) void
setEventOutcomeDescription
(String eventOutcomeDescription) void
setEventOutcomeIndicator
(@NonNull EventOutcomeIndicator eventOutcomeIndicator) void
validate()
Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.
-
Constructor Details
-
EventIdentificationType
public EventIdentificationType(EventId eventID, Instant eventDateTime, EventOutcomeIndicator eventOutcomeIndicator)
-
-
Method Details
-
getEventTypeCode
- Returns:
- Identifier for the category of event
-
getPurposesOfUse
The Purpose of Use value indicates the expected ultimate use of the data, rather than a likely near term use such as "send to X". As explained in the IHE Access Control White Paper, there are Access Control decisions that are based on the ultimate use of the data. For example a Patient may have provided a BPPC Consent/Authorization for treatment purposes, but explicitly disallowed any use for research regardless of de-identification methods used.
The Purpose Of Use is also included in the Audit Event message to enable some forms of reporting of Accounting of Disclosures and Breach Notification. One specific PurposeOfUse would be a BreakGlass/Emergency-Mode-Access.
The PurposeOfUse value will come from a Value Set. This Value Set should be derived from the codes found in ISO 14265, or XSPA (Cross-Enterprise Security and Privacy Authorization). Implementations should expect that the Value Set used may be using locally defined values
- Returns:
- Purposes of Use for this event
-
validate
public void validate()Description copied from interface:Validateable
Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.- Specified by:
validate
in interfaceValidateable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getEventID
-
setEventID
-
getEventDateTime
The EventDateTime is the date and time that the event being reported took place. Some events have a significant duration. In these cases, a date and time shall be chosen by a method that is consistent and appropriate for the event being reported. The EventDateTime shall include the time zone information. Creators of audit messages may support leap-seconds, but are not required to. Recipients of audit messages shall be able to process messages with leap-second information. -
setEventDateTime
The EventDateTime is the date and time that the event being reported took place. Some events have a significant duration. In these cases, a date and time shall be chosen by a method that is consistent and appropriate for the event being reported. The EventDateTime shall include the time zone information. Creators of audit messages may support leap-seconds, but are not required to. Recipients of audit messages shall be able to process messages with leap-second information. -
getEventOutcomeIndicator
-
setEventOutcomeIndicator
-
getEventOutcomeDescription
-
setEventOutcomeDescription
-
getEventActionCode
-
setEventActionCode
-