Class PatientRecordEventBuilder<T extends PatientRecordEventBuilder<T>>
java.lang.Object
org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder<T,D>
org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder<T,PatientRecordBuilder>
org.openehealth.ipf.commons.ihe.core.atna.event.PatientRecordEventBuilder<T>
- All Implemented Interfaces:
AuditMessageBuilder<T>
,Validateable
- Direct Known Subclasses:
XdsPatientRecordEventBuilder
public class PatientRecordEventBuilder<T extends PatientRecordEventBuilder<T>>
extends IHEAuditMessageBuilder<T,PatientRecordBuilder>
Builder for building IHE-specific PatientRecord events. It automatically sets the AuditSource,
local and remote ActiveParticipant and a Human Requestor and provides methods for adding patient IDs.
- Since:
- 3.5
- Author:
- Christian Ohr
-
Field Summary
Fields inherited from class org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder
DOCUMENT_UNIQUE_ID, IHE_HOME_COMMUNITY_ID, QUERY_ENCODING, REPOSITORY_UNIQUE_ID, SERIES_INSTANCE_UNIQUE_ID, STUDY_INSTANCE_UNIQUE_ID, URN_IHE_ITI_XCA_2010_HOME_COMMUNITY_ID
Fields inherited from class org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder
delegate
-
Constructor Summary
ConstructorDescriptionPatientRecordEventBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse) PatientRecordEventBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse) -
Method Summary
Modifier and TypeMethodDescriptionaddPatients
(String requestIdDesignator, String requestId, String... patientIds) Adds each patient ID as ParticipantObject in the context of a single requestvoid
validate()
Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.Methods inherited from class org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder
addHumanRequestor, addSecurityResourceParticipantObject, addSecurityResourceParticipantObjects, dicomDetails, documentDetails, getAuditContext, setLocalParticipant, setRemoteParticipant
Methods inherited from class org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder
getMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.event.AuditMessageBuilder
getMessages, getTypeValuePair, getTypeValuePair, getTypeValuePair, getTypeValuePair, self
-
Constructor Details
-
PatientRecordEventBuilder
public PatientRecordEventBuilder(AuditContext auditContext, AuditDataset auditDataset, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse) -
PatientRecordEventBuilder
public PatientRecordEventBuilder(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Details
-
addPatients
Adds each patient ID as ParticipantObject in the context of a single request- Parameters:
requestIdDesignator
- request or message ID designator, e.g. MSH-10 for HL7v2 and II for HL7v3requestId
- ID of the request or messagepatientIds
- IDs of the patient- Returns:
- this
-
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
- Overrides:
validate
in classDelegatingAuditMessageBuilder<T extends PatientRecordEventBuilder<T>,
PatientRecordBuilder>
-