40 lines
1015 B
C#
40 lines
1015 B
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 RecipeBindingModel : IRecipeModel
|
|
{
|
|
/// <summary>
|
|
/// Идентификатор
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Дата выписки рецепта
|
|
/// </summary>
|
|
public DateTime IssueDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// Идентификатор доктора
|
|
/// </summary>
|
|
public int DoctorId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Список лекарств в рецепте
|
|
/// </summary>
|
|
public Dictionary<int, IMedicineModel> RecipeMedicines
|
|
{
|
|
get;
|
|
set;
|
|
} = new();
|
|
}
|
|
}
|