Class QueryInformationBuilder<T extends QueryInformationBuilder<T>>
java.lang.Object
org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder<T,D>
org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder<T,QueryBuilder>
org.openehealth.ipf.commons.ihe.core.atna.event.QueryInformationBuilder<T>
- All Implemented Interfaces:
AuditMessageBuilder<T>
,Validateable
- Direct Known Subclasses:
BalpQueryInformationBuilder
,XdsQueryInformationBuilder
public class QueryInformationBuilder<T extends QueryInformationBuilder<T>>
extends IHEAuditMessageBuilder<T,QueryBuilder>
Builder for building IHE-specific Query 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
ConstructorDescriptionQueryInformationBuilder
(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse) -
Method Summary
Modifier and TypeMethodDescriptionaddPatients
(String... patientIds) addPatients
(Collection<String> patientIds) setQueryParameters
(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage) setQueryParameters
(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage, String messageIdDesignator, String messageId) setQueryParameters
(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage, List<TypeValuePairType> details) setQueryParameters
(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage, ParticipantObjectTypeCode participantObjectTypeCode, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, List<TypeValuePairType> details) 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
-
QueryInformationBuilder
public QueryInformationBuilder(AuditContext auditContext, AuditDataset auditDataset, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Details
-
addPatients
-
addPatients
-
setQueryParameters
public T setQueryParameters(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage) -
setQueryParameters
-
setQueryParameters
public T setQueryParameters(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage, List<TypeValuePairType> details) -
setQueryParameters
public T setQueryParameters(String queryMessageIdentifier, ParticipantObjectIdType participantObjectIdType, String queryMessage, ParticipantObjectTypeCode participantObjectTypeCode, ParticipantObjectTypeCodeRole participantObjectTypeCodeRole, 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 QueryInformationBuilder<T>,
QueryBuilder>
-