59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
|
using HospitalDataModels.Models;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace HospitalContracts.BindingModels
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Модель привязки для сущности "Пациент"
|
|||
|
/// </summary>
|
|||
|
public class PatientBindingModel : IPatientModel
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Идентификатор
|
|||
|
/// </summary>
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// ФИО пациента
|
|||
|
/// </summary>
|
|||
|
public string FullName { get; set; } = string.Empty;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Дата рождения пациента
|
|||
|
/// </summary>
|
|||
|
public DateTime BirthDate { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Номер телефона пациента
|
|||
|
/// </summary>
|
|||
|
public string Phone { get; set; } = string.Empty;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Идентификатор лечащего врача
|
|||
|
/// </summary>
|
|||
|
public int DoctorId { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Список рецептов пациента
|
|||
|
/// </summary>
|
|||
|
public Dictionary<int, IRecipeModel> PatientRecipes
|
|||
|
{
|
|||
|
get;
|
|||
|
set;
|
|||
|
} = new();
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Список процедур пациента
|
|||
|
/// </summary>
|
|||
|
public Dictionary<int, IProcedureModel> PatientProcedures
|
|||
|
{
|
|||
|
get;
|
|||
|
set;
|
|||
|
} = new();
|
|||
|
}
|
|||
|
}
|