diff --git a/sormas-api/src/main/java/de/symeda/sormas/api/sample/SampleMaterial.java b/sormas-api/src/main/java/de/symeda/sormas/api/sample/SampleMaterial.java index 35936581aef..b7898fe5099 100644 --- a/sormas-api/src/main/java/de/symeda/sormas/api/sample/SampleMaterial.java +++ b/sormas-api/src/main/java/de/symeda/sormas/api/sample/SampleMaterial.java @@ -89,6 +89,9 @@ public enum SampleMaterial { @Diseases(value = { Disease.CORONAVIRUS, MEASLES }, hide = true) NUCHAL_SKIN_BIOPSY, + @Diseases(value = { + MEASLES, + }, hide = true) SPUTUM, @Diseases(value = { MEASLES, diff --git a/sormas-app/app/src/main/res/layout/fragment_case_edit_layout.xml b/sormas-app/app/src/main/res/layout/fragment_case_edit_layout.xml index 21f84ba51f1..c61ec38c08d 100644 --- a/sormas-app/app/src/main/res/layout/fragment_case_edit_layout.xml +++ b/sormas-app/app/src/main/res/layout/fragment_case_edit_layout.xml @@ -944,6 +944,7 @@ { fluidRowLocs(PersonDto.UUID, "") + fluidRowLocs(PersonDto.FIRST_NAME, PersonDto.LAST_NAME, PersonDto.OTHER_NAME, PersonDto.FATHERS_NAME) + fluidRowLocs(PersonDto.APPROXIMATE_AGE, PersonDto.SEX, PersonDto.OCCUPATION_DETAILS, PersonDto.ETHNICITY) + + fluidRowLocs(4, PersonDto.PASSPORT_NUMBER) + loc(ADDRESS_HEADER) + fluidRowLocs(PersonDto.ADDRESS) + fluidRowLocs(PersonDto.PLACE_OF_RESIDENCE_SAME_AS_REPORTING_VILLAGE, PersonDto.RESIDENCE_SINCE_WHEN_IN_MONTHS) + @@ -833,13 +834,17 @@ protected void addFields() { generalCommentLabel.setVisible(false); setVisible(false, PersonDto.ADDITIONAL_DETAILS); setVisible(false, PersonDto.MOTHERS_MAIDEN_NAME); - setVisible(false, PersonDto.NICKNAME, OCCUPATION_HEADER); + setVisible(false, PersonDto.NICKNAME); setVisible(true, PersonDto.GHANA_CARD, PersonDto.NATIONAL_HEALTH_ID); } + if (caseOrigin == CaseOrigin.POINT_OF_ENTRY) { + setVisible(true, PersonDto.PASSPORT_NUMBER); + } + if (disease == Disease.GUINEA_WORM) { generalCommentLabel.setVisible(false); - setVisible(false, PersonDto.PRESENT_CONDITION, PersonDto.NATIONAL_HEALTH_ID, PersonDto.GHANA_CARD, PersonDto.PASSPORT_NUMBER, PersonDto.BIRTH_DATE_YYYY, + setVisible(false, PersonDto.PRESENT_CONDITION, PersonDto.NATIONAL_HEALTH_ID, PersonDto.GHANA_CARD, PersonDto.BIRTH_DATE_YYYY, PersonDto.BIRTH_DATE_MM, PersonDto.BIRTH_DATE_DD, PersonDto.ADDITIONAL_DETAILS, PersonDto.EDUCATION_TYPE, PersonDto.EDUCATION_DETAILS, PersonDto.MOTHERS_NAME); setVisible(true, PersonDto.PLACE_OF_RESIDENCE_SAME_AS_REPORTING_VILLAGE, PersonDto.ETHNICITY); } diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/AbstractSampleForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/AbstractSampleForm.java index 6c4df04d955..588970f8f8c 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/AbstractSampleForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/AbstractSampleForm.java @@ -241,6 +241,7 @@ public abstract class AbstractSampleForm extends AbstractEditForm { fluidRowLocs(SampleDto.LAB_LOCAL) + fluidRowLocs(6, SampleDto.LAB_LOCAL_DETAILS) + fluidRowLocs(SampleDto.LAB, SampleDto.LAB_DETAILS) + + fluidRowLocs(4, SampleDto.FIELD_SAMPLE_ID) + // fluidRowLocs(6, SampleDto.SAMPLE_MATERIAL) + loc(HEADING_SPECIMEN_HANDLING) + fluidRowLocs(SampleDto.SPECIMEN_SAVED_AND_PRESEVED_IN_ALCOHOL) +