View Javadoc
1   /*
2    * Copyright 2017 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.hpd.iti59;
17  
18  import lombok.Getter;
19  import lombok.RequiredArgsConstructor;
20  import lombok.Setter;
21  import org.openehealth.ipf.commons.audit.codes.EventActionCode;
22  import org.openehealth.ipf.commons.audit.codes.EventOutcomeIndicator;
23  import org.openehealth.ipf.commons.audit.codes.ParticipantObjectTypeCode;
24  import org.openehealth.ipf.commons.ihe.ws.cxf.audit.WsAuditDataset;
25  
26  /**
27   * Audit dataset for the ITI-59 transaction.
28   * @author Dmytro Rud
29   */
30  public class Iti59AuditDataset extends WsAuditDataset {
31  
32      @RequiredArgsConstructor
33      public static class RequestItem {
34          @Getter private final String requestId;
35          @Getter private final EventActionCode actionCode;
36  
37          @Getter @Setter private String uid;
38          @Getter @Setter private String newUid;    // only for operation Rename
39          @Getter @Setter private ParticipantObjectTypeCode participantObjectTypeCode;
40  
41          @Getter @Setter private EventOutcomeIndicator outcomeCode;
42          @Getter @Setter private String outcomeDescription;
43      }
44  
45      @Getter @Setter private RequestItem[] requestItems;
46  
47      public Iti59AuditDataset(boolean serverSide) {
48          super(serverSide);
49      }
50  }