1717 *******************************************************************************/
1818package de .symeda .sormas .api .caze ;
1919
20- import java .io .Serializable ;
21- import java .util .ArrayList ;
22- import java .util .Date ;
23- import java .util .List ;
24-
2520import de .symeda .sormas .api .Disease ;
2621import de .symeda .sormas .api .DiseaseHelper ;
2722import de .symeda .sormas .api .clinicalcourse .ClinicalCourseDto ;
5954import de .symeda .sormas .api .utils .pseudonymization .Pseudonymizer ;
6055import de .symeda .sormas .api .utils .pseudonymization .valuepseudonymizers .PostalCodePseudonymizer ;
6156
57+ import java .io .Serializable ;
58+ import java .util .ArrayList ;
59+ import java .util .Date ;
60+ import java .util .List ;
61+
6262/**
6363 * A DTO class that contains the properties that are exported during a detailed case export. These
6464 * properties are also those that users can select when creating a custom export configuration.
@@ -202,6 +202,8 @@ public class CaseExportDto implements Serializable {
202202 private Date quarantineOrderedVerballyDate ;
203203 private Date quarantineOrderedOfficialDocumentDate ;
204204 private boolean quarantineExtended ;
205+ private boolean quarantineOfficialOrderSent ;
206+ private Date quarantineOfficialOrderSentDate ;
205207
206208 private YesNoUnknown postpartum ;
207209 private Trimester trimester ;
@@ -230,6 +232,7 @@ public CaseExportDto(long id, long personId, long personAddressId, long epiDataI
230232 QuarantineType quarantine , String quarantineTypeDetails , Date quarantineFrom , Date quarantineTo ,
231233 boolean quarantineOrderedVerbally , boolean quarantineOrderedOfficialDocument , Date quarantineOrderedVerballyDate ,
232234 Date quarantineOrderedOfficialDocumentDate , boolean quarantineExtended ,
235+ boolean quarantineOfficialOrderSent , Date quarantineOfficialOrderSentDate ,
233236 YesNoUnknown admittedToHealthFacility , Date admissionDate , Date dischargeDate , YesNoUnknown leftAgainstAdvice , PresentCondition presentCondition ,
234237 Date deathDate , Date burialDate , BurialConductor burialConductor , String burialPlaceDescription ,
235238 String addressRegion , String addressDistrict , String city , String street , String houseNumber , String additionalInformation , String postalCode ,
@@ -277,6 +280,8 @@ public CaseExportDto(long id, long personId, long personAddressId, long epiDataI
277280 this .quarantineOrderedVerballyDate = quarantineOrderedVerballyDate ;
278281 this .quarantineOrderedOfficialDocumentDate = quarantineOrderedOfficialDocumentDate ;
279282 this .quarantineExtended = quarantineExtended ;
283+ this .quarantineOfficialOrderSent = quarantineOfficialOrderSent ;
284+ this .quarantineOfficialOrderSentDate = quarantineOfficialOrderSentDate ;
280285 this .healthFacility = FacilityHelper .buildFacilityString (healthFacilityUuid , healthFacility , healthFacilityDetails );
281286 this .pointOfEntry = InfrastructureHelper .buildPointOfEntryString (pointOfEntryUuid , pointOfEntry , pointOfEntryDetails );
282287 this .admittedToHealthFacility = admittedToHealthFacility ;
@@ -633,7 +638,9 @@ public Date getQuarantineTo() {
633638 CaseExportType .CASE_MANAGEMENT })
634639 @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
635640 @ ExportGroup (ExportGroupType .ADDITIONAL )
636- @ HideForCountriesExcept
641+ @ HideForCountriesExcept (countries = {
642+ "de" ,
643+ "ch" })
637644 public boolean isQuarantineOrderedVerbally () {
638645 return quarantineOrderedVerbally ;
639646 }
@@ -644,7 +651,9 @@ public boolean isQuarantineOrderedVerbally() {
644651 CaseExportType .CASE_MANAGEMENT })
645652 @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
646653 @ ExportGroup (ExportGroupType .ADDITIONAL )
647- @ HideForCountriesExcept
654+ @ HideForCountriesExcept (countries = {
655+ "de" ,
656+ "ch" })
648657 public boolean isQuarantineOrderedOfficialDocument () {
649658 return quarantineOrderedOfficialDocument ;
650659 }
@@ -655,7 +664,9 @@ public boolean isQuarantineOrderedOfficialDocument() {
655664 CaseExportType .CASE_MANAGEMENT })
656665 @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
657666 @ ExportGroup (ExportGroupType .ADDITIONAL )
658- @ HideForCountriesExcept
667+ @ HideForCountriesExcept (countries = {
668+ "de" ,
669+ "ch" })
659670 public Date getQuarantineOrderedVerballyDate () {
660671 return quarantineOrderedVerballyDate ;
661672 }
@@ -666,7 +677,9 @@ public Date getQuarantineOrderedVerballyDate() {
666677 CaseExportType .CASE_MANAGEMENT })
667678 @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
668679 @ ExportGroup (ExportGroupType .ADDITIONAL )
669- @ HideForCountriesExcept
680+ @ HideForCountriesExcept (countries = {
681+ "de" ,
682+ "ch" })
670683 public Date getQuarantineOrderedOfficialDocumentDate () {
671684 return quarantineOrderedOfficialDocumentDate ;
672685 }
@@ -677,11 +690,37 @@ public Date getQuarantineOrderedOfficialDocumentDate() {
677690 CaseExportType .CASE_MANAGEMENT })
678691 @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
679692 @ ExportGroup (ExportGroupType .ADDITIONAL )
693+ @ HideForCountriesExcept (countries = {
694+ "de" ,
695+ "ch" })
696+ public boolean isQuarantineOfficialOrderSent () {
697+ return quarantineOfficialOrderSent ;
698+ }
699+
700+ @ Order (42 )
701+ @ ExportTarget (caseExportTypes = {
702+ CaseExportType .CASE_SURVEILLANCE ,
703+ CaseExportType .CASE_MANAGEMENT })
704+ @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
705+ @ ExportGroup (ExportGroupType .ADDITIONAL )
706+ @ HideForCountriesExcept (countries = {
707+ "de" ,
708+ "ch" })
709+ public Date getQuarantineOfficialOrderSentDate () {
710+ return quarantineOfficialOrderSentDate ;
711+ }
712+
713+ @ Order (43 )
714+ @ ExportTarget (caseExportTypes = {
715+ CaseExportType .CASE_SURVEILLANCE ,
716+ CaseExportType .CASE_MANAGEMENT })
717+ @ ExportProperty (value = QUARANTINE_INFORMATION , combined = true )
718+ @ ExportGroup (ExportGroupType .ADDITIONAL )
680719 public boolean isQuarantineExtended () {
681720 return quarantineExtended ;
682721 }
683722
684- @ Order (42 )
723+ @ Order (44 )
685724 @ ExportTarget (caseExportTypes = {
686725 CaseExportType .CASE_SURVEILLANCE })
687726 @ ExportProperty (MAX_SOURCE_CASE_CLASSIFICATION )
@@ -690,7 +729,7 @@ public CaseClassification getMaxSourceCaseClassification() {
690729 return maxSourceCaseClassification ;
691730 }
692731
693- @ Order (43 )
732+ @ Order (45 )
694733 @ ExportTarget (caseExportTypes = {
695734 CaseExportType .CASE_SURVEILLANCE })
696735 @ ExportProperty (ASSOCIATED_WITH_OUTBREAK )
@@ -703,7 +742,7 @@ public void setMaxSourceCaseClassification(CaseClassification maxSourceCaseClass
703742 this .maxSourceCaseClassification = maxSourceCaseClassification ;
704743 }
705744
706- @ Order (44 )
745+ @ Order (46 )
707746 @ ExportTarget (caseExportTypes = {
708747 CaseExportType .CASE_SURVEILLANCE ,
709748 CaseExportType .CASE_MANAGEMENT })
@@ -713,7 +752,7 @@ public YesNoUnknown getAdmittedToHealthFacility() {
713752 return admittedToHealthFacility ;
714753 }
715754
716- @ Order (45 )
755+ @ Order (47 )
717756 @ ExportTarget (caseExportTypes = {
718757 CaseExportType .CASE_SURVEILLANCE ,
719758 CaseExportType .CASE_MANAGEMENT })
@@ -723,7 +762,7 @@ public Date getAdmissionDate() {
723762 return admissionDate ;
724763 }
725764
726- @ Order (46 )
765+ @ Order (48 )
727766 @ ExportTarget (caseExportTypes = {
728767 CaseExportType .CASE_SURVEILLANCE ,
729768 CaseExportType .CASE_MANAGEMENT })
@@ -737,7 +776,7 @@ public void setDischargeDate(Date dischargeDate) {
737776 this .dischargeDate = dischargeDate ;
738777 }
739778
740- @ Order (47 )
779+ @ Order (49 )
741780 @ ExportTarget (caseExportTypes = {
742781 CaseExportType .CASE_SURVEILLANCE ,
743782 CaseExportType .CASE_MANAGEMENT })
0 commit comments