Skip to content

Commit 8ca2433

Browse files
committed
📝 added todos for Vaccination handling
1 parent ec2fc97 commit 8ca2433

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/patch/BusinessDtoFacade.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ public class BusinessDtoFacade {
4949
private void init() {
5050
registerSaveOperations();
5151
registerFetchOperations();
52+
53+
// TODO: add fetch for "list elements":
54+
// TODO: probably start fetch from highest-level element and drill down to retrive.
55+
// Quite unsure if drill always work: Add exception: "missing parent entity".
56+
// - Exposure
57+
// - Activity as a case
58+
// for save: List elements must be added to the parent
59+
// TODO: issue with saving in order ?
5260
registerFetchByI18nOperations();
5361
}
5462

sormas-backend/src/main/java/de/symeda/sormas/backend/patch/DataPatcherImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public DataPatchResponse patch(CaseDataPatchRequest request) {
9393

9494
Disease disease = caseData.getDisease();
9595

96+
// TODO: modify to make more "agnostic": person is any other entity.
97+
// TODO: only case is different as it is the root.
9698
// make this generic for additional "root"-types
9799
Supplier<PersonDto> personSupplier = Suppliers.memoize(() -> getPersonDto(caseData));
98100

sormas-backend/src/main/java/de/symeda/sormas/backend/patch/alias/PathAliasHelper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import javax.enterprise.context.ApplicationScoped;
1313
import javax.validation.constraints.NotNull;
1414

15+
import de.symeda.sormas.api.activityascase.ActivityAsCaseDto;
1516
import de.symeda.sormas.api.epidata.EpiDataDto;
1617
import org.apache.commons.collections4.CollectionUtils;
1718
import org.slf4j.Logger;
@@ -83,6 +84,10 @@ public class PathAliasHelper {
8384
dictionary.put(SubcontinentDto.I18N_PREFIX, toFieldName(toFieldName(PersonDto.I18N_PREFIX, PersonDto.ADDRESS), LocationDto.SUB_CONTINENT));
8485
dictionary.put(ContinentDto.I18N_PREFIX, toFieldName(toFieldName(PersonDto.I18N_PREFIX, PersonDto.ADDRESS), LocationDto.CONTINENT));
8586
dictionary.put(UserDto.I18N_PREFIX, toFieldName(CaseDataDto.I18N_PREFIX, CaseDataDto.FOLLOW_UP_STATUS_CHANGE_USER));
87+
dictionary.put(EpiDataDto.I18N_PREFIX, toFieldName(CaseDataDto.I18N_PREFIX, CaseDataDto.EPI_DATA));
88+
// TODO: check if required
89+
// dictionary.put(ExposureDto.I18N_PREFIX, toFieldName(CaseDataDto.I18N_PREFIX, CaseDataDto.EPI_DATA));
90+
// dictionary.put(ActivityAsCaseDto.I18N_PREFIX, toFieldName(CaseDataDto.I18N_PREFIX, CaseDataDto.EPI_DATA));
8691

8792
return dictionary;
8893
}

0 commit comments

Comments
 (0)