Добавил модели данных
This commit is contained in:
parent
03c3d1ffc5
commit
2440753f26
7
Medical/MedicalDatabaseContracts/AbstractModel.cs
Normal file
7
Medical/MedicalDatabaseContracts/AbstractModel.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace MedicalDatabaseContracts
|
||||||
|
{
|
||||||
|
public class AbstractModel
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
}
|
||||||
|
}
|
10
Medical/MedicalDatabaseContracts/AbstractPersonModel.cs
Normal file
10
Medical/MedicalDatabaseContracts/AbstractPersonModel.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace MedicalDatabaseContracts
|
||||||
|
{
|
||||||
|
public class AbstractPersonModel : AbstractModel
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
public string Surname { get; set; } = string.Empty;
|
||||||
|
public string? Patronymic { get; set; }
|
||||||
|
public string PhoneNumber { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
7
Medical/MedicalDatabaseContracts/Models/Diagnose.cs
Normal file
7
Medical/MedicalDatabaseContracts/Models/Diagnose.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace MedicalDatabaseContracts.Models
|
||||||
|
{
|
||||||
|
public class Diagnose : AbstractModel
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
7
Medical/MedicalDatabaseContracts/Models/Doctor.cs
Normal file
7
Medical/MedicalDatabaseContracts/Models/Doctor.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace MedicalDatabaseContracts.Models
|
||||||
|
{
|
||||||
|
public class Doctor : AbstractPersonModel
|
||||||
|
{
|
||||||
|
public int SpecializationId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
10
Medical/MedicalDatabaseContracts/Models/Patient.cs
Normal file
10
Medical/MedicalDatabaseContracts/Models/Patient.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace MedicalDatabaseContracts.Models
|
||||||
|
{
|
||||||
|
public class Patient : AbstractPersonModel
|
||||||
|
{
|
||||||
|
public char Gender { get; set; }
|
||||||
|
public DateOnly Birthday { get; set; }
|
||||||
|
public int Weight { get; set; }
|
||||||
|
public int Height { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace MedicalDatabaseContracts.Models
|
||||||
|
{
|
||||||
|
public class Specialization : AbstractModel
|
||||||
|
{
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
public bool IsPediatric { get; set; }
|
||||||
|
public bool IsTherapeutic { get; set; }
|
||||||
|
}
|
||||||
|
}
|
10
Medical/MedicalDatabaseContracts/Models/Visit.cs
Normal file
10
Medical/MedicalDatabaseContracts/Models/Visit.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace MedicalDatabaseContracts.Models
|
||||||
|
{
|
||||||
|
public class Visit : AbstractModel
|
||||||
|
{
|
||||||
|
public int PatientId { get; set; }
|
||||||
|
public int DoctorId { get; set; }
|
||||||
|
public int DiagnoseId { get; set; }
|
||||||
|
public string? Comment { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user