Skip to content

Commit

Permalink
Merge pull request #2810 from hzi-braunschweig/2653_export-cases-wit-…
Browse files Browse the repository at this point in the history
…followups

#2653 added data of follow-up visits to case export
  • Loading branch information
leventegal-she authored Sep 4, 2020
2 parents 9b5abba + 436a884 commit 30c2135
Show file tree
Hide file tree
Showing 11 changed files with 498 additions and 500 deletions.
116 changes: 58 additions & 58 deletions sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseExportDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ public class CaseExportDto implements Serializable {
public static final String NUMBER_OF_CLINICAL_VISITS = "numberOfClinicalVisits";
public static final String SAMPLE_INFORMATION = "sampleInformation";
public static final String QUARANTINE_INFORMATION = "quarantineInformation";
// public static final String NUMBER_OF_VISITS = "numberOfVisits";
// public static final String LAST_COOPERATIVE_VISIT_SYMPTOMATIC = "lastCooperativeVisitSymptomatic";
// public static final String LAST_COOPERATIVE_VISIT_DATE = "lastCooperativeVisitDate";
// public static final String LAST_COOPERATIVE_VISIT_SYMPTOMS = "lastCooperativeVisitSymptoms";
public static final String NUMBER_OF_VISITS = "numberOfVisits";
public static final String LAST_COOPERATIVE_VISIT_SYMPTOMATIC = "lastCooperativeVisitSymptomatic";
public static final String LAST_COOPERATIVE_VISIT_DATE = "lastCooperativeVisitDate";
public static final String LAST_COOPERATIVE_VISIT_SYMPTOMS = "lastCooperativeVisitSymptoms";

private String country;
private long id;
Expand Down Expand Up @@ -208,10 +208,10 @@ public class CaseExportDto implements Serializable {

private FollowUpStatus followUpStatus;
private Date followUpUntil;
// private int numberOfVisits;
// private YesNoUnknown lastCooperativeVisitSymptomatic;
// private Date lastCooperativeVisitDate;
// private String lastCooperativeVisitSymptoms;
private int numberOfVisits;
private YesNoUnknown lastCooperativeVisitSymptomatic;
private Date lastCooperativeVisitDate;
private String lastCooperativeVisitSymptoms;

private CaseJurisdictionDto jurisdiction;

Expand Down Expand Up @@ -1174,41 +1174,41 @@ public Date getFollowUpUntil() {
return followUpUntil;
}

// @Order(133)
// @ExportTarget(caseExportTypes = {
// CaseExportType.CASE_SURVEILLANCE })
// @ExportProperty(CaseExportDto.NUMBER_OF_VISITS)
// @ExportGroup(ExportGroupType.FOLLOW_UP)
// public int getNumberOfVisits() {
// return numberOfVisits;
// }
//
// @Order(134)
// @ExportTarget(caseExportTypes = {
// CaseExportType.CASE_SURVEILLANCE })
// @ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_SYMPTOMATIC)
// @ExportGroup(ExportGroupType.FOLLOW_UP)
// public YesNoUnknown getLastCooperativeVisitSymptomatic() {
// return lastCooperativeVisitSymptomatic;
// }
//
// @Order(135)
// @ExportTarget(caseExportTypes = {
// CaseExportType.CASE_SURVEILLANCE })
// @ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_DATE)
// @ExportGroup(ExportGroupType.FOLLOW_UP)
// public Date getLastCooperativeVisitDate() {
// return lastCooperativeVisitDate;
// }
//
// @Order(136)
// @ExportTarget(caseExportTypes = {
// CaseExportType.CASE_SURVEILLANCE })
// @ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_SYMPTOMS)
// @ExportGroup(ExportGroupType.FOLLOW_UP)
// public String getLastCooperativeVisitSymptoms() {
// return lastCooperativeVisitSymptoms;
// }
@Order(133)
@ExportTarget(caseExportTypes = {
CaseExportType.CASE_SURVEILLANCE })
@ExportProperty(CaseExportDto.NUMBER_OF_VISITS)
@ExportGroup(ExportGroupType.FOLLOW_UP)
public int getNumberOfVisits() {
return numberOfVisits;
}

@Order(134)
@ExportTarget(caseExportTypes = {
CaseExportType.CASE_SURVEILLANCE })
@ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_SYMPTOMATIC)
@ExportGroup(ExportGroupType.FOLLOW_UP)
public YesNoUnknown getLastCooperativeVisitSymptomatic() {
return lastCooperativeVisitSymptomatic;
}

@Order(135)
@ExportTarget(caseExportTypes = {
CaseExportType.CASE_SURVEILLANCE })
@ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_DATE)
@ExportGroup(ExportGroupType.FOLLOW_UP)
public Date getLastCooperativeVisitDate() {
return lastCooperativeVisitDate;
}

@Order(136)
@ExportTarget(caseExportTypes = {
CaseExportType.CASE_SURVEILLANCE })
@ExportProperty(CaseExportDto.LAST_COOPERATIVE_VISIT_SYMPTOMS)
@ExportGroup(ExportGroupType.FOLLOW_UP)
public String getLastCooperativeVisitSymptoms() {
return lastCooperativeVisitSymptoms;
}

public void setCountry(String country) {
this.country = country;
Expand Down Expand Up @@ -1491,19 +1491,19 @@ public void setFollowUpUntil(Date followUpUntil) {
this.followUpUntil = followUpUntil;
}

// public void setNumberOfVisits(int numberOfVisits) {
// this.numberOfVisits = numberOfVisits;
// }
//
// public void setLastCooperativeVisitSymptomatic(YesNoUnknown lastCooperativeVisitSymptomatic) {
// this.lastCooperativeVisitSymptomatic = lastCooperativeVisitSymptomatic;
// }
//
// public void setLastCooperativeVisitDate(Date lastCooperativeVisitDate) {
// this.lastCooperativeVisitDate = lastCooperativeVisitDate;
// }
//
// public void setLastCooperativeVisitSymptoms(String lastCooperativeVisitSymptoms) {
// this.lastCooperativeVisitSymptoms = lastCooperativeVisitSymptoms;
// }
public void setNumberOfVisits(int numberOfVisits) {
this.numberOfVisits = numberOfVisits;
}

public void setLastCooperativeVisitSymptomatic(YesNoUnknown lastCooperativeVisitSymptomatic) {
this.lastCooperativeVisitSymptomatic = lastCooperativeVisitSymptomatic;
}

public void setLastCooperativeVisitDate(Date lastCooperativeVisitDate) {
this.lastCooperativeVisitDate = lastCooperativeVisitDate;
}

public void setLastCooperativeVisitSymptoms(String lastCooperativeVisitSymptoms) {
this.lastCooperativeVisitSymptoms = lastCooperativeVisitSymptoms;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,7 @@ public static SymptomsDto build() {
@DependantOn(OTHER_COMPLICATIONS)
@Complication
@HideForCountries
@SensitiveData
public String otherComplicationsText;

@Diseases({
Expand Down
Loading

0 comments on commit 30c2135

Please sign in to comment.