Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Umstellung Quarantäne auf Incidents #463

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

btobi
Copy link
Collaborator

@btobi btobi commented Jun 3, 2020

Dieser PR stellt Quarantänemaßnahme vollständig auf Incidents um.

  • Das Frontend kommuniziert ausschließlich über Incidents mit dem Backend
  • Redundante Informationen aus dem Patienten wurden entfernt
  • Ein Patient kann nun mehrfach in Quarantäne geschickt werden.

Resolves #460

@btobi btobi requested a review from LeonardKoll June 3, 2020 16:56
# Conflicts:
#	client/src/api/SwaggerApi.ts
#	server/src/main/java/de/coronavirus/imis/config/SwaggerConfig.java
@btobi btobi marked this pull request as draft June 4, 2020 08:18
@github-actions
Copy link

github-actions bot commented Jun 4, 2020

➡️ Live preview at url: https://imis-pr-463-lfq7hnbpwq-ew.a.run.app 🆙
⚠️ First access might be very slow, database is shared. 👀

@btobi btobi marked this pull request as ready for review June 4, 2020 10:15
@btobi btobi requested a review from jabrandes June 4, 2020 12:56
Copy link
Collaborator

@jabrandes jabrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich habe die Änderungen überflogen und in der Live-Preview getestet und das Ergebnis sieht für mich gut aus 👌. Ich kann aber wenig zur Implementierung der Incidents sagen, da ich mich mit dem Incident-System bisher kaum beschäftigt habe. Da kann @LeonardKoll sicher eher was zu äußern.

|| latest.get().getUntil().isAfter(LocalDate.now()));
}

public QuarantineIncident save(QuarantineIncident quarantineIncident) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transactional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist schon atomar, daher macht die Transaction Annotation keinen Unterschied.

@LeonardKoll
Copy link
Contributor

LeonardKoll commented Jun 4, 2020

Kann RequestQuarantineDTO nicht weg?

@LeonardKoll
Copy link
Contributor

LeonardKoll commented Jun 4, 2020

image

image

image

Wenn ich für den selben Patienten zwei mal unmittelbar hintereinander Quarantäne vormerke (mit dem selben "bis" Datum, dann entstehen im Backend zwei Incidents. Beim "In Quarantäne senden" kommt es dann infolgedessen zu einem Fehler.
Erwartetes Verhalten beim zweiten Vormerken: Das Backend prüft, ob für den Patienten eine offene Anordnung / Vormerkung besteht. Diese wird angepasst (aktualisiert).

Was einwandfrei funktioniert ist, dass sich ein neuer Incident öffnet wenn Patienten in Quarantäne gesendet wurden und dann erneut vorgemerkt werden.

@btobi
Copy link
Collaborator Author

btobi commented Jun 5, 2020

@LeonardKoll Gut dass du das gefunden hast. Habe das jetzt gelöst, indem ich mir den letzten Quarantäne Incident hole und prüfe, ob das ein SELECTED oder MANDATED ist. Tendenziell sollte das Frontend den QuarantäneIncident selbst schon vorliegen haben, aber ich denke das ist dann auch eine Frage vom Umarbeiten der UI.

@LeonardKoll
Copy link
Contributor

Ja genau! Perfekt.

@MichaelSp MichaelSp changed the base branch from dev to master July 23, 2020 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quarantine Write/Update Incident-Based
3 participants