Class PHIExportBuilder<T extends PHIExportBuilder<T>>
java.lang.Object
org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder<T,D>
org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder<T,DataExportBuilder>
org.openehealth.ipf.commons.ihe.core.atna.event.PHIExportBuilder<T>
- All Implemented Interfaces:
AuditMessageBuilder<T>
,Validateable
- Direct Known Subclasses:
BalpPHIExportBuilder
,XdsPHIExportBuilder
public class PHIExportBuilder<T extends PHIExportBuilder<T>>
extends IHEAuditMessageBuilder<T,DataExportBuilder>
Builder for building IHE-specific DataExport 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
ConstructorDescriptionPHIExportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) PHIExportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) PHIExportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse) -
Method Summary
Modifier and TypeMethodDescriptionaddExportedEntity
(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, List<TypeValuePairType> details) addExportedEntity
(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCode participantObjectTypeCode, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, ParticipantObjectDataLifeCycle participantObjectDataLifeCycle, List<TypeValuePairType> details) setPatient
(String patientId) void
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
-
PHIExportBuilder
public PHIExportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse) -
PHIExportBuilder
public PHIExportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) -
PHIExportBuilder
public PHIExportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Details
-
setPatient
-
addExportedEntity
public T addExportedEntity(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, List<TypeValuePairType> details) -
addExportedEntity
public T addExportedEntity(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCode participantObjectTypeCode, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, ParticipantObjectDataLifeCycle participantObjectDataLifeCycle, List<TypeValuePairType> details) -
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 PHIExportBuilder<T>,
DataExportBuilder>
-