Search in sources :

Example 16 with VaccinationDto

use of de.symeda.sormas.api.vaccination.VaccinationDto in project SORMAS-Project by hzi-braunschweig.

the class VaccinationFacadeEjb method save.

public VaccinationDto save(@Valid VaccinationDto dto) {
    Vaccination existingVaccination = dto.getUuid() != null ? vaccinationService.getByUuid(dto.getUuid()) : null;
    VaccinationDto existingDto = toDto(existingVaccination);
    Date oldVaccinationDate = existingVaccination != null ? existingVaccination.getVaccinationDate() : null;
    Pseudonymizer pseudonymizer = Pseudonymizer.getDefault(userService::hasRight);
    restorePseudonymizedDto(dto, existingDto, existingVaccination, pseudonymizer);
    validate(dto, false);
    existingVaccination = fillOrBuildEntity(dto, existingVaccination, true);
    vaccinationService.ensurePersisted(existingVaccination);
    updateVaccinationStatuses(existingVaccination.getVaccinationDate(), oldVaccinationDate, existingVaccination.getImmunization().getPerson().getId(), existingVaccination.getImmunization().getDisease());
    return convertToDto(existingVaccination, pseudonymizer);
}
Also used : Pseudonymizer(de.symeda.sormas.backend.util.Pseudonymizer) VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto) Date(java.util.Date)

Example 17 with VaccinationDto

use of de.symeda.sormas.api.vaccination.VaccinationDto in project SORMAS-Project by hzi-braunschweig.

the class VaccinationFacadeEjb method toDto.

public VaccinationDto toDto(Vaccination entity) {
    if (entity == null) {
        return null;
    }
    VaccinationDto dto = new VaccinationDto();
    DtoHelper.fillDto(dto, entity);
    dto.setImmunization(ImmunizationFacadeEjb.toReferenceDto(entity.getImmunization()));
    dto.setHealthConditions(healthConditionsMapper.toDto(entity.getHealthConditions()));
    dto.setReportDate(entity.getReportDate());
    dto.setReportingUser(UserFacadeEjb.toReferenceDto(entity.getReportingUser()));
    dto.setVaccinationDate(entity.getVaccinationDate());
    dto.setVaccineName(entity.getVaccineName());
    dto.setOtherVaccineName(entity.getOtherVaccineName());
    dto.setVaccineManufacturer(entity.getVaccineManufacturer());
    dto.setOtherVaccineManufacturer(entity.getOtherVaccineManufacturer());
    dto.setVaccineType(entity.getVaccineType());
    dto.setVaccineDose(entity.getVaccineDose());
    dto.setVaccineInn(entity.getVaccineInn());
    dto.setVaccineBatchNumber(entity.getVaccineBatchNumber());
    dto.setVaccineUniiCode(entity.getVaccineUniiCode());
    dto.setVaccineAtcCode(entity.getVaccineAtcCode());
    dto.setVaccinationInfoSource(entity.getVaccinationInfoSource());
    dto.setPregnant(entity.getPregnant());
    dto.setTrimester(entity.getTrimester());
    return dto;
}
Also used : VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto)

Example 18 with VaccinationDto

use of de.symeda.sormas.api.vaccination.VaccinationDto in project SORMAS-Project by hzi-braunschweig.

the class ContactFacadeEjbTest method testGetExportList.

@Test
public void testGetExportList() {
    TestDataCreator.RDCF rdcf = creator.createRDCF("Region", "District", "Community", "Facility");
    UserDto user = useSurveillanceOfficerLogin(rdcf);
    PersonDto cazePerson = creator.createPerson("Case", "Person");
    CaseDataDto caze = creator.createCase(user.toReference(), cazePerson.toReference(), Disease.EVD, CaseClassification.PROBABLE, InvestigationStatus.PENDING, new Date(), rdcf);
    ContactDto contact = creator.createContact(user.toReference(), user.toReference(), creator.createPerson("Contact", "Person").toReference(), caze, new Date(), new Date(), null, rdcf);
    PersonDto contactPerson = getPersonFacade().getPersonByUuid(contact.getPerson().getUuid());
    VisitDto visit = creator.createVisit(caze.getDisease(), contactPerson.toReference(), new Date(), VisitStatus.COOPERATIVE, VisitOrigin.USER);
    EpiDataDto epiData = contact.getEpiData();
    epiData.setExposureDetailsKnown(YesNoUnknown.YES);
    List<ExposureDto> travels = new ArrayList<>();
    ExposureDto exposure = ExposureDto.build(ExposureType.TRAVEL);
    exposure.getLocation().setDetails("Mallorca");
    exposure.setStartDate(DateHelper.subtractDays(new Date(), 15));
    exposure.setEndDate(DateHelper.subtractDays(new Date(), 7));
    caze.getEpiData().getExposures().add(exposure);
    travels.add(exposure);
    epiData.setExposures(travels);
    contact.setEpiData(epiData);
    getContactFacade().save(contact);
    contactPerson.getAddress().setRegion(new RegionReferenceDto(rdcf.region.getUuid(), null, null));
    contactPerson.getAddress().setDistrict(new DistrictReferenceDto(rdcf.district.getUuid(), null, null));
    contactPerson.getAddress().setCity("City");
    contactPerson.getAddress().setStreet("Test street");
    contactPerson.getAddress().setHouseNumber("Test number");
    contactPerson.getAddress().setAdditionalInformation("Test information");
    contactPerson.getAddress().setPostalCode("1234");
    getPersonFacade().savePerson(contactPerson);
    visit.getSymptoms().setAbdominalPain(SymptomState.YES);
    getVisitFacade().saveVisit(visit);
    ImmunizationDto immunization = creator.createImmunization(contact.getDisease(), contact.getPerson(), contact.getReportingUser(), ImmunizationStatus.ACQUIRED, MeansOfImmunization.VACCINATION, ImmunizationManagementStatus.COMPLETED, rdcf, DateHelper.subtractDays(new Date(), 10), DateHelper.subtractDays(new Date(), 5), DateHelper.subtractDays(new Date(), 1), null);
    creator.createImmunization(contact.getDisease(), contact.getPerson(), contact.getReportingUser(), ImmunizationStatus.ACQUIRED, MeansOfImmunization.VACCINATION, ImmunizationManagementStatus.COMPLETED, rdcf, DateHelper.subtractDays(new Date(), 8), DateHelper.subtractDays(new Date(), 7), null, null);
    VaccinationDto firstVaccination = creator.createVaccination(contact.getReportingUser(), immunization.toReference(), HealthConditionsDto.build(), DateHelper.subtractDays(new Date(), 7), Vaccine.OXFORD_ASTRA_ZENECA, VaccineManufacturer.ASTRA_ZENECA);
    creator.createVaccination(contact.getReportingUser(), immunization.toReference(), HealthConditionsDto.build(), DateHelper.subtractDays(new Date(), 4), Vaccine.MRNA_1273, VaccineManufacturer.MODERNA);
    VaccinationDto thirdVaccination = creator.createVaccination(contact.getReportingUser(), immunization.toReference(), HealthConditionsDto.build(), new Date(), Vaccine.COMIRNATY, VaccineManufacturer.BIONTECH_PFIZER);
    List<ContactExportDto> results;
    results = getContactFacade().getExportList(null, Collections.emptySet(), 0, 100, null, Language.EN);
    // Database should contain one contact, associated visit and task
    assertEquals(1, results.size());
    // Make sure that everything that is added retrospectively (address, last cooperative visit date and symptoms) is present
    ContactExportDto exportDto = results.get(0);
    assertEquals(rdcf.region.getCaption(), exportDto.getAddressRegion());
    assertEquals(rdcf.district.getCaption(), exportDto.getAddressDistrict());
    assertEquals("City", exportDto.getCity());
    assertEquals("Test street", exportDto.getStreet());
    assertEquals("Test number", exportDto.getHouseNumber());
    assertEquals("Test information", exportDto.getAdditionalInformation());
    assertEquals("1234", exportDto.getPostalCode());
    assertEquals(VaccinationStatus.VACCINATED, exportDto.getVaccinationStatus());
    assertEquals(thirdVaccination.getVaccineName(), exportDto.getVaccineName());
    assertEquals(firstVaccination.getVaccinationDate(), exportDto.getFirstVaccinationDate());
    assertEquals(thirdVaccination.getVaccinationDate(), exportDto.getLastVaccinationDate());
    assertNotNull(exportDto.getLastCooperativeVisitDate());
    assertTrue(StringUtils.isNotEmpty(exportDto.getLastCooperativeVisitSymptoms()));
    assertEquals(YesNoUnknown.YES, exportDto.getLastCooperativeVisitSymptomatic());
    assertNotNull(exportDto.getEpiDataId());
    assertTrue(exportDto.isTraveled());
    assertEquals(EpiDataHelper.buildDetailedTravelString(exposure.getLocation().toString(), exposure.getDescription(), exposure.getStartDate(), exposure.getEndDate(), Language.EN), exportDto.getTravelHistory());
    assertThat(exportDto.getEventCount(), equalTo(0L));
    // one Contact with 2 Events
    UserReferenceDto reportingUser = new UserReferenceDto(user.getUuid());
    EventDto event1 = creator.createEvent(reportingUser, DateHelper.subtractDays(new Date(), 1));
    EventDto event2 = creator.createEvent(reportingUser, new Date());
    creator.createEventParticipant(new EventReferenceDto(event2.getUuid()), contactPerson, reportingUser);
    creator.createEventParticipant(new EventReferenceDto(event1.getUuid()), contactPerson, reportingUser);
    results = getContactFacade().getExportList(null, Collections.emptySet(), 0, 100, null, Language.EN);
    assertThat(results, hasSize(1));
    {
        ContactExportDto dto = results.get(0);
        assertThat(dto.getLatestEventId(), equalTo(event2.getUuid()));
        assertThat(dto.getLatestEventTitle(), equalTo(event2.getEventTitle()));
        assertThat(dto.getEventCount(), equalTo(2L));
    }
}
Also used : ImmunizationDto(de.symeda.sormas.api.immunization.ImmunizationDto) EpiDataDto(de.symeda.sormas.api.epidata.EpiDataDto) CaseDataDto(de.symeda.sormas.api.caze.CaseDataDto) PersonDto(de.symeda.sormas.api.person.PersonDto) UserDto(de.symeda.sormas.api.user.UserDto) ArrayList(java.util.ArrayList) EventDto(de.symeda.sormas.api.event.EventDto) VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto) ContactExportDto(de.symeda.sormas.api.contact.ContactExportDto) DistrictReferenceDto(de.symeda.sormas.api.infrastructure.district.DistrictReferenceDto) Date(java.util.Date) LocalDate(java.time.LocalDate) UserReferenceDto(de.symeda.sormas.api.user.UserReferenceDto) RegionReferenceDto(de.symeda.sormas.api.infrastructure.region.RegionReferenceDto) ExposureDto(de.symeda.sormas.api.exposure.ExposureDto) EventReferenceDto(de.symeda.sormas.api.event.EventReferenceDto) RDCF(de.symeda.sormas.backend.TestDataCreator.RDCF) SimilarContactDto(de.symeda.sormas.api.contact.SimilarContactDto) MapContactDto(de.symeda.sormas.api.contact.MapContactDto) ContactDto(de.symeda.sormas.api.contact.ContactDto) TestDataCreator(de.symeda.sormas.backend.TestDataCreator) VisitDto(de.symeda.sormas.api.visit.VisitDto) AbstractBeanTest(de.symeda.sormas.backend.AbstractBeanTest) Test(org.junit.Test)

Example 19 with VaccinationDto

use of de.symeda.sormas.api.vaccination.VaccinationDto in project SORMAS-Project by hzi-braunschweig.

the class CaseImportFacadeEjb method buildEntities.

private ImportLineResultDto<CaseImportEntities> buildEntities(String[] values, String[] entityClasses, String[][] entityPropertyPaths, boolean ignoreEmptyEntries, CaseImportEntities entities) {
    final UserReferenceDto currentUserRef = userService.getCurrentUser().toReference();
    final List<SampleDto> samples = entities.getSamples();
    final List<PathogenTestDto> pathogenTests = entities.getPathogenTests();
    final List<VaccinationDto> vaccinations = entities.getVaccinations();
    ImportRelatedObjectsMapper.Builder relatedObjectsMapperBuilder = new ImportRelatedObjectsMapper.Builder().addMapper(SampleDto.class, samples, () -> SampleDto.build(currentUserRef, new CaseReferenceDto(entities.getCaze().getUuid())), this::insertColumnEntryIntoRelatedObject).addMapper(PathogenTestDto.class, pathogenTests, () -> {
        if (samples.isEmpty()) {
            return null;
        }
        SampleDto referenceSample = samples.get(samples.size() - 1);
        return PathogenTestDto.build(new SampleReferenceDto(referenceSample.getUuid()), currentUserRef);
    }, this::insertColumnEntryIntoRelatedObject);
    if (featureConfigurationFacade.isPropertyValueTrue(FeatureType.IMMUNIZATION_MANAGEMENT, FeatureTypeProperty.REDUCED)) {
        relatedObjectsMapperBuilder.addMapper(VaccinationDto.class, vaccinations, () -> VaccinationDto.build(currentUserRef), this::insertColumnEntryIntoRelatedObject);
    }
    ImportRelatedObjectsMapper relatedMapper = relatedObjectsMapperBuilder.build();
    final ImportLineResultDto<CaseImportEntities> result = insertRowIntoData(values, entityClasses, entityPropertyPaths, ignoreEmptyEntries, (cellData) -> {
        try {
            CaseDataDto caze = entities.getCaze();
            if (!relatedMapper.map(cellData)) {
                if (StringUtils.isNotEmpty(cellData.getValue())) {
                    // If the cell entry is not empty, try to insert it into the current case or its person
                    insertColumnEntryIntoData(caze, entities.getPerson(), cellData.getValue(), cellData.getEntityPropertyPath());
                }
            }
        } catch (ImportErrorException | InvalidColumnException e) {
            return e;
        }
        return null;
    });
    // Sanitize non-HOME address
    PersonHelper.sanitizeNonHomeAddress(entities.getPerson());
    return result;
}
Also used : SampleReferenceDto(de.symeda.sormas.api.sample.SampleReferenceDto) CaseImportEntities(de.symeda.sormas.api.caze.caseimport.CaseImportEntities) ImportErrorException(de.symeda.sormas.api.importexport.ImportErrorException) CaseDataDto(de.symeda.sormas.api.caze.CaseDataDto) VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto) PathogenTestDto(de.symeda.sormas.api.sample.PathogenTestDto) UserReferenceDto(de.symeda.sormas.api.user.UserReferenceDto) InvalidColumnException(de.symeda.sormas.api.importexport.InvalidColumnException) SampleDto(de.symeda.sormas.api.sample.SampleDto) ImportRelatedObjectsMapper(de.symeda.sormas.api.importexport.ImportRelatedObjectsMapper) CaseReferenceDto(de.symeda.sormas.api.caze.CaseReferenceDto)

Example 20 with VaccinationDto

use of de.symeda.sormas.api.vaccination.VaccinationDto in project SORMAS-Project by hzi-braunschweig.

the class ImmunizationFacadeEjb method save.

public ImmunizationDto save(@Valid @NotNull ImmunizationDto dto, boolean checkChangeDate, boolean internal) {
    Immunization existingImmunization = service.getByUuid(dto.getUuid());
    if (internal && existingImmunization != null && !service.isImmunizationEditAllowed(existingImmunization)) {
        throw new AccessDeniedException(I18nProperties.getString(Strings.errorImmunizationNotEditable));
    }
    ImmunizationDto existingDto = toDto(existingImmunization);
    Pseudonymizer pseudonymizer = Pseudonymizer.getDefault(userService::hasRight);
    restorePseudonymizedDto(dto, existingDto, existingImmunization, pseudonymizer);
    validate(dto);
    Immunization immunization = fillOrBuildEntity(dto, existingImmunization, checkChangeDate);
    service.updateImmunizationStatusBasedOnVaccinations(immunization);
    immunization.getVaccinations().forEach(vaccination -> {
        VaccinationDto existingVaccination = null;
        if (existingDto != null) {
            existingVaccination = existingDto.getVaccinations().stream().filter(vaccinationDto -> vaccination.getUuid().equals(vaccinationDto.getUuid())).findAny().orElse(null);
        }
        Date oldVaccinationDate = existingVaccination != null ? existingVaccination.getVaccinationDate() : null;
        vaccinationFacade.updateVaccinationStatuses(vaccination.getVaccinationDate(), oldVaccinationDate, immunization.getPersonId(), immunization.getDisease());
    });
    service.ensurePersisted(immunization);
    if (existingImmunization != null && internal && sormasToSormasFacade.isFeatureConfigured()) {
        syncSharesAsync(existingImmunization);
    }
    return convertToDto(immunization, pseudonymizer);
}
Also used : ImmunizationManagementStatus(de.symeda.sormas.api.immunization.ImmunizationManagementStatus) DtoHelper(de.symeda.sormas.backend.util.DtoHelper) Date(java.util.Date) I18nProperties(de.symeda.sormas.api.i18n.I18nProperties) PathogenTestFacadeEjb(de.symeda.sormas.backend.sample.PathogenTestFacadeEjb) LoggerFactory(org.slf4j.LoggerFactory) ImmunizationFacade(de.symeda.sormas.api.immunization.ImmunizationFacade) AbstractCoreAdoService(de.symeda.sormas.backend.common.AbstractCoreAdoService) Immunization(de.symeda.sormas.backend.immunization.entity.Immunization) CommunityFacadeEjb(de.symeda.sormas.backend.infrastructure.community.CommunityFacadeEjb) MeansOfImmunization(de.symeda.sormas.api.immunization.MeansOfImmunization) AccessDeniedException(de.symeda.sormas.api.utils.AccessDeniedException) DistrictService(de.symeda.sormas.backend.infrastructure.district.DistrictService) PersonDto(de.symeda.sormas.api.person.PersonDto) CountryService(de.symeda.sormas.backend.infrastructure.country.CountryService) Valid(javax.validation.Valid) EntityDto(de.symeda.sormas.api.EntityDto) AbstractCoreFacadeEjb(de.symeda.sormas.backend.common.AbstractCoreFacadeEjb) CaseOutcome(de.symeda.sormas.api.caze.CaseOutcome) Page(de.symeda.sormas.api.common.Page) ImmunizationReferenceDto(de.symeda.sormas.api.immunization.ImmunizationReferenceDto) SormasToSormasCaseFacadeEjb(de.symeda.sormas.backend.sormastosormas.entities.caze.SormasToSormasCaseFacadeEjb) UserFacadeEjb(de.symeda.sormas.backend.user.UserFacadeEjb) ImmunizationListEntryDto(de.symeda.sormas.api.immunization.ImmunizationListEntryDto) Vaccination(de.symeda.sormas.backend.vaccination.Vaccination) ImmunizationListCriteria(de.symeda.sormas.api.immunization.ImmunizationListCriteria) SormasToSormasOriginInfoFacadeEjb(de.symeda.sormas.backend.sormastosormas.origin.SormasToSormasOriginInfoFacadeEjb) ManagedScheduledExecutorService(javax.enterprise.concurrent.ManagedScheduledExecutorService) Stateless(javax.ejb.Stateless) CriteriaQuery(javax.persistence.criteria.CriteriaQuery) FacilityService(de.symeda.sormas.backend.infrastructure.facility.FacilityService) CaseService(de.symeda.sormas.backend.caze.CaseService) CountryFacadeEjb(de.symeda.sormas.backend.infrastructure.country.CountryFacadeEjb) CaseCriteria(de.symeda.sormas.api.caze.CaseCriteria) CommunityService(de.symeda.sormas.backend.infrastructure.community.CommunityService) Collection(java.util.Collection) ShareRequestDataType(de.symeda.sormas.api.sormastosormas.sharerequest.ShareRequestDataType) Resource(javax.annotation.Resource) CaseDataDto(de.symeda.sormas.api.caze.CaseDataDto) NotNull(javax.validation.constraints.NotNull) Pseudonymizer(de.symeda.sormas.backend.util.Pseudonymizer) Collectors(java.util.stream.Collectors) Objects(java.util.Objects) ShareTreeCriteria(de.symeda.sormas.api.sormastosormas.ShareTreeCriteria) List(java.util.List) ImmunizationCriteria(de.symeda.sormas.api.immunization.ImmunizationCriteria) UserService(de.symeda.sormas.backend.user.UserService) DistrictFacadeEjb(de.symeda.sormas.backend.infrastructure.district.DistrictFacadeEjb) User(de.symeda.sormas.backend.user.User) PathogenTestResultType(de.symeda.sormas.api.sample.PathogenTestResultType) SormasToSormasContactFacadeEjb(de.symeda.sormas.backend.sormastosormas.entities.contact.SormasToSormasContactFacadeEjb) ImmunizationDto(de.symeda.sormas.api.immunization.ImmunizationDto) ShareRequestInfo(de.symeda.sormas.backend.sormastosormas.share.shareinfo.ShareRequestInfo) ValidationRuntimeException(de.symeda.sormas.api.utils.ValidationRuntimeException) PersonReferenceDto(de.symeda.sormas.api.person.PersonReferenceDto) DateHelper(de.symeda.sormas.api.utils.DateHelper) FacilityFacadeEjb(de.symeda.sormas.backend.infrastructure.facility.FacilityFacadeEjb) CaseFacadeEjb(de.symeda.sormas.backend.caze.CaseFacadeEjb) CoreEntityType(de.symeda.sormas.backend.deletionconfiguration.CoreEntityType) ArrayList(java.util.ArrayList) CaseReferenceDto(de.symeda.sormas.api.caze.CaseReferenceDto) Inject(javax.inject.Inject) LocalBean(javax.ejb.LocalBean) SampleFacadeEjb(de.symeda.sormas.backend.sample.SampleFacadeEjb) VaccinationFacadeEjbLocal(de.symeda.sormas.backend.vaccination.VaccinationFacadeEjb.VaccinationFacadeEjbLocal) PathogenTestDto(de.symeda.sormas.api.sample.PathogenTestDto) EJB(javax.ejb.EJB) Root(javax.persistence.criteria.Root) Logger(org.slf4j.Logger) Validations(de.symeda.sormas.api.i18n.Validations) DataHelper(de.symeda.sormas.api.utils.DataHelper) PersonFacadeEjb(de.symeda.sormas.backend.person.PersonFacadeEjb) SormasToSormasFacadeEjb(de.symeda.sormas.backend.sormastosormas.SormasToSormasFacadeEjb) ImmunizationIndexDto(de.symeda.sormas.api.immunization.ImmunizationIndexDto) PersonService(de.symeda.sormas.backend.person.PersonService) SortProperty(de.symeda.sormas.api.utils.SortProperty) RegionFacadeEjb(de.symeda.sormas.backend.infrastructure.region.RegionFacadeEjb) RegionService(de.symeda.sormas.backend.infrastructure.region.RegionService) Captions(de.symeda.sormas.api.i18n.Captions) TimeUnit(java.util.concurrent.TimeUnit) UserRight(de.symeda.sormas.api.user.UserRight) VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto) ImmunizationSimilarityCriteria(de.symeda.sormas.api.immunization.ImmunizationSimilarityCriteria) ImmunizationStatus(de.symeda.sormas.api.immunization.ImmunizationStatus) ShareInfoHelper(de.symeda.sormas.backend.sormastosormas.share.shareinfo.ShareInfoHelper) Comparator(java.util.Comparator) Strings(de.symeda.sormas.api.i18n.Strings) Collections(java.util.Collections) SormasToSormasEventFacadeEjb(de.symeda.sormas.backend.sormastosormas.entities.event.SormasToSormasEventFacadeEjb) ImmunizationDto(de.symeda.sormas.api.immunization.ImmunizationDto) Immunization(de.symeda.sormas.backend.immunization.entity.Immunization) MeansOfImmunization(de.symeda.sormas.api.immunization.MeansOfImmunization) AccessDeniedException(de.symeda.sormas.api.utils.AccessDeniedException) Pseudonymizer(de.symeda.sormas.backend.util.Pseudonymizer) VaccinationDto(de.symeda.sormas.api.vaccination.VaccinationDto) Date(java.util.Date)

Aggregations

VaccinationDto (de.symeda.sormas.api.vaccination.VaccinationDto)31 Date (java.util.Date)13 PersonDto (de.symeda.sormas.api.person.PersonDto)12 Test (org.junit.Test)11 ImmunizationDto (de.symeda.sormas.api.immunization.ImmunizationDto)10 CaseDataDto (de.symeda.sormas.api.caze.CaseDataDto)9 ArrayList (java.util.ArrayList)9 UserDto (de.symeda.sormas.api.user.UserDto)8 AbstractBeanTest (de.symeda.sormas.backend.AbstractBeanTest)8 Disease (de.symeda.sormas.api.Disease)5 ContactDto (de.symeda.sormas.api.contact.ContactDto)5 EventDto (de.symeda.sormas.api.event.EventDto)4 EventParticipantDto (de.symeda.sormas.api.event.EventParticipantDto)4 PathogenTestDto (de.symeda.sormas.api.sample.PathogenTestDto)4 ValidationRuntimeException (de.symeda.sormas.api.utils.ValidationRuntimeException)4 LocalDate (java.time.LocalDate)4 EntityDto (de.symeda.sormas.api.EntityDto)3 Captions (de.symeda.sormas.api.i18n.Captions)3 I18nProperties (de.symeda.sormas.api.i18n.I18nProperties)3 ImmunizationReferenceDto (de.symeda.sormas.api.immunization.ImmunizationReferenceDto)3