-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use same endpoint for download results as the results list view (#8110)
* Add survey data on TestResultsListItem * Use GetResultsForDownload query for csv download * Add resolved survey data * Use SymptomOnset instead of SymptomOnsetDate * Add resolved patient link * Update TestResultTest * Update codegen graphql * Filter disabled diseases on csv download
- Loading branch information
Showing
14 changed files
with
761 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
backend/src/main/java/gov/cdc/usds/simplereport/db/model/auxiliary/ResolvedSurveyData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package gov.cdc.usds.simplereport.db.model.auxiliary; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class ResolvedSurveyData { | ||
|
||
private String pregnancy; | ||
private String syphilisHistory; | ||
private String symptoms; | ||
private Boolean noSymptoms; | ||
private LocalDate symptomOnset; | ||
private List<String> genderOfSexualPartners; | ||
|
||
public ResolvedSurveyData(AskOnEntrySurvey surveyData) { | ||
this.pregnancy = surveyData.getPregnancy(); | ||
this.syphilisHistory = surveyData.getSyphilisHistory(); | ||
this.symptoms = surveyData.getSymptomsJSON(); | ||
this.noSymptoms = surveyData.getNoSymptoms(); | ||
this.symptomOnset = surveyData.getSymptomOnsetDate(); | ||
this.genderOfSexualPartners = surveyData.getGenderOfSexualPartners(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.