Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case based form 23 #137

Open
wants to merge 25 commits into
base: gh-release-1.74.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cfb4b9a
Revert "- Added CaseSampleView, ContactSamplesView, EventSamplesView,…
douglasderrick Oct 17, 2023
931de96
Created the thier transmission classification and their properties
user-yormen Jan 5, 2021
f7f5d98
Created an enum value of transmission classification
user-yormen Jan 5, 2021
66a74e4
Addded the respective enum values to the enum property file
user-yormen Jan 5, 2021
0ac09b1
act.java
Flava177 Oct 19, 2023
f227ea0
Set their properties to be used in the application on each facade
user-yormen Jan 5, 2021
4203bc7
Added the transmission classification on the case and contact form
user-yormen Jan 5, 2021
0cb4d70
Added the position of the option group which hold the transmission cl…
user-yormen Jan 5, 2021
ded7759
Set their properties to be used in the application on each facade
Flava177 Oct 19, 2023
7965257
Set the transmission classification value on the case
user-yormen Jan 11, 2021
bfb76bd
Added the field for the transmission classification on the new case form
user-yormen Jan 11, 2021
8d56da7
Added the transmission classification to the content
user-yormen Jan 11, 2021
665b608
Created list variable to be used on the edit and new case being created
user-yormen Jan 11, 2021
85ff854
Added the transmission classification properties to be populated to t…
user-yormen Jan 11, 2021
108de58
Updated the database helper to alter the case and contact table for t…
user-yormen Mar 19, 2021
cd7ff34
Rename the conatct to case, since we in the case file
user-yormen Mar 19, 2021
210441b
Created the appropraite variable and it properties for the contact tr…
user-yormen Mar 19, 2021
32931a7
Set the transmission classification values on the contact properties
user-yormen Mar 19, 2021
ba34624
Added the contact items and properties to be bound and used from the XML
user-yormen Mar 19, 2021
4f34406
Removed the toString()
user-yormen Mar 19, 2021
3e129d0
Added the layout properties to the contact file, create, read and edit
user-yormen Mar 19, 2021
03ee8b7
cherrypicked the case_transmission_files and resolved conflicts
Flava177 Oct 23, 2023
b4a0143
case-based-form-implementation
Flava177 Nov 27, 2023
385d881
Updated sampleresults to sample menu
Flava177 Nov 28, 2023
5a05124
Second Phase
Flava177 Feb 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions sormas-api/src/main/java/de/symeda/sormas/api/Disease.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
import java.util.List;

import de.symeda.sormas.api.i18n.I18nProperties;
import de.symeda.sormas.api.sample.PathogenTestType;
import de.symeda.sormas.api.statistics.StatisticsGroupingKey;

public enum Disease
implements
StatisticsGroupingKey {

AFP(true, true, true, false, 0, true, false, false),
AFP(true, true, true, false, 60, true, false, false),
CHOLERA(true, true, true, true, 5, true, false, false),
CONGENITAL_RUBELLA(true, true, true, true, 21, true, false, false),
CSM(true, true, true, false, 10, true, false, false),
Expand All @@ -40,7 +41,7 @@ public enum Disease
NEW_INFLUENZA(true, true, true, true, 17, true, false, false),
PLAGUE(true, true, true, true, 7, true, false, false),
POLIO(true, true, true, false, 0, true, false, false),
UNSPECIFIED_VHF(true, true, true, true, 21, true, false, false),
//AHF(true, true, true, true, 21, true, false, false),
WEST_NILE_FEVER(true, false, true, false, 0, true, false, false),
YELLOW_FEVER(true, true, true, false, 6, true, false, false),
RABIES(true, true, true, true, 6, true, false, false),
Expand Down Expand Up @@ -82,11 +83,14 @@ public enum Disease
M_PNEUMONIAE(true, false, true, false, 0, true, false, false),
C_PNEUMONIAE(true, false, true, false, 0, true, false, false),
ARI(true, false, false, false, 0, true, false, false),
CHIKUNGUNYA(true, false, false, false, 0, true, false, false),
CHIKUNGUNYA(true, true, true, false, 0, true, false, false),
POST_IMMUNIZATION_ADVERSE_EVENTS_MILD(true, false, false, false, 0, true, false, false),
POST_IMMUNIZATION_ADVERSE_EVENTS_SEVERE(true, false, false, false, 0, true, false, false),
FHA(true, false, false, false, 0, true, false, false),
AHF(true, true, true, true, 21, true, false, false),
OTHER(true, true, true, true, 21, false, false, false),
ZIKA(true, true, true, false, 6, true, false, false),
MARBURG(true, true, true, false, 0, true, false, false),
UNDEFINED(true, true, true, true, 0, false, false, false);

private final boolean defaultActive;
Expand Down Expand Up @@ -163,7 +167,7 @@ public int getDefaultFollowUpDuration() {
}

public boolean isDiseaseGroup() {
return this == UNSPECIFIED_VHF;
return this == AHF;
}

public boolean isVariantAllowed() {
Expand Down Expand Up @@ -193,4 +197,14 @@ public int keyCompareTo(StatisticsGroupingKey o) {
}

public static List<Disease> DISEASE_LIST = Arrays.asList(Disease.values());
public static final List<Disease> AHF_DISEASES = Arrays.asList(
EVD,
MARBURG,
LASSA,
DENGUE,
CHIKUNGUNYA,
ZIKA,
YELLOW_FEVER
);

}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
import de.symeda.sormas.api.sample.PathogenTestFacade;
import de.symeda.sormas.api.sample.SampleFacade;
import de.symeda.sormas.api.share.ExternalShareInfoFacade;
import de.symeda.sormas.api.sixtyday.SixtyDayFacade;
import de.symeda.sormas.api.sormastosormas.SormasToSormasEncryptionFacade;
import de.symeda.sormas.api.sormastosormas.SormasToSormasFacade;
import de.symeda.sormas.api.sormastosormas.caze.SormasToSormasCaseFacade;
Expand Down Expand Up @@ -248,6 +249,10 @@ public static HospitalizationFacade getHospitalizationFacade() {
return get().lookupEjbRemote(HospitalizationFacade.class);
}

public static SixtyDayFacade getSixtyDayFacade() {
return get().lookupEjbRemote(SixtyDayFacade.class);
}

public static EpiDataFacade getEpiDataFacade() {
return get().lookupEjbRemote(EpiDataFacade.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public void setUuid(String uuid) {
this.uuid = uuid;
}

public boolean getCaption(String caption) {
this.caption = caption;
return Boolean.parseBoolean(caption);
}

public String getCaption() {
return caption;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import de.symeda.sormas.api.i18n.Validations;
import de.symeda.sormas.api.infrastructure.community.CommunityReferenceDto;
import de.symeda.sormas.api.infrastructure.district.DistrictReferenceDto;
import de.symeda.sormas.api.infrastructure.facility.DhimsFacility;
import de.symeda.sormas.api.infrastructure.facility.FacilityReferenceDto;
import de.symeda.sormas.api.infrastructure.facility.FacilityType;
import de.symeda.sormas.api.infrastructure.region.RegionReferenceDto;
Expand Down Expand Up @@ -57,6 +58,7 @@ public class CaseBulkEditData extends EntityDto {
public static final String HEALTH_FACILITY = "healthFacility";
public static final String HEALTH_FACILITY_DETAILS = "healthFacilityDetails";
public static final String FACILITY_TYPE = "facilityType";
public static final String DHIMS_FACILITY_TYPE = "dhimsFacilityType";
public static final String DONT_SHARE_WITH_REPORTING_TOOL = "dontShareWithReportingTool";

private Disease disease;
Expand All @@ -74,6 +76,7 @@ public class CaseBulkEditData extends EntityDto {
private DistrictReferenceDto district;
private CommunityReferenceDto community;
private FacilityType facilityType;
private DhimsFacility dhimsFacilityType;
private FacilityReferenceDto healthFacility;
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
private String healthFacilityDetails;
Expand Down Expand Up @@ -191,6 +194,14 @@ public void setFacilityType(FacilityType facilityType) {
this.facilityType = facilityType;
}

public DhimsFacility getDhimsFacilityType() {
return dhimsFacilityType;
}

public void setDhimsFacilityType(DhimsFacility dhimsFacilityType) {
this.dhimsFacilityType = dhimsFacilityType;
}

public FacilityReferenceDto getHealthFacility() {
return healthFacility;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
*******************************************************************************/
package de.symeda.sormas.api.caze;

import java.util.Collections;
import java.util.EnumSet;
import java.util.Set;
import java.util.*;

import de.symeda.sormas.api.i18n.I18nProperties;
import de.symeda.sormas.api.statistics.StatisticsGroupingKey;
import de.symeda.sormas.api.utils.LatexCulture;

public enum CaseClassification
implements
Expand Down Expand Up @@ -81,4 +80,7 @@ public static Set<CaseClassification> getConfirmedClassifications() {
return Collections.unmodifiableSet(
EnumSet.of(CaseClassification.CONFIRMED, CaseClassification.CONFIRMED_NO_SYMPTOMS, CaseClassification.CONFIRMED_UNKNOWN_SYMPTOMS));
}

public static final List<CaseClassification> CASE_CLASSIFY = Arrays.asList(
CONFIRMED, PROBABLE, SUSPECT);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import de.symeda.sormas.api.disease.DiseaseVariant;
import de.symeda.sormas.api.infrastructure.community.CommunityReferenceDto;
import de.symeda.sormas.api.infrastructure.district.DistrictReferenceDto;
import de.symeda.sormas.api.infrastructure.facility.DhimsFacility;
import de.symeda.sormas.api.infrastructure.facility.FacilityReferenceDto;
import de.symeda.sormas.api.infrastructure.facility.FacilityType;
import de.symeda.sormas.api.infrastructure.facility.FacilityTypeGroup;
Expand All @@ -37,6 +38,8 @@
import de.symeda.sormas.api.share.ExternalShareCriteria;
import de.symeda.sormas.api.user.UserReferenceDto;
import de.symeda.sormas.api.user.UserRoleReferenceDto;
import de.symeda.sormas.api.utils.AFPFacilityOptions;
import de.symeda.sormas.api.utils.CardOrHistory;
import de.symeda.sormas.api.utils.DateFilterOption;
import de.symeda.sormas.api.utils.IgnoreForUrl;
import de.symeda.sormas.api.utils.criteria.CriteriaDateType;
Expand Down Expand Up @@ -74,6 +77,8 @@ public class CaseCriteria extends CriteriaWithDateType implements ExternalShareC
public static final String REINFECTION_STATUS = "reinfectionStatus";
public static final String FACILITY_TYPE_GROUP = "facilityTypeGroup";
public static final String FACILITY_TYPE = "facilityType";
public static final String DHIMS_FACILITY_TYPE = "dhimsFacilityType";
public static final String AFP_FACILITY_OPTIONS = "afpFacilityOptions";
public static final String INCLUDE_CASES_FROM_OTHER_JURISDICTIONS = "includeCasesFromOtherJurisdictions";
public static final String ONLY_CONTACTS_FROM_OTHER_INSTANCES = "onlyContactsFromOtherInstances";
public static final String ONLY_CASES_WITH_REINFECTION = "onlyCasesWithReinfection";
Expand Down Expand Up @@ -134,10 +139,14 @@ public class CaseCriteria extends CriteriaWithDateType implements ExternalShareC
private Integer followUpVisitsInterval;
private SymptomJournalStatus symptomJournalStatus;
private VaccinationStatus vaccinationStatus;
private CardOrHistory vaccinationType;
private Date vaccinationDate;
private ReinfectionStatus reinfectionStatus;
private Date reportDateTo;
private FacilityTypeGroup facilityTypeGroup;
private FacilityType facilityType;
private DhimsFacility dhimsFacilityType;
private AFPFacilityOptions afpFacilityOptions;
private Boolean includeCasesFromOtherJurisdictions = Boolean.FALSE;
private Boolean onlyContactsFromOtherInstances;
private Boolean onlyCasesWithReinfection;
Expand Down Expand Up @@ -621,10 +630,18 @@ public void setSymptomJournalStatus(SymptomJournalStatus symptomJournalStatus) {
public VaccinationStatus getVaccinationStatus() {
return vaccinationStatus;
}
public CardOrHistory getVaccinationType() {
return vaccinationType;
}
public Date getVaccinationDate() {
return vaccinationDate;
}

public void setVaccinationStatus(VaccinationStatus vaccinationStatus) {
this.vaccinationStatus = vaccinationStatus;
}
public void setVaccinationType(CardOrHistory vaccinationType) {this.vaccinationType = vaccinationType;}
public void setVaccinationDate(Date vaccinationDate) {this.vaccinationDate = vaccinationDate;}

public ReinfectionStatus getReinfectionStatus() {
return reinfectionStatus;
Expand Down Expand Up @@ -658,6 +675,20 @@ public void setFacilityType(FacilityType type) {
this.facilityType = type;
}

public DhimsFacility getDhimsFacilityType() {
return dhimsFacilityType;
}

public void setDhimsFacilityType(DhimsFacility dhimsFacilityType) {
this.dhimsFacilityType = dhimsFacilityType;
}

public AFPFacilityOptions getAfpFacilityOptions() {
return afpFacilityOptions;
}

public void setAfpFacilityOptions(AFPFacilityOptions afpFacilityOptions) {this.afpFacilityOptions = afpFacilityOptions;}

public Boolean getIncludeCasesFromOtherJurisdictions() {
return includeCasesFromOtherJurisdictions;
}
Expand Down
Loading
Loading