Class DicomInstancesTransferredBuilder
java.lang.Object
org.openehealth.ipf.commons.audit.event.BaseAuditMessageBuilder<DicomInstancesTransferredBuilder>
org.openehealth.ipf.commons.audit.event.DicomInstancesTransferredBuilder
- All Implemented Interfaces:
AuditMessageBuilder<DicomInstancesTransferredBuilder>, Validateable
public class DicomInstancesTransferredBuilder
extends BaseAuditMessageBuilder<DicomInstancesTransferredBuilder>
Builds an Audit Event representing a DICOM Instances Transferred event as specified in
Part 15, A.5.3.7
This message describes the event of the completion of transferring DICOM SOP Instances between two Application Entities. This message may only include information about a single patient.
This message may have been preceded by a BeginTransferringDicomInstancesBuilder message.
The Begin Transferring Instances message conveys the intent to store SOP Instances,
while the Instances Transferred message records the completion of the transfer.
Any disagreement between the two messages might indicate a potential security breach.
- Since:
- 3.5
- Author:
- Christian Ohr
-
Constructor Summary
ConstructorsConstructorDescriptionDicomInstancesTransferredBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) -
Method Summary
Modifier and TypeMethodDescriptionsetPatientParticipantObject(String patientId, String patientName) setProcessParticipant(String userId, String altUserId, String userName, ActiveParticipantRoleIdCode activeParticipantRoleId, String networkId, NetworkAccessPointTypeCode networkAccessPointType, String mediaIdentifier, MediaType mediaType, boolean userIsRequestor) voidvalidate()Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.Methods inherited from class BaseAuditMessageBuilder
addActiveParticipant, addActiveParticipant, addActiveParticipant, addDestinationActiveParticipant, addParticipantObjectIdentification, addParticipantObjectIdentification, addParticipantObjectIdentification, addPatientParticipantObject, addSourceActiveParticipant, addStudyParticipantObject, getMessage, getNetworkAccessPointCodeFromAddress, setAuditSource, setAuditSource, setAuditSource, setAuditSource, setAuditSourceIdentification, setAuditSourceIdentification, setAuditSourceIdentification, setEventIdentification, setEventIdentificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuditMessageBuilder
getMessages, getTypeValuePair, getTypeValuePair, getTypeValuePair, getTypeValuePair, self
-
Constructor Details
-
DicomInstancesTransferredBuilder
public DicomInstancesTransferredBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Details
-
setProcessParticipant
public DicomInstancesTransferredBuilder setProcessParticipant(String userId, String altUserId, String userName, ActiveParticipantRoleIdCode activeParticipantRoleId, String networkId, NetworkAccessPointTypeCode networkAccessPointType, String mediaIdentifier, MediaType mediaType, boolean userIsRequestor) - Parameters:
userId- The identity of the process sending or receiving the dataaltUserId- Alternate UserIDuserName- UserNameactiveParticipantRoleId- Role IDnetworkId- Network Access Point IDnetworkAccessPointType- Network Access Point TypemediaIdentifier- media identifiermediaType- media typeuserIsRequestor- Whether the destination participant represents the requestor (i.e. pull request)- Returns:
- this
-
setPatientParticipantObject
public DicomInstancesTransferredBuilder setPatientParticipantObject(String patientId, String patientName) - Parameters:
patientId- patient IDpatientName- patient name- Returns:
- this
-
validate
public void validate()Description copied from interface:ValidateableValidates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.- Specified by:
validatein interfaceValidateable- Overrides:
validatein classBaseAuditMessageBuilder<DicomInstancesTransferredBuilder>
-