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

Updating the case symptoms based on visit symptoms (converting contact to case) [0.5] #2738

Closed
bernardsilenou opened this issue Aug 28, 2020 · 7 comments · Fixed by #2800
Closed
Assignees
Labels
change A change of an existing feature (ticket type) fr Adaptations requested by or implemented for France

Comments

@bernardsilenou
Copy link

Feature Description

The symptom of a case = sum of baseline + followup +clinical course symptoms

Problem Description

Proposed Change

  • When contact become a case, set baseline symptoms = sum of visit symptoms done within the incubation period (d) of the disease (symptoms of followup visits with report date of visit within d days of report date of case)
  • symptoms initially set to true always stay true

Possible Alternatives

Additional Information

@bernardsilenou bernardsilenou added the change A change of an existing feature (ticket type) label Aug 28, 2020
@ChristopherRiedel ChristopherRiedel added this to the Product Backlog milestone Aug 31, 2020
@bernardsilenou bernardsilenou added the fr Adaptations requested by or implemented for France label Sep 2, 2020
@bernardsilenou
Copy link
Author

@xavier-calland

@xavier-calland
Copy link
Contributor

@bernardsilenou can you tell me how I get the incubation period of a disease ?

Is it Disease.defaultFollowUpDuration (which is 14 for COVID) ?

@bernardsilenou
Copy link
Author

@xavier-calland Yes please

@bernardsilenou
Copy link
Author

@xavier-calland but is the followup duration specified in server configuration is not the disease default, then we use the number of days specified in server configuration:
https://github.com/hzi-braunschweig/SORMAS-Project/blob/development/SERVER_CUSTOMIZATION.md#disease-configuration

image

@xavier-calland
Copy link
Contributor

xavier-calland commented Sep 2, 2020

@bernardsilenou Currently, case symptoms are initialized using the last visit of the contact.

See CaseController.getCaseCreateComponent
https://github.com/hzi-braunschweig/SORMAS-Project/blob/2319d7c7c88b2e812acb77f4ade8904dd50d2e37/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseController.java#L315-L327

Can you confirm that this needs to change to use all visits during the incubation period?

@bernardsilenou
Copy link
Author

@xavier-calland I vote that we change it because the last visit can be 30 days before the date of report of the case. Our initial assumption for implementing it like this was that contacts were converted to cases on the day of the last visit, but this is not always true in real life.
My suggestion:

  • initial case symptom == sum of all visit.symptoms where date of visit is in (case report data -/+ incubation period)
  • Symptoms that occur long (< incubation period) before the report date of the case will not be counted as symptom of the case

@xavier-calland
Copy link
Contributor

OK, thanks.

xavier-calland added a commit to GIP-GRADeS-BFC/SORMAS-Project that referenced this issue Sep 3, 2020
…act to case

TODO: FacadeProvider.getVisitFacade().getVisitsByContactAndIncubationPeriod
xavier-calland added a commit to GIP-GRADeS-BFC/SORMAS-Project that referenced this issue Sep 3, 2020
xavier-calland added a commit to GIP-GRADeS-BFC/SORMAS-Project that referenced this issue Sep 3, 2020
xavier-calland added a commit to GIP-GRADeS-BFC/SORMAS-Project that referenced this issue Sep 3, 2020
MateStrysewske added a commit that referenced this issue Sep 8, 2020
Issue #2738 - Set case symptoms when converting contact to case
@MateStrysewske MateStrysewske self-assigned this Sep 8, 2020
@MateStrysewske MateStrysewske changed the title Updating the case symptoms based on visit symptoms (converting contact to case) Updating the case symptoms based on visit symptoms (converting contact to case) [0.5] Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change A change of an existing feature (ticket type) fr Adaptations requested by or implemented for France
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants