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

91 lines
3.8 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]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
2024-09-28 12:34:36 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
2023-10-19 21:28:09 +03:30
[GenerateMapper]
2024-09-28 12:34:36 +03:30
2023-10-19 21:28:09 +03:30
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,
double systolicBloodPressure,
double diastolicBloodPressure,
double pulseRate,
double spo2,
double temperature,
string code,
Guid studentId,
Guid patientId,
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
SystolicBloodPressure = systolicBloodPressure;
DiastolicBloodPressure = diastolicBloodPressure;
PulseRate = pulseRate;
SPO2 = spo2;
Temperature = temperature;
Code = code;
StudentId = studentId;
PatientId = patientId;
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 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 string Code { 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 StudentId { get; internal set; }
public Student? Student { get; internal set; }
public Guid PatientId { get; internal set; }
public Patient? Patient { get; internal set; }
2023-10-19 21:28:09 +03:30
public List<MedicalHistoryAnswer> Answers { get; internal set; } = new();
}