Class PHIImportBuilder<T extends PHIImportBuilder<T>>
java.lang.Object
org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder<T,D>
org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder<T,DataImportBuilder>
org.openehealth.ipf.commons.ihe.core.atna.event.PHIImportBuilder<T>
- All Implemented Interfaces:
AuditMessageBuilder<T>
,Validateable
- Direct Known Subclasses:
BalpPHIImportBuilder
,XdsPHIImportBuilder
public class PHIImportBuilder<T extends PHIImportBuilder<T>>
extends IHEAuditMessageBuilder<T,DataImportBuilder>
Builder for building IHE-specific DataImport 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
ConstructorDescriptionPHIImportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) PHIImportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) PHIImportBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse) -
Method Summary
Modifier and TypeMethodDescriptionaddImportedEntity
(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, List<TypeValuePairType> details) addImportedEntity
(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
-
PHIImportBuilder
public PHIImportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse) -
PHIImportBuilder
public PHIImportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse) -
PHIImportBuilder
public PHIImportBuilder(AuditContext auditContext, AuditDataset auditDataset, EventOutcomeIndicator eventOutcomeIndicator, String eventOutcomeDescription, EventActionCode eventActionCode, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Details
-
setPatient
-
addImportedEntity
public T addImportedEntity(String objectId, ParticipantObjectIdType participantObjectIdType, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, List<TypeValuePairType> details) -
addImportedEntity
public T addImportedEntity(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 PHIImportBuilder<T>,
DataImportBuilder>
-