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.ParticipantObjectIdType;
22  
23  /**
24   * ParticipantObjectIdTypeCodes for the XDS transactions in this module
25   *
26   * @author Christian Ohr
27   * @since 3.5
28   */
29  public enum XdsParticipantObjectIdTypeCode implements ParticipantObjectIdType, EnumeratedCodedValue<ParticipantObjectIdType> {
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      RegisterOnDemandDocumentEntry("ITI-61", "Register On-Demand Document Entry"),
41      RemoveMetadata("ITI-62", "Remove Metadata"),
42      CrossCommunityFetch("ITI-63", "XCF Fetch"),
43      RemoveDocuments("ITI-86", "Remove Documents"),
44      CrossGatewayUpdateDocumentSet("ITI-X1", "Cross-Gateway Update Document Set"),
45      RetrieveImagingDocumentSet("RAD-69", "Retrieve Imaging Document Set"),
46      CrossGatewayRetrieveImagingDocumentSet("RAD-75", "Cross Gateway Retrieve Imaging Document Set");
47  
48      @Getter
49      private ParticipantObjectIdType value;
50  
51      XdsParticipantObjectIdTypeCode(String code, String displayName) {
52          this.value = ParticipantObjectIdType.of(code, "IHE Transactions", displayName);
53      }
54  
55  }
56  
57