|
| 1 | +package de.symeda.sormas.api.labmessage; |
| 2 | + |
| 3 | +import java.util.Date; |
| 4 | + |
| 5 | +import de.symeda.sormas.api.Disease; |
| 6 | +import de.symeda.sormas.api.EntityDto; |
| 7 | +import de.symeda.sormas.api.person.Sex; |
| 8 | +import de.symeda.sormas.api.sample.PathogenTestResultType; |
| 9 | +import de.symeda.sormas.api.sample.PathogenTestType; |
| 10 | +import de.symeda.sormas.api.sample.SampleMaterial; |
| 11 | +import de.symeda.sormas.api.sample.SpecimenCondition; |
| 12 | +import de.symeda.sormas.api.utils.DataHelper; |
| 13 | + |
| 14 | +public class LabMessageDto extends EntityDto { |
| 15 | + |
| 16 | + public static final String I18N_PREFIX = "Location"; |
| 17 | + |
| 18 | + public static final String SAMPLE_DATE_TIME = "sampleDateTime"; |
| 19 | + public static final String SAMPLE_RECEIVED_DATE = "sampleReceivedDate"; |
| 20 | + public static final String LAB_SAMPLE_ID = "labSampleId"; |
| 21 | + public static final String SAMPLE_MATERIAL = "sampleMaterial"; |
| 22 | + public static final String TEST_LAB_NAME = "testLabName"; |
| 23 | + public static final String TEST_LAB_EXTERNAL_ID = "testLabExternalId"; |
| 24 | + public static final String TEST_LAB_POSTAL_CODE = "testLabPostalCode"; |
| 25 | + public static final String TEST_LAB_CITY = "testLabCity"; |
| 26 | + public static final String SPECIMEN_CONDITION = "specimenCondition"; |
| 27 | + public static final String TEST_TYPE = "testType"; |
| 28 | + public static final String TESTED_DISEASE = "testedDisease"; |
| 29 | + public static final String TEST_DATE_TIME = "testDateTime"; |
| 30 | + public static final String TEST_RESULT = "testResult"; |
| 31 | + public static final String PERSON_FIRST_NAME = "personFirstName"; |
| 32 | + public static final String PERSON_LAST_NAME = "personLastName"; |
| 33 | + public static final String PERSON_SEX = "personSex"; |
| 34 | + public static final String PERSON_BIRTH_DATE_DD = "personBirthDateDD"; |
| 35 | + public static final String PERSON_BIRTH_DATE_MM = "personBirthDateMM"; |
| 36 | + public static final String PERSON_BIRTH_DATE_YYYY = "personBirthDateYYYY"; |
| 37 | + public static final String PERSON_POSTAL_CODE = "personPostalCode"; |
| 38 | + public static final String PERSON_CITY = "personCity"; |
| 39 | + public static final String PERSON_STREET = "personStreet"; |
| 40 | + public static final String PERSON_HOUSE_NUMBER = "personHouseNumber"; |
| 41 | + public static final String LAB_MESSAGE_DETAILS = "labMessageDetails"; |
| 42 | + public static final String PROCESSED = "processed"; |
| 43 | + |
| 44 | + private Date sampleDateTime; |
| 45 | + private Date sampleReceivedDate; |
| 46 | + private String labSampleId; |
| 47 | + private SampleMaterial sampleMaterial; |
| 48 | + private String testLabName; |
| 49 | + private String testLabExternalId; |
| 50 | + private String testLabPostalCode; |
| 51 | + private String testLabCity; |
| 52 | + private SpecimenCondition specimenCondition; |
| 53 | + private PathogenTestType testType; |
| 54 | + private Disease testedDisease; |
| 55 | + private Date testDateTime; |
| 56 | + private PathogenTestResultType testResult; |
| 57 | + private String personFirstName; |
| 58 | + private String personLastName; |
| 59 | + private Sex personSex; |
| 60 | + private Integer personBirthDateDD; |
| 61 | + private Integer personBirthDateMM; |
| 62 | + private Integer personBirthDateYYYY; |
| 63 | + private String personPostalCode; |
| 64 | + private String personCity; |
| 65 | + private String personStreet; |
| 66 | + private String personHouseNumber; |
| 67 | + |
| 68 | + private String labMessageDetails; |
| 69 | + |
| 70 | + private boolean processed; |
| 71 | + |
| 72 | + public Date getSampleDateTime() { |
| 73 | + return sampleDateTime; |
| 74 | + } |
| 75 | + |
| 76 | + public void setSampleDateTime(Date sampleDateTime) { |
| 77 | + this.sampleDateTime = sampleDateTime; |
| 78 | + } |
| 79 | + |
| 80 | + public Date getSampleReceivedDate() { |
| 81 | + return sampleReceivedDate; |
| 82 | + } |
| 83 | + |
| 84 | + public void setSampleReceivedDate(Date sampleReceivedDate) { |
| 85 | + this.sampleReceivedDate = sampleReceivedDate; |
| 86 | + } |
| 87 | + |
| 88 | + public String getLabSampleId() { |
| 89 | + return labSampleId; |
| 90 | + } |
| 91 | + |
| 92 | + public void setLabSampleId(String labSampleId) { |
| 93 | + this.labSampleId = labSampleId; |
| 94 | + } |
| 95 | + |
| 96 | + public SampleMaterial getSampleMaterial() { |
| 97 | + return sampleMaterial; |
| 98 | + } |
| 99 | + |
| 100 | + public void setSampleMaterial(SampleMaterial sampleMaterial) { |
| 101 | + this.sampleMaterial = sampleMaterial; |
| 102 | + } |
| 103 | + |
| 104 | + public String getTestLabName() { |
| 105 | + return testLabName; |
| 106 | + } |
| 107 | + |
| 108 | + public void setTestLabName(String testLabName) { |
| 109 | + this.testLabName = testLabName; |
| 110 | + } |
| 111 | + |
| 112 | + public String getTestLabExternalId() { |
| 113 | + return testLabExternalId; |
| 114 | + } |
| 115 | + |
| 116 | + public void setTestLabExternalId(String testLabExternalId) { |
| 117 | + this.testLabExternalId = testLabExternalId; |
| 118 | + } |
| 119 | + |
| 120 | + public String getTestLabPostalCode() { |
| 121 | + return testLabPostalCode; |
| 122 | + } |
| 123 | + |
| 124 | + public void setTestLabPostalCode(String testLabPostalCode) { |
| 125 | + this.testLabPostalCode = testLabPostalCode; |
| 126 | + } |
| 127 | + |
| 128 | + public String getTestLabCity() { |
| 129 | + return testLabCity; |
| 130 | + } |
| 131 | + |
| 132 | + public void setTestLabCity(String testLabCity) { |
| 133 | + this.testLabCity = testLabCity; |
| 134 | + } |
| 135 | + |
| 136 | + public SpecimenCondition getSpecimenCondition() { |
| 137 | + return specimenCondition; |
| 138 | + } |
| 139 | + |
| 140 | + public void setSpecimenCondition(SpecimenCondition specimenCondition) { |
| 141 | + this.specimenCondition = specimenCondition; |
| 142 | + } |
| 143 | + |
| 144 | + public PathogenTestType getTestType() { |
| 145 | + return testType; |
| 146 | + } |
| 147 | + |
| 148 | + public void setTestType(PathogenTestType testType) { |
| 149 | + this.testType = testType; |
| 150 | + } |
| 151 | + |
| 152 | + public Disease getTestedDisease() { |
| 153 | + return testedDisease; |
| 154 | + } |
| 155 | + |
| 156 | + public void setTestedDisease(Disease testedDisease) { |
| 157 | + this.testedDisease = testedDisease; |
| 158 | + } |
| 159 | + |
| 160 | + public Date getTestDateTime() { |
| 161 | + return testDateTime; |
| 162 | + } |
| 163 | + |
| 164 | + public void setTestDateTime(Date testDateTime) { |
| 165 | + this.testDateTime = testDateTime; |
| 166 | + } |
| 167 | + |
| 168 | + public PathogenTestResultType getTestResult() { |
| 169 | + return testResult; |
| 170 | + } |
| 171 | + |
| 172 | + public void setTestResult(PathogenTestResultType testResult) { |
| 173 | + this.testResult = testResult; |
| 174 | + } |
| 175 | + |
| 176 | + public String getPersonFirstName() { |
| 177 | + return personFirstName; |
| 178 | + } |
| 179 | + |
| 180 | + public void setPersonFirstName(String personFirstName) { |
| 181 | + this.personFirstName = personFirstName; |
| 182 | + } |
| 183 | + |
| 184 | + public String getPersonLastName() { |
| 185 | + return personLastName; |
| 186 | + } |
| 187 | + |
| 188 | + public void setPersonLastName(String personLastName) { |
| 189 | + this.personLastName = personLastName; |
| 190 | + } |
| 191 | + |
| 192 | + public Sex getPersonSex() { |
| 193 | + return personSex; |
| 194 | + } |
| 195 | + |
| 196 | + public void setPersonSex(Sex personSex) { |
| 197 | + this.personSex = personSex; |
| 198 | + } |
| 199 | + |
| 200 | + public Integer getPersonBirthDateDD() { |
| 201 | + return personBirthDateDD; |
| 202 | + } |
| 203 | + |
| 204 | + public void setPersonBirthDateDD(Integer personBirthDateDD) { |
| 205 | + this.personBirthDateDD = personBirthDateDD; |
| 206 | + } |
| 207 | + |
| 208 | + public Integer getPersonBirthDateMM() { |
| 209 | + return personBirthDateMM; |
| 210 | + } |
| 211 | + |
| 212 | + public void setPersonBirthDateMM(Integer personBirthDateMM) { |
| 213 | + this.personBirthDateMM = personBirthDateMM; |
| 214 | + } |
| 215 | + |
| 216 | + public Integer getPersonBirthDateYYYY() { |
| 217 | + return personBirthDateYYYY; |
| 218 | + } |
| 219 | + |
| 220 | + public void setPersonBirthDateYYYY(Integer personBirthDateYYYY) { |
| 221 | + this.personBirthDateYYYY = personBirthDateYYYY; |
| 222 | + } |
| 223 | + |
| 224 | + public String getPersonPostalCode() { |
| 225 | + return personPostalCode; |
| 226 | + } |
| 227 | + |
| 228 | + public void setPersonPostalCode(String personPostalCode) { |
| 229 | + this.personPostalCode = personPostalCode; |
| 230 | + } |
| 231 | + |
| 232 | + public String getPersonCity() { |
| 233 | + return personCity; |
| 234 | + } |
| 235 | + |
| 236 | + public void setPersonCity(String personCity) { |
| 237 | + this.personCity = personCity; |
| 238 | + } |
| 239 | + |
| 240 | + public String getPersonStreet() { |
| 241 | + return personStreet; |
| 242 | + } |
| 243 | + |
| 244 | + public void setPersonStreet(String personStreet) { |
| 245 | + this.personStreet = personStreet; |
| 246 | + } |
| 247 | + |
| 248 | + public String getPersonHouseNumber() { |
| 249 | + return personHouseNumber; |
| 250 | + } |
| 251 | + |
| 252 | + public void setPersonHouseNumber(String personHouseNumber) { |
| 253 | + this.personHouseNumber = personHouseNumber; |
| 254 | + } |
| 255 | + |
| 256 | + public String getLabMessageDetails() { |
| 257 | + return labMessageDetails; |
| 258 | + } |
| 259 | + |
| 260 | + public void setLabMessageDetails(String labMessageDetails) { |
| 261 | + this.labMessageDetails = labMessageDetails; |
| 262 | + } |
| 263 | + |
| 264 | + public boolean isProcessed() { |
| 265 | + return processed; |
| 266 | + } |
| 267 | + |
| 268 | + public void setProcessed(boolean processed) { |
| 269 | + this.processed = processed; |
| 270 | + } |
| 271 | + |
| 272 | + public static LabMessageDto build() { |
| 273 | + |
| 274 | + LabMessageDto labMessage = new LabMessageDto(); |
| 275 | + labMessage.setUuid(DataHelper.createUuid()); |
| 276 | + return labMessage; |
| 277 | + } |
| 278 | +} |
0 commit comments