представление пациента

This commit is contained in:
ValAn 2024-04-12 23:47:48 +04:00
parent fa0258b99c
commit a071f504d2
7 changed files with 40 additions and 5 deletions

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\HospitalDataModels\HospitalDataModels.csproj" />
</ItemGroup>
</Project>

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
internal class DoctorViewModel
public class DoctorViewModel
{
public int Id { get; set; }

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalDataModels.Models;
namespace HospitalContracts.ViewModels
{
public class PatientViewModel
{
public int Id { get; set; }
[DisplayName("ФИО")]
string FIO { get; }
[DisplayName("Дата рождения")]
DateOnly BirthDate { get; }
[DisplayName("Адрес")]
string Adress { get; }
public int DoctorId { get; set; }
public Dictionary<int, IProcedureModel> PatientProcedures { get; set; } = new();
public Dictionary<int, IRecipeModel> PatientRecipes { get; set; } = new();
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IMedicineModel : IId
public interface IMedicineModel : IId
{
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IPatientModel : IId
public interface IPatientModel : IId
{
string FIO { get; }
DateOnly BirthDate { get; }

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IProcedureModel : IId
public interface IProcedureModel : IId
{
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IRecipeModel : IId
public interface IRecipeModel : IId
{
string Description { get; }
DateTime IssueDate { get; }