1 package org.emau.icmvc.ganimed.ttp.cm2.dto;
38 import java.io.Serializable;
39 import java.util.Date;
40 import java.util.HashMap;
51 private static final long serialVersionUID = -4094005853140726190L;
52 private String patientSignatureBase64;
53 private String physicanSignatureBase64;
54 private String scanBase64;
55 private Map<String, String> freeTextVals =
new HashMap<String, String>();
70 super(
new ConsentKeyDTO(dto.getKey().getConsentTemplateKey(), dto.getKey().getSignerIds(), date));
71 super.setComment(dto.getComment());
72 super.setExternProperties(dto.getExternProperties());
73 Map<ModuleKeyDTO, ModuleStateDTO> moduleStates =
new HashMap<ModuleKeyDTO, ModuleStateDTO>(dto.getModuleStates());
74 super.setModuleStates(moduleStates);
75 super.setPatientSignatureIsFromGuardian(dto.getPatientSignatureIsFromGuardian());
76 super.setPatientSigningDate(dto.getPatientSigningDate());
77 super.setPhysicanId(dto.getPhysicanId());
78 super.setPhysicanSigningDate(dto.getPhysicanSigningDate());
79 super.setScanFileType(dto.getScanFileType());
80 setPatientSignatureBase64(dto.getPatientSignatureBase64());
81 setPhysicanSignatureBase64(dto.getPhysicanSignatureBase64());
82 setScanBase64(dto.getScanBase64());
83 Map<String, String> freeTextVals =
new HashMap<String, String>(dto.getFreeTextVals());
84 setFreeTextVals(freeTextVals);
87 public String getPatientSignatureBase64() {
88 return patientSignatureBase64;
91 public void setPatientSignatureBase64(String patientSignatureBase64) {
92 this.patientSignatureBase64 = patientSignatureBase64;
95 public String getPhysicanSignatureBase64() {
96 return physicanSignatureBase64;
99 public void setPhysicanSignatureBase64(String physicanSignatureBase64) {
100 this.physicanSignatureBase64 = physicanSignatureBase64;
103 public String getScanBase64() {
107 public void setScanBase64(String scanBase64) {
108 this.scanBase64 = scanBase64;
111 public Map<String, String> getFreeTextVals() {
115 public void setFreeTextVals(Map<String, String> freeTextVals) {
116 if (freeTextVals != null) {
117 this.freeTextVals = freeTextVals;
122 public int hashCode() {
123 final int prime = 31;
124 int result = super.hashCode();
125 result = prime * result + ((freeTextVals == null) ? 0 : freeTextVals.hashCode());
126 result = prime * result + ((patientSignatureBase64 == null) ? 0 : patientSignatureBase64.hashCode());
127 result = prime * result + ((physicanSignatureBase64 == null) ? 0 : physicanSignatureBase64.hashCode());
128 result = prime * result + ((scanBase64 == null) ? 0 : scanBase64.hashCode());
133 public boolean equals(Object obj) {
136 if (!super.equals(obj))
138 if (getClass() != obj.getClass())
141 if (freeTextVals == null) {
142 if (other.freeTextVals != null)
144 }
else if (!freeTextVals.equals(other.freeTextVals))
146 if (patientSignatureBase64 == null) {
147 if (other.patientSignatureBase64 != null)
149 }
else if (!patientSignatureBase64.equals(other.patientSignatureBase64))
151 if (physicanSignatureBase64 == null) {
152 if (other.physicanSignatureBase64 != null)
154 }
else if (!physicanSignatureBase64.equals(other.physicanSignatureBase64))
156 if (scanBase64 == null) {
157 if (other.scanBase64 != null)
159 }
else if (!scanBase64.equals(other.scanBase64))
165 public String toString() {
166 final StringBuilder sb =
new StringBuilder(super.toString());
168 sb.append(freeTextVals.size());
169 sb.append(
" free text values");
170 return sb.toString();
ein consent ist ein ausgefuelltes und unterschriebenes konsentdokument (consent template) ...
ein consent ist ein ausgefuelltes und unterschriebenes konsentdokument (consent template) das light ...