1 package org.emau.icmvc.ganimed.ttp.cm2.dto;
38 import java.io.Serializable;
39 import java.util.Date;
40 import java.util.HashMap;
54 private static final long serialVersionUID = -4082209239245270664L;
56 private boolean patientSignatureIsFromGuardian;
57 private String physicanId;
58 private Date patientSigningDate;
59 private Date physicanSigningDate;
60 private String comment;
61 private String externProperties;
62 private String scanFileType;
64 private Map<ModuleKeyDTO, ModuleStateDTO> moduleStates =
new HashMap<ModuleKeyDTO, ModuleStateDTO>();
75 this.key = lightDTO.getKey();
76 setComment(lightDTO.getComment());
77 setExternProperties(lightDTO.getExternProperties());
78 Map<ModuleKeyDTO, ModuleStateDTO> moduleStates =
new HashMap<ModuleKeyDTO, ModuleStateDTO>(lightDTO.getModuleStates());
79 setModuleStates(moduleStates);
80 setPatientSignatureIsFromGuardian(lightDTO.getPatientSignatureIsFromGuardian());
81 setPatientSigningDate(lightDTO.getPatientSigningDate());
82 setPhysicanId(lightDTO.getPhysicanId());
83 setPhysicanSigningDate(lightDTO.getPhysicanSigningDate());
84 setScanFileType(lightDTO.getScanFileType());
97 public boolean getPatientSignatureIsFromGuardian() {
98 return patientSignatureIsFromGuardian;
101 public void setPatientSignatureIsFromGuardian(
boolean patientSignatureIsFromGuardian) {
102 this.patientSignatureIsFromGuardian = patientSignatureIsFromGuardian;
105 public String getPhysicanId() {
109 public void setPhysicanId(String physicanId) {
110 this.physicanId = physicanId;
113 public Date getPatientSigningDate() {
114 return patientSigningDate;
117 public void setPatientSigningDate(Date patientSigningDate) {
118 this.patientSigningDate = patientSigningDate;
121 public Date getPhysicanSigningDate() {
122 return physicanSigningDate;
125 public void setPhysicanSigningDate(Date physicanSigningDate) {
126 this.physicanSigningDate = physicanSigningDate;
129 public String getComment() {
133 public void setComment(String comment) {
134 this.comment = comment;
137 public String getExternProperties() {
138 return externProperties;
141 public void setExternProperties(String externProperties) {
142 this.externProperties = externProperties;
145 public String getScanFileType() {
149 public void setScanFileType(String scanFileType) {
150 this.scanFileType = scanFileType;
158 this.templateType = templateType;
161 public Map<ModuleKeyDTO, ModuleStateDTO> getModuleStates() {
165 public void setModuleStates(Map<ModuleKeyDTO, ModuleStateDTO> moduleStates) {
166 if (moduleStates != null) {
167 this.moduleStates = moduleStates;
172 public int hashCode() {
173 final int prime = 31;
175 result = prime * result + ((comment == null) ? 0 : comment.hashCode());
176 result = prime * result + ((externProperties == null) ? 0 : externProperties.hashCode());
177 result = prime * result + ((key == null) ? 0 : key.hashCode());
178 result = prime * result + ((patientSignatureIsFromGuardian) ? 1231 : 1237);
179 result = prime * result + ((patientSigningDate == null) ? 0 : patientSigningDate.hashCode());
180 result = prime * result + ((physicanId == null) ? 0 : physicanId.hashCode());
181 result = prime * result + ((physicanSigningDate == null) ? 0 : physicanSigningDate.hashCode());
182 result = prime * result + ((moduleStates == null) ? 0 : moduleStates.hashCode());
183 result = prime * result + ((scanFileType == null) ? 0 : scanFileType.hashCode());
188 public boolean equals(Object obj) {
193 if (getClass() != obj.getClass())
197 if (other.key != null)
199 }
else if (!key.equals(other.key))
201 if (comment == null) {
202 if (other.comment != null)
204 }
else if (!comment.equals(other.comment))
206 if (externProperties == null) {
207 if (other.externProperties != null)
209 }
else if (!externProperties.equals(other.externProperties))
211 if(patientSignatureIsFromGuardian != other.patientSignatureIsFromGuardian)
213 if (patientSigningDate == null) {
214 if (other.patientSigningDate != null)
216 }
else if (!patientSigningDate.equals(other.patientSigningDate))
218 if (physicanId == null) {
219 if (other.physicanId != null)
221 }
else if (!physicanId.equals(other.physicanId))
223 if (physicanSigningDate == null) {
224 if (other.physicanSigningDate != null)
226 }
else if (!physicanSigningDate.equals(other.physicanSigningDate))
228 if (moduleStates == null) {
229 if (other.moduleStates != null)
231 }
else if (!moduleStates.equals(other.moduleStates))
233 if (scanFileType == null) {
234 if (other.scanFileType != null)
236 }
else if (!scanFileType.equals(other.scanFileType))
242 public String toString() {
243 final StringBuilder sb =
new StringBuilder();
245 sb.append(
" with comment '");
247 sb.append(
"', extern properties '");
248 sb.append(externProperties);
250 sb.append(moduleStates.size());
251 sb.append(
" module states");
252 return sb.toString();
ein consent ist ein ausgefuelltes und unterschriebenes konsentdokument (consent template) das light ...