Class PatientRecordBuilder
- java.lang.Object
-
- org.openehealth.ipf.commons.audit.event.BaseAuditMessageBuilder<PatientRecordBuilder>
-
- org.openehealth.ipf.commons.audit.event.PatientRecordBuilder
-
- All Implemented Interfaces:
AuditMessageBuilder<PatientRecordBuilder>
,Validateable
public class PatientRecordBuilder extends BaseAuditMessageBuilder<PatientRecordBuilder>
Builds an Audit Event representing a Patient Record event as specified in http://dicom.nema.org/medical/dicom/current/output/html/part15.html#sect_A.5.3.4This message describes the event of a patient record being created, modified, accessed, or deleted.
- Since:
- 3.5
- Author:
- Christian Ohr
-
-
Constructor Summary
Constructors Constructor Description PatientRecordBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse)
PatientRecordBuilder(EventOutcomeIndicator outcome, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatientRecordBuilder
addPatient(String patientId, String patientName, List<TypeValuePairType> details)
PatientRecordBuilder
addPatient(String patientId, String patientName, List<TypeValuePairType> details, ParticipantObjectDataLifeCycle lifeCycle)
PatientRecordBuilder
addUserParticipant(String userId, String altUserId, String userName, String networkAccessPointId, List<ActiveParticipantRoleId> roleIds, boolean userIsRequestor)
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.audit.event.BaseAuditMessageBuilder
addActiveParticipant, addActiveParticipant, addActiveParticipant, addDestinationActiveParticipant, addParticipantObjectIdentification, addParticipantObjectIdentification, addParticipantObjectIdentification, addPatientParticipantObject, addSourceActiveParticipant, addStudyParticipantObject, getMessage, getNetworkAccessPointCodeFromAddress, setAuditSource, setAuditSource, setAuditSource, setAuditSource, setAuditSourceIdentification, setAuditSourceIdentification, setAuditSourceIdentification, setEventIdentification, setEventIdentification
-
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 Detail
-
PatientRecordBuilder
public PatientRecordBuilder(EventOutcomeIndicator outcome, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse)
-
PatientRecordBuilder
public PatientRecordBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventActionCode action, EventType eventType, PurposeOfUse... purposesOfUse)
-
-
Method Detail
-
addUserParticipant
public PatientRecordBuilder addUserParticipant(String userId, String altUserId, String userName, String networkAccessPointId, List<ActiveParticipantRoleId> roleIds, boolean userIsRequestor)
- Parameters:
userId
- The identity of the person or process manipulating the data. If both are known, then two active participants shall be included (both the person and the process).altUserId
- Alternate UserIDuserName
- UserNamenetworkAccessPointId
- Network Access Point IDroleIds
- Role idsuserIsRequestor
- 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 media- Returns:
- this
-
addPatient
public PatientRecordBuilder addPatient(String patientId, String patientName, List<TypeValuePairType> details)
-
addPatient
public PatientRecordBuilder addPatient(String patientId, String patientName, List<TypeValuePairType> details, ParticipantObjectDataLifeCycle lifeCycle)
-
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 classBaseAuditMessageBuilder<PatientRecordBuilder>
-
-