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

Материал из Поле цифровой дидактики
Нет описания правки
Нет описания правки
 
(не показано 6 промежуточных версий этого же участника)
Строка 5: Строка 5:
}}
}}
----
----
== Собственная версия ==
{{#mermaid:classDiagram
{{#mermaid:classDiagram
     class Doctor{
  direction RL
         -name: string
Мед_карта <|-- Врач
         -specialty: string
    Мед_карта: +int Номер карты
         +addPatient(patient: Patient): void
    Мед_карта: +String ФИО больного
         +removePatient(patient: Patient): void
    Мед_карта: +String ФИО врача
         +viewMedicalRecord(patient: Patient): MedicalRecord
    Мед_карта: +String Время приема
    Мед_карта: +Записывать состояние пациента()
    Мед_карта: +Записывать дату приема()
    Мед_карта: +Ставить или снимать с учета()
  Пациент <|-- Врач
    Пациент: +String ФИО
    Пациент: +String Дата рождения
    Пациент: +String Адрес
    Пациент: +int Номер телефон
    Пациент: +int Номер Мед_карты
    Пациент: +int Диагноз
     Пациент: +Получать лечение()
    Пациент: +Болеть()
    Пациент: +Приходить на прием()
    Пациент: +Консультация врача()
 
class Врач {
         +String ФИО
        +int Кабинет
        +String Специализация
        +Лечить()
         +Ставить на учет()
         +Снимать с учета()
         +Вести историю болезни()
         +Консультировать()
     }
     }
     class Patient{
      
        -name: string
}}
        -age: number
 
        -gender: string
----
        -medicalRecord: MedicalRecord
https://poe.com/
        +addMedicalRecord(medicalRecord: MedicalRecord): void
 
        +removeMedicalRecord(medicalRecord: MedicalRecord): void
{{#mermaid:classDiagram
        +viewMedicalRecord(): MedicalRecord
class Doctor {
    }
  -name: string
    class MedicalRecord{
  -specialty: string
        -patient: Patient
  +treatPatient(patient: Patient): void
        -doctor: Doctor
}
        -diagnosis: string
 
        -prescription: string
class Patient {
        -notes: string
  -name: string
        +updateDiagnosis(diagnosis: string): void
  -age: int
        +updatePrescription(prescription: string): void
  +describeSymptoms(): string
        +updateNotes(notes: string): void
}
    }
 
    Doctor -> Patient : treats
Doctor --> Patient
    Patient -> MedicalRecord : has
}}
    Doctor -> MedicalRecord : views
 
    Doctor --> MedicalRecord : updates
 
=== Version 2 ===
 
{{#mermaid:classDiagram
class Doctor {
  -name: string
  -specialty: string
  +treatPatient(patient: Patient): void
}
 
class Patient {
  -name: string
  -age: int
  +describeSymptoms(): string
}
 
class MedicalCard {
  -patient: Patient
  -doctor: Doctor
  -observations: string
  +addObservations(observation: string): void
}
 
Doctor --> Patient
Patient "1" --o "1" MedicalCard
Doctor "1" --o "n" MedicalCard
 
}}
 
 
=== V3 ===
{{#mermaid:
sequenceDiagram
  participant Doctor
  participant Patient
  participant MedicalCard
 
  Patient->>Doctor: Request treatment
  Doctor->>Patient: Examine patient
  Doctor->>MedicalCard: Create medical card
  MedicalCard->>Doctor: Confirm creation
  Doctor->>MedicalCard: Add observations
  MedicalCard->>Doctor: Confirm observations added
  Doctor->>Patient: Prescribe treatment
 
}}
}}

Текущая версия от 19:59, 12 мая 2023


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

Собственная версия


https://poe.com/


Version 2


V3