summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2023-04-06 10:24:18 +0200
committerPaul-Christian Volkmer2023-04-06 10:24:18 +0200
commit68125cd20c40e8fc24bf38d8a94b773146bf82ff (patch)
tree933e902b8fb902a7cdf5b42829f8cea54fca2113 /README.md
parent425e8067b60024256437a5ee4180efdd9d134022 (diff)
Füge Klassendiagramme zu README.md hinzu
Diffstat (limited to 'README.md')
-rw-r--r--README.md68
1 files changed, 67 insertions, 1 deletions
diff --git a/README.md b/README.md
index d237e7a..4eb5e55 100644
--- a/README.md
+++ b/README.md
@@ -24,8 +24,35 @@ Aktuell werden folgende Consent-Formulare unterstützt:
* `MR.Consent`
* `Excel-Formular` (UKW - Beinhaltet Consent-Angaben)
-Eine Übernahme von Consent-Daten aus unbekannten Formularen ist nur manuell möglich.
+```mermaid
+classDiagram
+class ConsentManagerService {
+<<Interface>>
+ + applyConsent(Procedure) void
+ + canApply(Procedure) boolean
+}
+class ConsentManagerServiceFactory {
+ + ConsentManagerServiceFactory(IOnkostarApi)
+ + currentUsableInstance() ConsentManagerService
+}
+class MrConsentManagerService {
+ + MrConsentManagerService(IOnkostarApi)
+ + canApply(Procedure) boolean
+ + applyConsent(Procedure) void
+}
+class UkwConsentManagerService {
+ + UkwConsentManagerService(IOnkostarApi)
+ + canApply(Procedure) boolean
+ + applyConsent(Procedure) void
+}
+
+ConsentManagerServiceFactory ..> MrConsentManagerService : «create»
+ConsentManagerServiceFactory ..> UkwConsentManagerService : «create»
+MrConsentManagerService ..|> ConsentManagerService
+UkwConsentManagerService ..|> ConsentManagerService
+```
+Eine Übernahme von Consent-Daten aus unbekannten Formularen ist nur manuell möglich.
## Therapieplan
@@ -66,6 +93,45 @@ Anschließend ist das Mapping in `DefaultMtbService` in der Methode `procedureTo
...
```
+```mermaid
+classDiagram
+
+class MtbService {
+<<Interface>>
+ + getProtocol(List~Procedure~) String
+ + procedureToProtocolMapper(Procedure) ProcedureToProtocolMapper
+}
+class DefaultMtbService {
+ + DefaultMtbService(IOnkostarApi)
+ + getProtocol(List~Procedure~) String
+ + procedureToProtocolMapper(Procedure) ProcedureToProtocolMapper
+}
+class MrMtbAnmeldungToProtocolMapper {
+ + MrMtbAnmeldungToProtocolMapper(IOnkostarApi)
+ + apply(Procedure) Optional~String~
+}
+class OsTumorkonferenzToProtocolMapper {
+ + OsTumorkonferenzToProtocolMapper()
+ + apply(Procedure) Optional~String~
+}
+class OsTumorkonferenzVarianteUkwToProtocolMapper {
+ + OsTumorkonferenzVarianteUkwToProtocolMapper()
+ + apply(Procedure) Optional~String~
+}
+class ProcedureToProtocolMapper {
+<<Interface>>
+
+}
+
+DefaultMtbService ..|> MtbService
+DefaultMtbService ..> MrMtbAnmeldungToProtocolMapper : «create»
+DefaultMtbService ..> OsTumorkonferenzToProtocolMapper : «create»
+DefaultMtbService ..> OsTumorkonferenzVarianteUkwToProtocolMapper : «create»
+MrMtbAnmeldungToProtocolMapper ..|> ProcedureToProtocolMapper
+OsTumorkonferenzToProtocolMapper ..|> ProcedureToProtocolMapper
+OsTumorkonferenzVarianteUkwToProtocolMapper ..|> ProcedureToProtocolMapper
+```
+
Idealerweise werden entsprechende UnitTests hinzugefügt.
### Mapping Systemtherapie-Formular zu Prozedurwerten