View Javadoc
1   /*
2    * Copyright 2018 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  
17  package org.openehealth.ipf.commons.ihe.hl7v2.options;
18  
19  
20  import org.openehealth.ipf.commons.ihe.hl7v2.HL7v2TransactionOption;
21  
22  import java.util.Arrays;
23  import java.util.List;
24  
25  
26  /**
27   *
28   */
29  public enum Iti31Options implements HL7v2TransactionOption {
30  
31      BASIC("A01", "A03", "A04", "A11", "A13"),
32      INPATIENT_OUTPATIENT_ENCOUNTER_MANAGEMENT(BASIC, "A02", "A05", "A06", "A07", "A12", "A38"),
33      PENDING_EVENT_MANAGEMENT(INPATIENT_OUTPATIENT_ENCOUNTER_MANAGEMENT, "A14", "A15", "A16", "A25", "A26", "A27"),
34      ADVANCED_ENCOUNTER_MANAGEMENT(BASIC, "A21", "A22", "A44", "A52", "A53", "A54", "A55"),
35      TEMPORARY_PATIENT_TRANSFERS_TRACKING(BASIC, "A09", "A10", "A32", "A33"),
36      HISTORIC_MOVEMENT_MANAGEMENT(INPATIENT_OUTPATIENT_ENCOUNTER_MANAGEMENT, ADVANCED_ENCOUNTER_MANAGEMENT, "Z99"),
37      MAINTAIN_DEMOGRAPHICS(BASIC, "A08", "A40");
38  
39      private List<String> supportedEvents;
40  
41      Iti31Options(String... supportedEvents) {
42          this.supportedEvents = Arrays.asList(supportedEvents);
43      }
44  
45      Iti31Options(Iti31Options option, String... supportedEvents) {
46          this.supportedEvents = HL7v2TransactionOption.concat(option, Arrays.asList(supportedEvents));
47      }
48  
49      Iti31Options(Iti31Options option1, Iti31Options option2, String... supportedEvents) {
50          this.supportedEvents = HL7v2TransactionOption.concat(option1, option2, Arrays.asList(supportedEvents));
51      }
52  
53      @Override
54      public List<String> getSupportedThings() {
55          return supportedEvents;
56      }
57  
58  
59  }