1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.core.atna.custom;
17
18 import org.openhealthtools.ihe.atna.auditor.codes.dicom.DICOMEventIdCodes;
19 import org.openhealthtools.ihe.atna.auditor.codes.rfc3881.RFC3881EventCodes;
20 import org.openhealthtools.ihe.atna.auditor.codes.rfc3881.RFC3881ParticipantObjectCodes;
21 import org.openhealthtools.ihe.atna.auditor.events.ihe.GenericIHEAuditEventMessage;
22 import org.openhealthtools.ihe.atna.auditor.models.rfc3881.CodedValueType;
23
24 import java.util.List;
25
26
27
28
29
30
31
32 public class HpdEvent extends GenericIHEAuditEventMessage {
33
34 public HpdEvent(
35 boolean systemIsSource,
36 RFC3881EventCodes.RFC3881EventActionCodes actionCode,
37 RFC3881EventCodes.RFC3881EventOutcomeCodes outcome,
38 List<CodedValueType> purposesOfUse)
39 {
40 super(systemIsSource,
41 outcome,
42 systemIsSource ? RFC3881EventCodes.RFC3881EventActionCodes.READ : actionCode,
43 systemIsSource ? new DICOMEventIdCodes.Export() : new DICOMEventIdCodes.Import(),
44 new CustomIHETransactionEventTypeCodes.ProviderInformationFeed(),
45 purposesOfUse);
46 }
47
48 public void addProviderParticipantObject(String providerId) {
49 addParticipantObjectIdentification(
50 CustomParticipantObjectIDTypeCodes.ISO21091_IDENTIFIER,
51 null,
52 null,
53 null,
54 providerId,
55 RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectTypeCodes.ORGANIZATION,
56 RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectTypeRoleCodes.PROVIDER,
57 null,
58 null);
59 }
60
61 public void addEntryParticipantObject(String dn) {
62 addParticipantObjectIdentification(
63 CustomParticipantObjectIDTypeCodes.LDAP_DN,
64 null,
65 null,
66 null,
67 dn,
68 RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectTypeCodes.SYSTEM,
69 RFC3881ParticipantObjectCodes.RFC3881ParticipantObjectTypeRoleCodes.RESOURCE,
70 null,
71 null);
72 }
73
74 }