This repository has been archived by the owner on May 5, 2021. It is now read-only.
forked from SORMAS-Foundation/SORMAS-Project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SORMAS-Foundation#3486: Add LabMessage to backend
- Loading branch information
1 parent
666067e
commit 04984a0
Showing
9 changed files
with
811 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
278 changes: 278 additions & 0 deletions
278
sormas-api/src/main/java/de/symeda/sormas/api/labmessage/LabMessageDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,278 @@ | ||
package de.symeda.sormas.api.labmessage; | ||
|
||
import java.util.Date; | ||
|
||
import de.symeda.sormas.api.Disease; | ||
import de.symeda.sormas.api.EntityDto; | ||
import de.symeda.sormas.api.person.Sex; | ||
import de.symeda.sormas.api.sample.PathogenTestResultType; | ||
import de.symeda.sormas.api.sample.PathogenTestType; | ||
import de.symeda.sormas.api.sample.SampleMaterial; | ||
import de.symeda.sormas.api.sample.SpecimenCondition; | ||
import de.symeda.sormas.api.utils.DataHelper; | ||
|
||
public class LabMessageDto extends EntityDto { | ||
|
||
public static final String I18N_PREFIX = "Location"; | ||
|
||
public static final String SAMPLE_DATE_TIME = "sampleDateTime"; | ||
public static final String SAMPLE_RECEIVED_DATE = "sampleReceivedDate"; | ||
public static final String LAB_SAMPLE_ID = "labSampleId"; | ||
public static final String SAMPLE_MATERIAL = "sampleMaterial"; | ||
public static final String TEST_LAB_NAME = "testLabName"; | ||
public static final String TEST_LAB_EXTERNAL_ID = "testLabExternalId"; | ||
public static final String TEST_LAB_POSTAL_CODE = "testLabPostalCode"; | ||
public static final String TEST_LAB_CITY = "testLabCity"; | ||
public static final String SPECIMEN_CONDITION = "specimenCondition"; | ||
public static final String TEST_TYPE = "testType"; | ||
public static final String TESTED_DISEASE = "testedDisease"; | ||
public static final String TEST_DATE_TIME = "testDateTime"; | ||
public static final String TEST_RESULT = "testResult"; | ||
public static final String PERSON_FIRST_NAME = "personFirstName"; | ||
public static final String PERSON_LAST_NAME = "personLastName"; | ||
public static final String PERSON_SEX = "personSex"; | ||
public static final String PERSON_BIRTH_DATE_DD = "personBirthDateDD"; | ||
public static final String PERSON_BIRTH_DATE_MM = "personBirthDateMM"; | ||
public static final String PERSON_BIRTH_DATE_YYYY = "personBirthDateYYYY"; | ||
public static final String PERSON_POSTAL_CODE = "personPostalCode"; | ||
public static final String PERSON_CITY = "personCity"; | ||
public static final String PERSON_STREET = "personStreet"; | ||
public static final String PERSON_HOUSE_NUMBER = "personHouseNumber"; | ||
public static final String LAB_MESSAGE_DETAILS = "labMessageDetails"; | ||
public static final String PROCESSED = "processed"; | ||
|
||
private Date sampleDateTime; | ||
private Date sampleReceivedDate; | ||
private String labSampleId; | ||
private SampleMaterial sampleMaterial; | ||
private String testLabName; | ||
private String testLabExternalId; | ||
private String testLabPostalCode; | ||
private String testLabCity; | ||
private SpecimenCondition specimenCondition; | ||
private PathogenTestType testType; | ||
private Disease testedDisease; | ||
private Date testDateTime; | ||
private PathogenTestResultType testResult; | ||
private String personFirstName; | ||
private String personLastName; | ||
private Sex personSex; | ||
private Integer personBirthDateDD; | ||
private Integer personBirthDateMM; | ||
private Integer personBirthDateYYYY; | ||
private String personPostalCode; | ||
private String personCity; | ||
private String personStreet; | ||
private String personHouseNumber; | ||
|
||
private String labMessageDetails; | ||
|
||
private boolean processed; | ||
|
||
public Date getSampleDateTime() { | ||
return sampleDateTime; | ||
} | ||
|
||
public void setSampleDateTime(Date sampleDateTime) { | ||
this.sampleDateTime = sampleDateTime; | ||
} | ||
|
||
public Date getSampleReceivedDate() { | ||
return sampleReceivedDate; | ||
} | ||
|
||
public void setSampleReceivedDate(Date sampleReceivedDate) { | ||
this.sampleReceivedDate = sampleReceivedDate; | ||
} | ||
|
||
public String getLabSampleId() { | ||
return labSampleId; | ||
} | ||
|
||
public void setLabSampleId(String labSampleId) { | ||
this.labSampleId = labSampleId; | ||
} | ||
|
||
public SampleMaterial getSampleMaterial() { | ||
return sampleMaterial; | ||
} | ||
|
||
public void setSampleMaterial(SampleMaterial sampleMaterial) { | ||
this.sampleMaterial = sampleMaterial; | ||
} | ||
|
||
public String getTestLabName() { | ||
return testLabName; | ||
} | ||
|
||
public void setTestLabName(String testLabName) { | ||
this.testLabName = testLabName; | ||
} | ||
|
||
public String getTestLabExternalId() { | ||
return testLabExternalId; | ||
} | ||
|
||
public void setTestLabExternalId(String testLabExternalId) { | ||
this.testLabExternalId = testLabExternalId; | ||
} | ||
|
||
public String getTestLabPostalCode() { | ||
return testLabPostalCode; | ||
} | ||
|
||
public void setTestLabPostalCode(String testLabPostalCode) { | ||
this.testLabPostalCode = testLabPostalCode; | ||
} | ||
|
||
public String getTestLabCity() { | ||
return testLabCity; | ||
} | ||
|
||
public void setTestLabCity(String testLabCity) { | ||
this.testLabCity = testLabCity; | ||
} | ||
|
||
public SpecimenCondition getSpecimenCondition() { | ||
return specimenCondition; | ||
} | ||
|
||
public void setSpecimenCondition(SpecimenCondition specimenCondition) { | ||
this.specimenCondition = specimenCondition; | ||
} | ||
|
||
public PathogenTestType getTestType() { | ||
return testType; | ||
} | ||
|
||
public void setTestType(PathogenTestType testType) { | ||
this.testType = testType; | ||
} | ||
|
||
public Disease getTestedDisease() { | ||
return testedDisease; | ||
} | ||
|
||
public void setTestedDisease(Disease testedDisease) { | ||
this.testedDisease = testedDisease; | ||
} | ||
|
||
public Date getTestDateTime() { | ||
return testDateTime; | ||
} | ||
|
||
public void setTestDateTime(Date testDateTime) { | ||
this.testDateTime = testDateTime; | ||
} | ||
|
||
public PathogenTestResultType getTestResult() { | ||
return testResult; | ||
} | ||
|
||
public void setTestResult(PathogenTestResultType testResult) { | ||
this.testResult = testResult; | ||
} | ||
|
||
public String getPersonFirstName() { | ||
return personFirstName; | ||
} | ||
|
||
public void setPersonFirstName(String personFirstName) { | ||
this.personFirstName = personFirstName; | ||
} | ||
|
||
public String getPersonLastName() { | ||
return personLastName; | ||
} | ||
|
||
public void setPersonLastName(String personLastName) { | ||
this.personLastName = personLastName; | ||
} | ||
|
||
public Sex getPersonSex() { | ||
return personSex; | ||
} | ||
|
||
public void setPersonSex(Sex personSex) { | ||
this.personSex = personSex; | ||
} | ||
|
||
public Integer getPersonBirthDateDD() { | ||
return personBirthDateDD; | ||
} | ||
|
||
public void setPersonBirthDateDD(Integer personBirthDateDD) { | ||
this.personBirthDateDD = personBirthDateDD; | ||
} | ||
|
||
public Integer getPersonBirthDateMM() { | ||
return personBirthDateMM; | ||
} | ||
|
||
public void setPersonBirthDateMM(Integer personBirthDateMM) { | ||
this.personBirthDateMM = personBirthDateMM; | ||
} | ||
|
||
public Integer getPersonBirthDateYYYY() { | ||
return personBirthDateYYYY; | ||
} | ||
|
||
public void setPersonBirthDateYYYY(Integer personBirthDateYYYY) { | ||
this.personBirthDateYYYY = personBirthDateYYYY; | ||
} | ||
|
||
public String getPersonPostalCode() { | ||
return personPostalCode; | ||
} | ||
|
||
public void setPersonPostalCode(String personPostalCode) { | ||
this.personPostalCode = personPostalCode; | ||
} | ||
|
||
public String getPersonCity() { | ||
return personCity; | ||
} | ||
|
||
public void setPersonCity(String personCity) { | ||
this.personCity = personCity; | ||
} | ||
|
||
public String getPersonStreet() { | ||
return personStreet; | ||
} | ||
|
||
public void setPersonStreet(String personStreet) { | ||
this.personStreet = personStreet; | ||
} | ||
|
||
public String getPersonHouseNumber() { | ||
return personHouseNumber; | ||
} | ||
|
||
public void setPersonHouseNumber(String personHouseNumber) { | ||
this.personHouseNumber = personHouseNumber; | ||
} | ||
|
||
public String getLabMessageDetails() { | ||
return labMessageDetails; | ||
} | ||
|
||
public void setLabMessageDetails(String labMessageDetails) { | ||
this.labMessageDetails = labMessageDetails; | ||
} | ||
|
||
public boolean isProcessed() { | ||
return processed; | ||
} | ||
|
||
public void setProcessed(boolean processed) { | ||
this.processed = processed; | ||
} | ||
|
||
public static LabMessageDto build() { | ||
|
||
LabMessageDto labMessage = new LabMessageDto(); | ||
labMessage.setUuid(DataHelper.createUuid()); | ||
return labMessage; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
sormas-api/src/main/java/de/symeda/sormas/api/labmessage/LabMessageFacade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package de.symeda.sormas.api.labmessage; | ||
|
||
import javax.ejb.Remote; | ||
|
||
@Remote | ||
public interface LabMessageFacade { | ||
|
||
void save(LabMessageDto dto); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.