представление пациента
This commit is contained in:
parent
fa0258b99c
commit
a071f504d2
@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\HospitalDataModels\HospitalDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalContracts.ViewModels
|
||||
{
|
||||
internal class DoctorViewModel
|
||||
public class DoctorViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
31
Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
Normal file
31
Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IMedicineModel : IId
|
||||
public interface IMedicineModel : IId
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IProcedureModel : IId
|
||||
public interface IProcedureModel : IId
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user