Skip to content

Commit b07aa91

Browse files
Merge pull request #14120 from SORMAS-Foundation/bugfix-14066-rsv-case-person-issue
Corrected the label and other fields visibilities
2 parents ffa7ff7 + 15e354a commit b07aa91

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

sormas-api/src/main/resources/captions.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ Person.birthdateDD=Day of birth
20502050
Person.birthdateMM=Month of birth
20512051
Person.birthdateYYYY=Year of birth
20522052
Person.ageAndBirthDate=Age and birth date
2053-
Person.birthWeight=Birth weight (g)
2053+
Person.birthWeight=Weight if known
20542054
Person.burialConductor=Burial conductor
20552055
Person.burialDate=Date of burial
20562056
Person.burialPlaceDescription=Burial place description
@@ -2115,10 +2115,10 @@ Person.livingStatus=Living Status
21152115
Person.hasGuardian=Person has a legal guardian (i.e. in case of minors or incapacitated persons)
21162116
Person.incapacitated=Incapacitated (i.e. person will have a legal guardian after 18)
21172117
Person.emancipated=Emancipated (i.e. person is under 18 and does not have a guardian by law)
2118-
Person.gestationalAgeCategory=Gestational age category
2119-
Person.birthWeightCategory=Birth weight category
2118+
Person.gestationalAgeCategory=Gestational age
2119+
Person.birthWeightCategory=Birth weight
21202120
Person.birthWeightValue=Birth weight value
2121-
Person.multipleBirth=Multiple birth
2121+
Person.multipleBirth=Multiple pregnancy
21222122
personContactDetailOwner=Owner
21232123
personContactDetailOwnerName=Owner name
21242124
personContactDetailThisPerson=This person

sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonEditForm.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ public class PersonEditForm extends AbstractEditForm<PersonDto> {
130130
fluidRowLocs(PersonDto.BIRTH_DATE_YYYY, PersonDto.BIRTH_DATE_MM, PersonDto.BIRTH_DATE_DD),
131131
fluidRowLocs(PersonDto.APPROXIMATE_AGE, PersonDto.APPROXIMATE_AGE_TYPE, PersonDto.APPROXIMATE_AGE_REFERENCE_DATE)
132132
) +
133-
fluidRowLocs(PersonDto.PLACE_OF_BIRTH_REGION, PersonDto.PLACE_OF_BIRTH_DISTRICT, PersonDto.PLACE_OF_BIRTH_COMMUNITY) +
134-
fluidRowLocs(PersonDto.PLACE_OF_BIRTH_FACILITY_TYPE, PersonDto.PLACE_OF_BIRTH_FACILITY, PersonDto.PLACE_OF_BIRTH_FACILITY_DETAILS) +
133+
135134
fluidRowLocs(PersonDto.SEX, PersonDto.PRESENT_CONDITION) +
136135
fluidRow(
137136
oneOfFourCol(PersonDto.DEATH_DATE),
@@ -159,9 +158,11 @@ public class PersonEditForm extends AbstractEditForm<PersonDto> {
159158
fluidRowLocs(PersonDto.HAS_COVID_APP, PersonDto.COVID_CODE_DELIVERED) +
160159

161160
loc(PERINATAL_DETAILS_HEADER) +
162-
divsCss(VSPACE_3,fluidRowLocs(PersonDto.GESTATIONAL_AGE_CATEGORY,PersonDto.GESTATION_AGE_AT_BIRTH) +
161+
divsCss(VSPACE_3,fluidRowLocs(PersonDto.GESTATIONAL_AGE_CATEGORY,"") +
163162
fluidRowLocs(PersonDto.BIRTH_WEIGHT_CATEGORY, PersonDto.BIRTH_WEIGHT) +
164163
fluidRowLocs(PersonDto.MULTIPLE_BIRTH,""))+
164+
fluidRowLocs(PersonDto.PLACE_OF_BIRTH_REGION, PersonDto.PLACE_OF_BIRTH_DISTRICT, PersonDto.PLACE_OF_BIRTH_COMMUNITY) +
165+
fluidRowLocs(PersonDto.PLACE_OF_BIRTH_FACILITY_TYPE, PersonDto.PLACE_OF_BIRTH_FACILITY, PersonDto.PLACE_OF_BIRTH_FACILITY_DETAILS) +
165166

166167
loc(OCCUPATION_HEADER) +
167168
divsCss(VSPACE_3,
@@ -378,6 +379,8 @@ protected void addFields() {
378379
TextField tfGestationAgeAtBirth = addField(PersonDto.GESTATION_AGE_AT_BIRTH, TextField.class);
379380
tfGestationAgeAtBirth
380381
.setConversionError(I18nProperties.getValidationError(Validations.onlyIntegerNumbersAllowed, tfGestationAgeAtBirth.getCaption()));
382+
// Gestation Age At Birth is not required to showing. Its not in the requirements
383+
tfGestationAgeAtBirth.setVisible(false);
381384
TextField tfBirthWeight = addField(PersonDto.BIRTH_WEIGHT, TextField.class);
382385
tfBirthWeight.setConversionError(I18nProperties.getValidationError(Validations.onlyIntegerNumbersAllowed, tfBirthWeight.getCaption()));
383386

0 commit comments

Comments
 (0)