View Javadoc
1   /*
2    * Copyright 2016 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.openehealth.ipf.commons.ihe.xds;
17  
18  import lombok.AllArgsConstructor;
19  import lombok.Getter;
20  import org.openehealth.ipf.commons.ihe.core.InteractionId;
21  import org.openehealth.ipf.commons.ihe.ws.WsTransactionConfiguration;
22  import org.openehealth.ipf.commons.ihe.xds.core.audit.XdsAuditDataset;
23  
24  import java.util.Arrays;
25  import java.util.List;
26  
27  /**
28   * @author Christian Ohr
29   * @since 3.2
30   */
31  public class CONTINUA_HRN implements XdsIntegrationProfile {
32  
33      private static final CONTINUA_HRN Instance = new CONTINUA_HRN();
34  
35      @AllArgsConstructor
36      public enum Interactions implements XdsInteractionId {
37          ITI_41(XDS.Interactions.ITI_41.getWsTransactionConfiguration());
38  
39          @Getter private WsTransactionConfiguration<? extends XdsAuditDataset> wsTransactionConfiguration;
40  
41          @Override
42          public XdsIntegrationProfile getInteractionProfile() {
43              return Instance;
44          }
45      }
46  
47      @Override
48      public boolean isEbXml30Based() {
49          return true;
50      }
51  
52      @Override
53      public boolean requiresHomeCommunityId() {
54          return false;
55      }
56  
57      @Override
58      public List<InteractionId> getInteractionIds() {
59          return Arrays.asList(Interactions.values());
60      }
61  }