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.xds.core.audit.codes;
18  
19  import lombok.Getter;
20  import org.openehealth.ipf.commons.audit.types.EnumeratedCodedValue;
21  import org.openehealth.ipf.commons.audit.types.EventType;
22  
23  /**
24   * EventTypes for the XDS transactions in this module
25   *
26   * @author Christian Ohr
27   * @since 3.5
28   */
29  public enum XdsEventTypeCode implements EventType, EnumeratedCodedValue<EventType> {
30  
31      RegistryStoredQuery("ITI-18", "Registry Stored Query"),
32      DistributeDocumentSetOnMedia("ITI-32", "Distribute Document Set on Media"),
33      CrossGatewayQuery("ITI-38", "Cross Gateway Query"),
34      CrossGatewayRetrieve("ITI-39", "Cross Gateway Retrieve"),
35      ProvideAndRegisterDocumentSetB("ITI-41", "Provide and Register Document Set-b"),
36      RegisterDocumentSetB("ITI-42", "Register Document Set-b"),
37      RetrieveDocumentSet("ITI-43", "Retrieve Document Set"),
38      RetrieveValueSet("ITI-48", "Retrieve Value Set"),
39      MultiPatientStoredQuery("ITI-51", "Multi-Patient Stored Query"),
40      UpdateDocumentSet("ITI-57", "Update Document Set"),
41      RegisterOnDemandDocumentEntry("ITI-61", "Register On-Demand Document Entry"),
42      RemoveMetadata("ITI-62", "Remove Metadata"),
43      CrossCommunityFetch("ITI-63", "XCF Fetch"),
44      CrossGatewayDocumentProvide("ITI-80", "CrossGatewayDocumentProvide"),
45      RemoveDocuments("ITI-86", "Remove Documents"),
46      CrossGatewayUpdateDocumentSet("ITI-X1", "Cross-Gateway Update Document Set"),
47      RetrieveImagingDocumentSet("RAD-69", "Retrieve Imaging Document Set"),
48      CrossGatewayRetrieveImagingDocumentSet("RAD-75", "Cross Gateway Retrieve Imaging Document Set");
49  
50      @Getter
51      private EventType value;
52  
53      XdsEventTypeCode(String code, String displayName) {
54          this.value = EventType.of(code, "IHE Transactions", displayName);
55      }
56  
57  }
58  
59