Skip to content

Commit

Permalink
Merge branch 'gh-release-1.87.0-cases-based-android-5' into gh-releas…
Browse files Browse the repository at this point in the history
…e-1.87.0
  • Loading branch information
douglasderrick committed Jan 23, 2025
2 parents b80d3b3 + c6160d2 commit f289e26
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@
<de.symeda.sormas.app.component.controls.ControlSwitchField
android:id="@+id/caseData_vaccinationStatus"
app:value="@={data.vaccinationStatus}"
app:required="true"
style="@style/ControlSingleColumnStyle" />

<de.symeda.sormas.app.component.controls.ControlSwitchField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1824,14 +1824,12 @@ public String getFormattedHtmlMessage() {
if (disease == Disease.MEASLES) {
vaccinationStatus.setRequired(true);
outcome.setVisible(false);
FieldHelper.setVisibleWhen(vaccinationStatus, Arrays.asList(numberOfDoses, vaccinationRoutine, lastVaccinationDate), Arrays.asList(VaccinationStatus.VACCINATED), true);
}

//measles
if (disease == Disease.MEASLES) {
FieldHelper.setVisibleWhen(vaccinationStatus, Arrays.asList(numberOfDoses, vaccinationRoutine), Arrays.asList(VaccinationStatus.VACCINATED), true);
FieldHelper.setEnabledWhen(vaccinationStatus, Arrays.asList(VaccinationStatus.VACCINATED), Collections.singletonList(
vaccinatedByCardOrHistory
), false);
FieldHelper.setVisibleWhen(vaccinatedByCardOrHistory, Arrays.asList(cardDateField), Arrays.asList(CardOrHistory.CARD), true);
lastVaccinationDate.setVisible(false);

setVaccinatedByCardOrHistoryVisibility();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public class PersonEditForm extends AbstractEditForm<PersonDto> {
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) +
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public abstract class AbstractSampleForm extends AbstractEditForm<SampleDto> {
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) +
Expand Down

0 comments on commit f289e26

Please sign in to comment.