Commit 1bf64e2a authored by Almouhannad's avatar Almouhannad

(B) Add medical related entities

parent 75e9514b
using Domain.Entities.People.Patients.Relations.PatientDiseases;
using Domain.Primitives;
namespace Domain.Entities.Medicals.Diseases;
public sealed class Disease(int id) : Entity(id)
{
#region Properties
public string Name { get; set; } = null!;
#region Navigations
public ICollection<PatientDisease> Patients { get; set; } = [];
#endregion
#endregion
}
using Domain.Primitives;
namespace Domain.Entities.Medicals.Hospitals;
public sealed class Hospital(int id) : Entity(id)
{
#region Properties
public string Name { get; set; } = null!;
#endregion
}
using Domain.Primitives;
namespace Domain.Entities.Medicals.MedicalImages;
public sealed class MedicalImage(int id) : Entity(id)
{
#region Properties
public string Name { get; set; } = null!;
public string? Description { get; set; }
#endregion
}
using Domain.Primitives;
namespace Domain.Entities.Medicals.MedicalTests;
public sealed class MedicalTest(int id) : Entity(id)
{
#region Properties
public string Name { get; set; } = null!;
public string? Description { get; set; }
#endregion
}
using Domain.Entities.Medicals.Medicines.MedicineFormValues;
using Domain.Entities.People.Patients.Relations.PatientMedicines;
using Domain.Primitives;
namespace Domain.Entities.Medicals.Medicines;
// TODO: Convert Dosage to value object
public sealed class Medicine(int id) : Entity(id)
{
#region Properties
public MedicineForm MedicineForm { get; set; } = null!;
public string Name { get; set; } = null!;
public decimal Dosage { get; set; }
#region Navigations
public ICollection<PatientMedicine> Patients { get; set; } = [];
#endregion
#endregion
}
using Domain.Primitives;
namespace Domain.Entities.Medicals.Medicines.MedicineFormValues;
public sealed class MedicineForm(int id) : Entity(id)
{
#region Properties
public string Name { get; set; } = null!;
#endregion
}
namespace Domain.Entities.Medicals.Medicines.MedicineFormValues;
public static class MedicineForms
{
#region Constant id values
public static int Tablet => 1;
public static int Syrup => 2;
#endregion
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment