1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.platform.camel.ihe.mllp.core.mbean;
17
18 import ca.uhn.hl7v2.DefaultHapiContext;
19 import ca.uhn.hl7v2.ErrorCode;
20 import ca.uhn.hl7v2.Version;
21 import org.openehealth.ipf.commons.ihe.hl7v2.Hl7v2TransactionConfiguration;
22 import org.openehealth.ipf.commons.ihe.hl7v2.NakFactory;
23 import org.openehealth.ipf.commons.ihe.hl7v2.audit.MllpAuditDataset;
24 import org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpTransactionComponent;
25
26
27
28
29 public class SomeMllpItiComponent extends MllpTransactionComponent<MllpAuditDataset> {
30
31 private static final Hl7v2TransactionConfiguration<MllpAuditDataset> CONFIGURATION =
32 new Hl7v2TransactionConfiguration<>(
33 "foo",
34 "Some MLLP Component",
35 false,
36 null,
37 null,
38 new Version[] {Version.V25},
39 "Some MLLP adapter",
40 "IPF-Test",
41 ErrorCode.APPLICATION_INTERNAL_ERROR,
42 ErrorCode.APPLICATION_INTERNAL_ERROR,
43 new String[] { "ADT" },
44 new String[] { "A01 A04" },
45 new String[] { "ACK" },
46 new String[] { "*" },
47 new boolean[] { true },
48 new boolean[] { false },
49 new DefaultHapiContext());
50
51 public SomeMllpItiComponent() {
52 super(null);
53 }
54
55 private static final NakFactory<MllpAuditDataset> NAK_FACTORY = new NakFactory<>(CONFIGURATION);
56
57 @Override
58 public NakFactory<MllpAuditDataset> getNakFactory() {
59 return NAK_FACTORY;
60 }
61
62 @Override
63 public Hl7v2TransactionConfiguration<MllpAuditDataset> getHl7v2TransactionConfiguration() {
64 return CONFIGURATION;
65 }
66
67 }