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

Материал из Поле цифровой дидактики
Нет описания правки
Нет описания правки
 
(не показано 7 промежуточных версий этого же участника)
Строка 4: Строка 4:
|Environment=Mermaid, GenAI
|Environment=Mermaid, GenAI
}}
}}
----
== Собственная версия ==


{{#mermaid:classDiagram
  direction RL
Мед_карта <|-- Врач
    Мед_карта: +int Номер карты
    Мед_карта: +String ФИО больного
    Мед_карта: +String ФИО врача
    Мед_карта: +String Время приема
    Мед_карта: +Записывать состояние пациента()
    Мед_карта: +Записывать дату приема()
    Мед_карта: +Ставить или снимать с учета()
  Пациент <|-- Врач
    Пациент: +String ФИО
    Пациент: +String Дата рождения
    Пациент: +String Адрес
    Пациент: +int Номер телефон
    Пациент: +int Номер Мед_карты
    Пациент: +int Диагноз
    Пациент: +Получать лечение()
    Пациент: +Болеть()
    Пациент: +Приходить на прием()
    Пациент: +Консультация врача()
 
class Врач {
        +String ФИО
        +int Кабинет
        +String Специализация
        +Лечить()
        +Ставить на учет()
        +Снимать с учета()
        +Вести историю болезни()
        +Консультировать()
    }
   
}}
----
https://poe.com/
{{#mermaid:classDiagram
class Doctor {
  -name: string
  -specialty: string
  +treatPatient(patient: Patient): void
}
class Patient {
  -name: string
  -age: int
  +describeSymptoms(): string
}
Doctor --> Patient
}}
=== 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:
{{#mermaid:
classDiagram
sequenceDiagram
    class Doctor{
  participant Doctor
        -name: string
  participant Patient
        -specialty: string
  participant MedicalCard
        +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


  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