Медицинский центр (диаграмма): различия между версиями
Материал из Поле цифровой дидактики
Patarakin (обсуждение | вклад) Нет описания правки |
Patarakin (обсуждение | вклад) Нет описания правки |
||
| Строка 5: | Строка 5: | ||
}} | }} | ||
{{#mermaid: | |||
classDiagram | |||
class Doctor{ | |||
-name: string | |||
-specialty: string | |||
+addPatient(patient: Patient): void | |||
+removePatient(patient: Patient): void | |||
+viewMedicalRecord(patient: Patient): MedicalRecord | |||
} | |||
class Patient{ | |||
-name: string | |||
-age: number | |||
-gender: string | |||
-medicalRecord: MedicalRecord | |||
+addMedicalRecord(medicalRecord: MedicalRecord): void | |||
+removeMedicalRecord(medicalRecord: MedicalRecord): void | |||
+viewMedicalRecord(): MedicalRecord | |||
} | |||
class MedicalRecord{ | |||
-patient: Patient | |||
-doctor: Doctor | |||
-diagnosis: string | |||
-prescription: string | |||
-notes: string | |||
+updateDiagnosis(diagnosis: string): void | |||
+updatePrescription(prescription: string): void | |||
+updateNotes(notes: string): void | |||
} | |||
Doctor -> Patient : treats | |||
Patient -> MedicalRecord : has | |||
Doctor -> MedicalRecord : views | |||
Doctor --> MedicalRecord : updates | |||
}} | }} | ||
Версия от 19:15, 12 мая 2023
| Описание | Как работает врач с пациентом |
|---|---|
| Область знаний | Медицина, Управление |
| Среды для создания диаграммы: | Mermaid, GenAI |
