feat(body-sites): record a body site on conditions and add a body-site view

A condition (illness episode) can carry where on the body it sits, in the
person's own words and encrypted at rest, plus an optional side (LEFT,
RIGHT, BOTH). Same enum, codec and reasoning as the procedure's site.

- migration 0354: two nullable columns on illness_episodes, reusing the
  laterality type from 0349
- create and edit accept bodySite and laterality; on PATCH an absent key
  keeps the stored value, so an edit from the shipped iPhone app, which
  never sends either field, leaves them untouched
- GET /api/body-sites: the sites the record holds across visits and
  conditions, folded after the decrypt and bounded per kind; with site
  (and laterality) the visits and conditions there, one hop to their
  documents, lab results and visits. Read in the profile section;
  conditions only under an illness grant with the module on, and links
  into ungranted sections come back as unlabelled placeholders
- the link service reads document and visit links from the condition's
  end of the two existing tables
- /checkups gains a Body sites tab; the visit and condition forms share
  one body-site field pair that suggests sites already used; a
  condition's page links its site into the view
- the doctor report, the clinician page and the MCP doctor-visit summary
  name the site on conditions; the Coach illness block carries it
  sanitised, and MCP get_illness_recovery returns it fenced
- backup and restore carry both fields in both file kinds; the site is
  registered as ciphertext and rotates with the key
- i18n in all seven locales, OpenAPI regenerated

Refs #1025
This commit is contained in:
Marc-André Bombeck committed 2026-09-25 21:55:14 +02:00
1 parent af65f01fec
commit 14f0fc4d4f
57 files changed
+3501 -133

No files matched your search

+27 -3
View File
@@ -268,6 +268,7 @@
"illnessTitle": "Erkrankungen",
"illnessOngoing": "Andauernd",
"illnessColCondition": "Erkrankung",
"illnessColBodySite": "Körperstelle",
"illnessColType": "Art",
"illnessColLifecycle": "Verlauf",
"illnessColOnset": "Beginn",
@@ -9194,7 +9195,8 @@
"parentNone": "Nicht verknüpft",
"resolved": "Beendet am",
"resolvedHelp": "Leer lassen, solange die Episode noch andauert.",
"markOngoing": "Noch andauernd"
"markOngoing": "Noch andauernd",
"bodySiteHint": "Zum Beispiel Knie oder unterer Rücken."
},
"sheet": {
"title": "{date} erfassen",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Vorsorge, Termine oder Eingriffe anzeigen",
"viewSwitchLabel": "Vorsorge, Termine, Eingriffe oder Körperstellen anzeigen",
"tabVorsorge": "Vorsorge",
"tabVisits": "Termine",
"tabProcedures": "Eingriffe"
"tabProcedures": "Eingriffe",
"tabBodySites": "Körperstellen"
},
"practitioners": {
"title": "Praxen und Ärzte",
@@ -10972,5 +10975,26 @@
"removeNamed": "{name} entfernen",
"removed": "Verknüpfung mit {name} gelöst"
}
},
"bodySites": {
"title": "Körperstellen",
"description": "Eingriffe und Erkrankungen nach der Stelle am Körper.",
"loadError": "Die Körperstellen konnten nicht geladen werden.",
"emptyTitle": "Noch keine Körperstelle erfasst",
"emptyDescription": "Gib bei einem Eingriff oder einer Erkrankung eine Körperstelle an, dann erscheint sie hier.",
"sitesLabel": "Körperstellen",
"sidesLabel": "Seite",
"allSides": "Alle Seiten",
"pickPrompt": "Wähle eine Stelle, um zu sehen, was dazu erfasst ist.",
"noMatchTitle": "Auf dieser Seite ist nichts erfasst",
"visitsTitle": "Eingriffe und Termine",
"conditionsTitle": "Erkrankungen",
"hiddenDocument": "Ein Dokument, das nicht mit dir geteilt ist",
"hiddenLabResult": "Ein Laborwert, der nicht mit dir geteilt ist",
"hiddenCondition": "Eine Erkrankung, die nicht mit dir geteilt ist",
"hiddenVisit": "Ein Termin, der nicht mit dir geteilt ist",
"linkedLabel": "Verknüpfte Einträge",
"conditionSince": "Seit {onset}",
"conditionDates": "{onset} bis {resolved}"
}
}
+27 -3
View File
@@ -304,6 +304,7 @@
"illnessTitle": "Conditions & illnesses",
"illnessOngoing": "Ongoing",
"illnessColCondition": "Condition",
"illnessColBodySite": "Body site",
"illnessColType": "Type",
"illnessColLifecycle": "Course",
"illnessColOnset": "Onset",
@@ -9194,7 +9195,8 @@
"parentNone": "Not linked",
"resolved": "Ended on",
"resolvedHelp": "Leave empty while the episode is still ongoing.",
"markOngoing": "Still ongoing"
"markOngoing": "Still ongoing",
"bodySiteHint": "For example knee or lower back."
},
"sheet": {
"title": "Log {date}",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Show checkups, visits or procedures",
"viewSwitchLabel": "Show checkups, visits, procedures or body sites",
"tabVorsorge": "Checkups",
"tabVisits": "Visits",
"tabProcedures": "Procedures"
"tabProcedures": "Procedures",
"tabBodySites": "Body sites"
},
"practitioners": {
"title": "Practices and doctors",
@@ -10972,5 +10975,26 @@
"removeNamed": "Remove {name}",
"removed": "Unlinked {name}"
}
},
"bodySites": {
"title": "Body sites",
"description": "Procedures and conditions by where on the body they are.",
"loadError": "Body sites could not be loaded.",
"emptyTitle": "No body site recorded yet",
"emptyDescription": "Add a body site to a procedure or a condition and it appears here.",
"sitesLabel": "Body sites",
"sidesLabel": "Side",
"allSides": "All sides",
"pickPrompt": "Pick a site to see what is filed there.",
"noMatchTitle": "Nothing recorded on this side",
"visitsTitle": "Procedures and visits",
"conditionsTitle": "Conditions",
"hiddenDocument": "A document not shared with you",
"hiddenLabResult": "A lab result not shared with you",
"hiddenCondition": "A condition not shared with you",
"hiddenVisit": "A visit not shared with you",
"linkedLabel": "Linked records",
"conditionSince": "Since {onset}",
"conditionDates": "{onset} to {resolved}"
}
}
+27 -3
View File
@@ -268,6 +268,7 @@
"illnessTitle": "Afecciones y enfermedades",
"illnessOngoing": "En curso",
"illnessColCondition": "Afección",
"illnessColBodySite": "Zona del cuerpo",
"illnessColType": "Tipo",
"illnessColLifecycle": "Curso",
"illnessColOnset": "Inicio",
@@ -9194,7 +9195,8 @@
"parentNone": "Sin vincular",
"resolved": "Finalizó el",
"resolvedHelp": "Déjalo vacío mientras el episodio siga en curso.",
"markOngoing": "Aún en curso"
"markOngoing": "Aún en curso",
"bodySiteHint": "Por ejemplo, rodilla o zona lumbar."
},
"sheet": {
"title": "Registrar {date}",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Mostrar revisiones, citas o procedimientos",
"viewSwitchLabel": "Mostrar revisiones, citas, procedimientos o zonas del cuerpo",
"tabVorsorge": "Revisiones",
"tabVisits": "Citas",
"tabProcedures": "Procedimientos"
"tabProcedures": "Procedimientos",
"tabBodySites": "Zonas del cuerpo"
},
"practitioners": {
"title": "Consultas y médicos",
@@ -10972,5 +10975,26 @@
"removeNamed": "Quitar {name}",
"removed": "Se desvinculó {name}"
}
},
"bodySites": {
"title": "Zonas del cuerpo",
"description": "Procedimientos y enfermedades según la zona del cuerpo.",
"loadError": "No se pudieron cargar las zonas del cuerpo.",
"emptyTitle": "Aún no hay ninguna zona del cuerpo registrada",
"emptyDescription": "Añade una zona del cuerpo a un procedimiento o a una enfermedad y aparecerá aquí.",
"sitesLabel": "Zonas del cuerpo",
"sidesLabel": "Lado",
"allSides": "Todos los lados",
"pickPrompt": "Elige una zona para ver lo que hay registrado en ella.",
"noMatchTitle": "No hay nada registrado en este lado",
"visitsTitle": "Procedimientos y citas",
"conditionsTitle": "Enfermedades",
"hiddenDocument": "Un documento que no se ha compartido contigo",
"hiddenLabResult": "Un resultado de laboratorio que no se ha compartido contigo",
"hiddenCondition": "Una enfermedad que no se ha compartido contigo",
"hiddenVisit": "Una cita que no se ha compartido contigo",
"linkedLabel": "Registros vinculados",
"conditionSince": "Desde el {onset}",
"conditionDates": "Del {onset} al {resolved}"
}
}
+27 -3
View File
@@ -268,6 +268,7 @@
"illnessTitle": "Affections et maladies",
"illnessOngoing": "En cours",
"illnessColCondition": "Affection",
"illnessColBodySite": "Partie du corps",
"illnessColType": "Type",
"illnessColLifecycle": "Évolution",
"illnessColOnset": "Début",
@@ -9194,7 +9195,8 @@
"parentNone": "Non lié",
"resolved": "Terminée le",
"resolvedHelp": "Laissez vide tant que l'épisode est en cours.",
"markOngoing": "Toujours en cours"
"markOngoing": "Toujours en cours",
"bodySiteHint": "Par exemple genou ou bas du dos."
},
"sheet": {
"title": "Enregistrer {date}",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Afficher les dépistages, les rendez-vous ou les interventions",
"viewSwitchLabel": "Afficher les dépistages, les rendez-vous, les interventions ou les parties du corps",
"tabVorsorge": "Dépistages",
"tabVisits": "Rendez-vous",
"tabProcedures": "Interventions"
"tabProcedures": "Interventions",
"tabBodySites": "Parties du corps"
},
"practitioners": {
"title": "Cabinets et médecins",
@@ -10972,5 +10975,26 @@
"removeNamed": "Retirer {name}",
"removed": "{name} dissocié"
}
},
"bodySites": {
"title": "Parties du corps",
"description": "Interventions et maladies selon la partie du corps concernée.",
"loadError": "Les parties du corps n’ont pas pu être chargées.",
"emptyTitle": "Aucune partie du corps enregistrée pour l’instant",
"emptyDescription": "Indiquez une partie du corps sur une intervention ou une maladie pour la retrouver ici.",
"sitesLabel": "Parties du corps",
"sidesLabel": "Côté",
"allSides": "Tous les côtés",
"pickPrompt": "Choisissez une partie du corps pour voir ce qui y est enregistré.",
"noMatchTitle": "Rien n’est enregistré de ce côté",
"visitsTitle": "Interventions et rendez-vous",
"conditionsTitle": "Maladies",
"hiddenDocument": "Un document qui ne vous est pas partagé",
"hiddenLabResult": "Un résultat d’analyse qui ne vous est pas partagé",
"hiddenCondition": "Une maladie qui ne vous est pas partagée",
"hiddenVisit": "Un rendez-vous qui ne vous est pas partagé",
"linkedLabel": "Éléments liés",
"conditionSince": "Depuis le {onset}",
"conditionDates": "Du {onset} au {resolved}"
}
}
+27 -3
View File
@@ -268,6 +268,7 @@
"illnessTitle": "Condizioni e malattie",
"illnessOngoing": "In corso",
"illnessColCondition": "Condizione",
"illnessColBodySite": "Parte del corpo",
"illnessColType": "Tipo",
"illnessColLifecycle": "Decorso",
"illnessColOnset": "Inizio",
@@ -9194,7 +9195,8 @@
"parentNone": "Non collegato",
"resolved": "Conclusa il",
"resolvedHelp": "Lascia vuoto finché l'episodio è ancora in corso.",
"markOngoing": "Ancora in corso"
"markOngoing": "Ancora in corso",
"bodySiteHint": "Ad esempio ginocchio o zona lombare."
},
"sheet": {
"title": "Registra {date}",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Mostra controlli, appuntamenti o interventi",
"viewSwitchLabel": "Mostra controlli, appuntamenti, interventi o parti del corpo",
"tabVorsorge": "Controlli",
"tabVisits": "Appuntamenti",
"tabProcedures": "Interventi"
"tabProcedures": "Interventi",
"tabBodySites": "Parti del corpo"
},
"practitioners": {
"title": "Studi e medici",
@@ -10972,5 +10975,26 @@
"removeNamed": "Rimuovi {name}",
"removed": "Collegamento a {name} rimosso"
}
},
"bodySites": {
"title": "Parti del corpo",
"description": "Interventi e malattie in base alla parte del corpo.",
"loadError": "Non è stato possibile caricare le parti del corpo.",
"emptyTitle": "Nessuna parte del corpo registrata",
"emptyDescription": "Aggiungi una parte del corpo a un intervento o a una malattia e comparirà qui.",
"sitesLabel": "Parti del corpo",
"sidesLabel": "Lato",
"allSides": "Tutti i lati",
"pickPrompt": "Scegli una parte del corpo per vedere cosa vi è registrato.",
"noMatchTitle": "Nulla di registrato su questo lato",
"visitsTitle": "Interventi e appuntamenti",
"conditionsTitle": "Malattie",
"hiddenDocument": "Un documento non condiviso con te",
"hiddenLabResult": "Un risultato di laboratorio non condiviso con te",
"hiddenCondition": "Una malattia non condivisa con te",
"hiddenVisit": "Un appuntamento non condiviso con te",
"linkedLabel": "Voci collegate",
"conditionSince": "Dal {onset}",
"conditionDates": "Dal {onset} al {resolved}"
}
}
+27 -3
View File
@@ -304,6 +304,7 @@
"illnessTitle": "질환 및 아픈 날",
"illnessOngoing": "진행 중",
"illnessColCondition": "질환",
"illnessColBodySite": "신체 부위",
"illnessColType": "유형",
"illnessColLifecycle": "경과",
"illnessColOnset": "발병",
@@ -9194,7 +9195,8 @@
"parentNone": "연결 안 함",
"resolved": "종료일",
"resolvedHelp": "아직 진행 중이면 비워 두세요.",
"markOngoing": "아직 진행 중"
"markOngoing": "아직 진행 중",
"bodySiteHint": "예: 무릎, 허리"
},
"sheet": {
"title": "{date} 기록",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "건강검진, 진료 또는 시술 보기",
"viewSwitchLabel": "건강검진, 진료, 시술 또는 신체 부위 보기",
"tabVorsorge": "건강검진",
"tabVisits": "진료",
"tabProcedures": "시술·수술"
"tabProcedures": "시술·수술",
"tabBodySites": "신체 부위"
},
"practitioners": {
"title": "병원과 의사",
@@ -10972,5 +10975,26 @@
"removeNamed": "{name} 제거",
"removed": "{name} 연결 해제됨"
}
},
"bodySites": {
"title": "신체 부위",
"description": "시술과 질환을 신체 부위별로 봅니다.",
"loadError": "신체 부위를 불러오지 못했습니다.",
"emptyTitle": "아직 기록된 신체 부위가 없습니다",
"emptyDescription": "시술이나 질환에 신체 부위를 입력하면 여기에 표시됩니다.",
"sitesLabel": "신체 부위",
"sidesLabel": "방향",
"allSides": "전체",
"pickPrompt": "부위를 선택하면 그 부위에 기록된 내용을 볼 수 있습니다.",
"noMatchTitle": "이쪽에는 기록된 내용이 없습니다",
"visitsTitle": "시술 및 진료",
"conditionsTitle": "질환",
"hiddenDocument": "공유되지 않은 문서",
"hiddenLabResult": "공유되지 않은 검사 결과",
"hiddenCondition": "공유되지 않은 질환",
"hiddenVisit": "공유되지 않은 진료",
"linkedLabel": "연결된 기록",
"conditionSince": "{onset}부터",
"conditionDates": "{onset} ~ {resolved}"
}
}
+27 -3
View File
@@ -268,6 +268,7 @@
"illnessTitle": "Schorzenia i choroby",
"illnessOngoing": "Trwająca",
"illnessColCondition": "Schorzenie",
"illnessColBodySite": "Miejsce na ciele",
"illnessColType": "Typ",
"illnessColLifecycle": "Przebieg",
"illnessColOnset": "Początek",
@@ -9194,7 +9195,8 @@
"parentNone": "Niepowiązane",
"resolved": "Zakończono",
"resolvedHelp": "Pozostaw puste, dopóki epizod nadal trwa.",
"markOngoing": "Nadal trwa"
"markOngoing": "Nadal trwa",
"bodySiteHint": "Na przykład kolano lub dolna część pleców."
},
"sheet": {
"title": "Zapisz {date}",
@@ -10928,10 +10930,11 @@
}
},
"checkups": {
"viewSwitchLabel": "Pokaż badania profilaktyczne, wizyty lub zabiegi",
"viewSwitchLabel": "Pokaż badania profilaktyczne, wizyty, zabiegi lub miejsca na ciele",
"tabVorsorge": "Profilaktyka",
"tabVisits": "Wizyty",
"tabProcedures": "Zabiegi"
"tabProcedures": "Zabiegi",
"tabBodySites": "Miejsca na ciele"
},
"practitioners": {
"title": "Gabinety i lekarze",
@@ -10972,5 +10975,26 @@
"removeNamed": "Usuń {name}",
"removed": "Odłączono: {name}"
}
},
"bodySites": {
"title": "Miejsca na ciele",
"description": "Zabiegi i choroby według miejsca na ciele.",
"loadError": "Nie udało się wczytać miejsc na ciele.",
"emptyTitle": "Nie zapisano jeszcze żadnego miejsca na ciele",
"emptyDescription": "Dodaj miejsce na ciele do zabiegu lub choroby, a pojawi się tutaj.",
"sitesLabel": "Miejsca na ciele",
"sidesLabel": "Strona",
"allSides": "Wszystkie strony",
"pickPrompt": "Wybierz miejsce, aby zobaczyć, co jest do niego zapisane.",
"noMatchTitle": "Po tej stronie nic nie zapisano",
"visitsTitle": "Zabiegi i wizyty",
"conditionsTitle": "Choroby",
"hiddenDocument": "Dokument, który nie jest Ci udostępniony",
"hiddenLabResult": "Wynik badania, który nie jest Ci udostępniony",
"hiddenCondition": "Choroba, która nie jest Ci udostępniona",
"hiddenVisit": "Wizyta, która nie jest Ci udostępniona",
"linkedLabel": "Powiązane wpisy",
"conditionSince": "Od {onset}",
"conditionDates": "Od {onset} do {resolved}"
}
}