diff --git a/Hospital/HospitalContracts/HospitalContracts.csproj b/Hospital/HospitalContracts/HospitalContracts.csproj
index 27ac386..21cb129 100644
--- a/Hospital/HospitalContracts/HospitalContracts.csproj
+++ b/Hospital/HospitalContracts/HospitalContracts.csproj
@@ -6,4 +6,8 @@
enable
+
+
+
+
diff --git a/Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs b/Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs
index d1bdf2e..d895a23 100644
--- a/Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs
+++ b/Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
- internal class DoctorViewModel
+ public class DoctorViewModel
{
public int Id { get; set; }
diff --git a/Hospital/HospitalContracts/ViewModels/PatientViewModel.cs b/Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
new file mode 100644
index 0000000..4e8db23
--- /dev/null
+++ b/Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
@@ -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 PatientProcedures { get; set; } = new();
+
+ public Dictionary PatientRecipes { get; set; } = new();
+
+ }
+}
diff --git a/Hospital/HospitalDataModels/Models/IMedicineModel.cs b/Hospital/HospitalDataModels/Models/IMedicineModel.cs
index 7378e05..4bd9786 100644
--- a/Hospital/HospitalDataModels/Models/IMedicineModel.cs
+++ b/Hospital/HospitalDataModels/Models/IMedicineModel.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
- internal interface IMedicineModel : IId
+ public interface IMedicineModel : IId
{
}
}
diff --git a/Hospital/HospitalDataModels/Models/IPatientModel.cs b/Hospital/HospitalDataModels/Models/IPatientModel.cs
index db6de9f..e9fecb2 100644
--- a/Hospital/HospitalDataModels/Models/IPatientModel.cs
+++ b/Hospital/HospitalDataModels/Models/IPatientModel.cs
@@ -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; }
diff --git a/Hospital/HospitalDataModels/Models/IProcedureModel.cs b/Hospital/HospitalDataModels/Models/IProcedureModel.cs
index 1fe5dcd..9df8da9 100644
--- a/Hospital/HospitalDataModels/Models/IProcedureModel.cs
+++ b/Hospital/HospitalDataModels/Models/IProcedureModel.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
- internal interface IProcedureModel : IId
+ public interface IProcedureModel : IId
{
}
}
diff --git a/Hospital/HospitalDataModels/Models/IRecipeModel.cs b/Hospital/HospitalDataModels/Models/IRecipeModel.cs
index 16ac068..fbffe3b 100644
--- a/Hospital/HospitalDataModels/Models/IRecipeModel.cs
+++ b/Hospital/HospitalDataModels/Models/IRecipeModel.cs
@@ -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; }