Медицинский центр (диаграмма): различия между версиями

Материал из Поле цифровой дидактики
Нет описания правки
Нет описания правки
Строка 5: Строка 5:
}}
}}
----
----
{{#mermaid:classDiagram
{{#mermaid:
     class Doctor{
  classDiagram
        -name: string
     Doctor <|-- Patient
        -specialty: string
    Doctor : +name: string
        +addPatient(patient: Patient): void
    Doctor : +specialty: string
        +removePatient(patient: Patient): void
    Doctor : +location: string
        +viewMedicalRecord(patient: Patient): MedicalRecord
    Doctor : +appointments()
    }
     Patient : +name: string
    class Patient{
    Patient : +age: int
        -name: string
    Patient : +gender: string
        -age: number
     Patient : +medicalHistory()
        -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:19, 12 мая 2023


Описание Как работает врач с пациентом
Область знаний Медицина, Управление
Среды для создания диаграммы: Mermaid, GenAI