1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.xds.core.requests;
17
18 import lombok.EqualsAndHashCode;
19 import lombok.ToString;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlElementRef;
24 import javax.xml.bind.annotation.XmlRootElement;
25 import javax.xml.bind.annotation.XmlType;
26 import java.io.Serializable;
27 import java.util.ArrayList;
28 import java.util.List;
29
30
31
32
33
34
35
36
37
38 @XmlAccessorType(XmlAccessType.FIELD)
39 @XmlType(name = "RetrieveSeries", propOrder = {"seriesInstanceUID", "documents"})
40 @XmlRootElement(name = "retrieveSeries")
41 @EqualsAndHashCode(doNotUseGetters = true)
42 @ToString(doNotUseGetters = true)
43 public class RetrieveSeries implements Serializable
44 {
45 private static final long serialVersionUID = 8999352499981099421L;
46
47 protected String seriesInstanceUID;
48 @XmlElementRef
49 private List<DocumentReference> documents = new ArrayList<>();
50
51
52
53
54 public RetrieveSeries() {}
55
56
57
58
59
60
61
62 public RetrieveSeries(String seriesInstanceUID, List<DocumentReference> documents) {
63 this.seriesInstanceUID = seriesInstanceUID;
64 this.documents = documents;
65 }
66
67
68
69
70
71
72
73 public String getSeriesInstanceUID() {
74 return seriesInstanceUID;
75 }
76
77
78
79
80
81 public void setSeriesInstanceUID(String seriesInstanceUID) {
82 this.seriesInstanceUID = seriesInstanceUID;
83 }
84
85
86
87
88 public List<DocumentReference> getDocuments() {
89 return documents;
90 }
91
92 }