public class QueryBuilder extends BaseAuditMessageBuilder<QueryBuilder>
This message describes the event of a Query being issued or received. The message does NOT record the response to the query, but merely records the fact that a query was issued.
Constructor and Description |
---|
QueryBuilder(EventOutcomeIndicator outcome,
EventType eventType,
PurposeOfUse... purposesOfUse) |
QueryBuilder(EventOutcomeIndicator outcome,
String eventOutcomeDescription,
EventType eventType,
PurposeOfUse... purposesOfUse) |
Modifier and Type | Method and Description |
---|---|
QueryBuilder |
addOtherActiveParticipant(String userId,
String altUserId,
String userName,
ActiveParticipantRoleId roleId,
String networkId,
boolean userIsRequestor) |
QueryBuilder |
setQueryingParticipant(String userId,
String altUserId,
String userName,
String networkAccessPointId,
boolean userIsRequestor)
Process Issuing the Query
|
QueryBuilder |
setRespondingParticipant(String userId,
String altUserId,
String userName,
String networkAccessPointId,
boolean userIsRequestor)
The process that will respond to the query
|
void |
validate()
Validates the constructed audit message against the specification, because API does not completely
prevent constructing incomplete or inconsistent messages.
|
addActiveParticipant, addActiveParticipant, addActiveParticipant, addDestinationActiveParticipant, addParticipantObjectIdentification, addParticipantObjectIdentification, addPatientParticipantObject, addSourceActiveParticipant, addStudyParticipantObject, getMessage, getNetworkAccessPointCodeFromAddress, getTypeValuePair, setAuditSource, setAuditSource, setAuditSource, setAuditSource, setAuditSourceIdentification, setAuditSourceIdentification, setAuditSourceIdentification, setEventIdentification, setEventIdentification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessages, self
public QueryBuilder(EventOutcomeIndicator outcome, EventType eventType, PurposeOfUse... purposesOfUse)
public QueryBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventType eventType, PurposeOfUse... purposesOfUse)
public QueryBuilder setQueryingParticipant(String userId, String altUserId, String userName, String networkAccessPointId, boolean userIsRequestor)
userId
- UserIDaltUserId
- Alternate UserIDuserName
- UserNamenetworkAccessPointId
- Network Access Point IDuserIsRequestor
- A single user (either local or remote) shall be identified as the requestor, i.e.,
UserIsRequestor with a value of TRUE. This accommodates both push and pull transfer models for mediapublic QueryBuilder setRespondingParticipant(String userId, String altUserId, String userName, String networkAccessPointId, boolean userIsRequestor)
userId
- UserIDaltUserId
- Alternate UserIDuserName
- UserNamenetworkAccessPointId
- Network Access Point IDuserIsRequestor
- A single user (either local or remote) shall be identified as the requestor, i.e.,
UserIsRequestor with a value of TRUE. This accommodates both push and pull transfer models for mediapublic QueryBuilder addOtherActiveParticipant(String userId, String altUserId, String userName, ActiveParticipantRoleId roleId, String networkId, boolean userIsRequestor)
userId
- UserIDaltUserId
- Alternate UserIDuserName
- UserNamenetworkId
- Network Access Point IDuserIsRequestor
- Whether the destination participant represents the requestor (i.e. pull request)public void validate()
Validateable
validate
in interface Validateable
validate
in class BaseAuditMessageBuilder<QueryBuilder>
Copyright © 2018 Open eHealth Foundation. All rights reserved.