Api-PWA/DocuMed.Domain/Entities/MedicalHistory/MedicalHistory.cs

100 lines
4.2 KiB
C#
Raw Normal View History

2023-10-19 21:28:09 +03:30
namespace DocuMed.Domain.Entities.MedicalHistory;
2023-10-20 19:40:23 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
2023-10-19 21:28:09 +03:30
[GenerateMapper]
public partial class MedicalHistory : ApiEntity
{
public MedicalHistory()
{
}
public MedicalHistory(
string presentIllnessDetail,
string pastDiseasesHistoryDetail,
string pastSurgeryHistoryDetail,
string familyHistoryDetail,
string allergyDetail,
string drugHistoryDetail,
string addictionHistoryDetail,
string systemReviewDetail,
string vitalSignDetail,
string generalAppearanceDetail,
2023-10-19 21:28:09 +03:30
string chiefComplaint,
2023-10-28 23:57:28 +03:30
Guid sectionId,
2023-10-19 21:28:09 +03:30
string firstName,
string lastName,
string fatherName,
string nationalId,
int age,
DateTime birthDate,
double systolicBloodPressure,
double diastolicBloodPressure,
double pulseRate,
double spo2,
double temperature,
Guid applicationUserId,
Guid medicalHistoryTemplateId)
2023-10-19 21:28:09 +03:30
{
PresentIllnessDetail = presentIllnessDetail;
PastDiseasesHistoryDetail = pastDiseasesHistoryDetail;
PastSurgeryHistoryDetail = pastSurgeryHistoryDetail;
FamilyHistoryDetail = familyHistoryDetail;
AllergyDetail = allergyDetail;
DrugHistoryDetail = drugHistoryDetail;
AddictionHistoryDetail = addictionHistoryDetail;
SystemReviewDetail = systemReviewDetail;
VitalSignDetail = vitalSignDetail;
GeneralAppearanceDetail = generalAppearanceDetail;
2023-10-19 21:28:09 +03:30
ChiefComplaint = chiefComplaint;
2023-10-28 23:57:28 +03:30
SectionId = sectionId;
2023-10-19 21:28:09 +03:30
FirstName = firstName;
LastName = lastName;
FatherName = fatherName;
NationalId = nationalId;
Age = age;
BirthDate = birthDate;
SystolicBloodPressure = systolicBloodPressure;
DiastolicBloodPressure = diastolicBloodPressure;
PulseRate = pulseRate;
SPO2 = spo2;
Temperature = temperature;
ApplicationUserId = applicationUserId;
MedicalHistoryTemplateId = medicalHistoryTemplateId;
2023-10-19 21:28:09 +03:30
}
public string ChiefComplaint { get; internal set; } = string.Empty;
2023-10-28 23:57:28 +03:30
public Guid SectionId { get; internal set; }
public Section? Section { get; internal set; }
2023-10-19 21:28:09 +03:30
public string FirstName { get; internal set; } = string.Empty;
public string LastName { get; internal set; } = string.Empty;
public string FatherName { get; internal set; } = string.Empty;
public string NationalId { get; internal set; } = string.Empty;
public int Age { get; internal set; }
public DateTime BirthDate { get; internal set; }
public string PresentIllnessDetail { get; internal set; } = string.Empty;
public string PastDiseasesHistoryDetail { get; internal set; } = string.Empty;
public string PastSurgeryHistoryDetail { get; internal set; } = string.Empty;
public string FamilyHistoryDetail { get; internal set; } = string.Empty;
public string AllergyDetail { get; internal set; } = string.Empty;
public string DrugHistoryDetail { get; internal set; } = string.Empty;
public string AddictionHistoryDetail { get; internal set; } = string.Empty;
public string SystemReviewDetail { get; internal set; } = string.Empty;
public string VitalSignDetail { get; internal set; } = string.Empty;
public string GeneralAppearanceDetail { get; internal set; } = string.Empty;
2023-10-19 21:28:09 +03:30
public double SystolicBloodPressure { get; internal set; }
public double DiastolicBloodPressure { get; internal set; }
public double PulseRate { get; internal set; }
public double SPO2 { get; internal set; }
public double Temperature { get; internal set; }
2023-10-19 21:28:09 +03:30
public Guid MedicalHistoryTemplateId { get; internal set; }
public Guid ApplicationUserId { get; internal set; }
public ApplicationUser? ApplicationUser { get; internal set; }
2023-10-19 21:28:09 +03:30
public List<MedicalHistoryAnswer> Answers { get; internal set; } = new();
}