91 lines
3.8 KiB
C#
91 lines
3.8 KiB
C#
namespace DocuMed.Domain.Entities.MedicalHistory;
|
|
|
|
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
|
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
|
|
[AdaptTo("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
|
|
[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,
|
|
string chiefComplaint,
|
|
Guid sectionId,
|
|
double systolicBloodPressure,
|
|
double diastolicBloodPressure,
|
|
double pulseRate,
|
|
double spo2,
|
|
double temperature,
|
|
string code,
|
|
Guid studentId,
|
|
Guid patientId,
|
|
Guid medicalHistoryTemplateId)
|
|
{
|
|
PresentIllnessDetail = presentIllnessDetail;
|
|
PastDiseasesHistoryDetail = pastDiseasesHistoryDetail;
|
|
PastSurgeryHistoryDetail = pastSurgeryHistoryDetail;
|
|
FamilyHistoryDetail = familyHistoryDetail;
|
|
AllergyDetail = allergyDetail;
|
|
DrugHistoryDetail = drugHistoryDetail;
|
|
AddictionHistoryDetail = addictionHistoryDetail;
|
|
SystemReviewDetail = systemReviewDetail;
|
|
VitalSignDetail = vitalSignDetail;
|
|
GeneralAppearanceDetail = generalAppearanceDetail;
|
|
ChiefComplaint = chiefComplaint;
|
|
SectionId = sectionId;
|
|
SystolicBloodPressure = systolicBloodPressure;
|
|
DiastolicBloodPressure = diastolicBloodPressure;
|
|
PulseRate = pulseRate;
|
|
SPO2 = spo2;
|
|
Temperature = temperature;
|
|
Code = code;
|
|
StudentId = studentId;
|
|
PatientId = patientId;
|
|
MedicalHistoryTemplateId = medicalHistoryTemplateId;
|
|
}
|
|
public string ChiefComplaint { get; internal set; } = string.Empty;
|
|
public Guid SectionId { get; internal set; }
|
|
public Section? Section { 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;
|
|
|
|
public string Code { get; internal set; } = string.Empty;
|
|
|
|
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; }
|
|
|
|
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; }
|
|
|
|
public List<MedicalHistoryAnswer> Answers { get; internal set; } = new();
|
|
} |