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

Isolations- und Quarantäneverordnung nicht aktualisieren #1276

Open
14 tasks
St-Annette opened this issue Feb 28, 2022 · 9 comments
Open
14 tasks

Isolations- und Quarantäneverordnung nicht aktualisieren #1276

St-Annette opened this issue Feb 28, 2022 · 9 comments
Assignees
Labels
enhancement New feature or request high-priority
Projects

Comments

@St-Annette
Copy link

St-Annette commented Feb 28, 2022

Is your feature request related to a problem? Please describe.

Bisher werden die Isolations- und Quarantäneverordnungen immer wieder aktualisiert und auch rückwirkend auf schon abgeschlossene Fälle angewandt.
Veränderungen in den Bestätigungen sollten sich nur auswirken auf alle Fälle ab dem Zeitpunkt wo die Dokumente aktualisiert worden sind (nicht rückwirkend für Dokumente).

Außerdem sollten alle vergangenen Dokumente so wieder in das System eingepflegt werden, so dass die Bestätigungen so aussehen, wie sie für den verordneten Zeitraum aktuell gewesen sind.

Describe the solution you'd like

Process

  • To request changes to documents, the following data is required in the future:
    • Changed Document Version
    • Diff of changes (for example an annotated PDF)
    • Separate Text File for Text (for copy/paste which does not work well with PDF)
    • Decide if updating the current version or creating a new one

Setup

To be able to test documents, a new flow is needed to add the documents that support:

  • testing
  • export of all documents/versions via CI for the change process
  • adding elixir modules to polyfill old behavior to avoid BC breaks

tasks:

  • Hygeia Application scans template directory for modules and loads them on start
  • Hygeia Application scans template directory for tests and loads them into ExUnit
  • Private Repo contains a CI that tests the documents and exposes them as artifacts

Document Cleanup

  • Layouts are extracted from documents
  • Code is cleaned up
  • Blocks of text are extracted into markdown
  • Info Links at the end of the document are saved as markdown on tenant and are included dynamically
    • can also be shown on the person overview page
    • can also be removed from doc entirely and only be shown on the person overview page

Data Model

  • Each Phase contains a document date (default = creation date)
  • Document date can be changed to get newer / older docs
  • When migrating, the document date is set to coalesce(phase.end, phase.inserted_at)

Versioning

  • Specify Config Format to define which document version is used for a given date
  • Correct Document is loaded given a date
  • The current document and 3 older versions of documents are created to capture past quarantine/isolation lengths
    • ⚠️ This is not an exact document from the past, we're lacking information to do that properly.

Describe alternatives you've considered

  • Store Parameters for the document generation and only the current document version can be changed.
    • is not flexible enough for past changes and therefore probably not the right solution

Additional context

References

@St-Annette St-Annette added the enhancement New feature or request label Feb 28, 2022
@rebecca-br
Copy link

@maennchen @jeremyzahner bitte das Ticket einschätzen

@jeremyzahner jeremyzahner added this to Estimation in Hygeia via automation Feb 28, 2022
@maennchen
Copy link
Contributor

@rebecca-br Das ist eine sehr grosse Anpassung. Rückwirkend werden wir das nicht machen können, da die Dokumente live generiert und nicht abgelegt werden.

@rebecca-br
Copy link

@maennchen also gibt es keine Möglichkeit, dass eine IP die z.B. im November 2021 positiv war, das korrekte Dokument nochmals herunterladen kann?
Falls das nicht möglich ist... brauchen wir eine Lösung dafür. Wir können diese Dokumente bei Anfragen nicht von Hand erstellen.

@maennchen
Copy link
Contributor

@rebecca-br Können wir dazu einen Call planen?

@rebecca-br
Copy link

@maennchen ja klar. Macht ihr einen Terminvorschlag, wann es für euch passen würde...

@maennchen
Copy link
Contributor

@rebecca-br Diese Woche ist mein Kalender schon relativ voll. Wie wäre es Donnerstag von 14:00 - 14:30? (CC @jeremyzahner )

@rebecca-br
Copy link

@maennchen bei mir würde das passen.

@maennchen
Copy link
Contributor

@rebecca-br Habe dich und @jeremyzahner eingeladen.

@rebecca-br
Copy link

@maennchen Vielen Dank. Ich werde es an Toni und Kathrin noch melden, wenn sie Zeit haben werden sie auch dabei sein.

@maennchen maennchen moved this from Estimation to Estimated & unapproved in Hygeia Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high-priority
Projects
No open projects
Hygeia
Estimated & unapproved
Development

No branches or pull requests

4 participants