Api-PWA/DocuMed.Domain/Entities/MedicalHistoryTemplate/MedicalHistoryQuestion.cs

42 lines
1.6 KiB
C#
Raw Permalink Normal View History

2023-10-19 21:28:09 +03:30
namespace DocuMed.Domain.Entities.MedicalHistoryTemplate;
2024-09-28 12:34:36 +03:30
[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)]
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 MedicalHistoryQuestion : ApiEntity
{
public MedicalHistoryQuestion()
{
}
public MedicalHistoryQuestion(
string question,
MedicalHistoryPart part,
MedicalHistoryQuestionType questionType,
2023-10-28 23:57:28 +03:30
Guid medicalHistoryTemplateId,
BodySystem bodySystem,
bool isSign,
bool isSymptom)
2023-10-19 21:28:09 +03:30
{
Question = question;
Part = part;
QuestionType = questionType;
MedicalHistoryTemplateId = medicalHistoryTemplateId;
2023-10-28 23:57:28 +03:30
BodySystem = bodySystem;
IsSign = isSign;
IsSymptom = isSymptom;
2023-10-19 21:28:09 +03:30
}
public string Question { get; internal set; } = string.Empty;
public MedicalHistoryPart Part { get; internal set; }
public MedicalHistoryQuestionType QuestionType { get; internal set; }
2023-10-28 23:57:28 +03:30
public BodySystem BodySystem { get; internal set; }
public bool IsSign { get; internal set; }
public bool IsSymptom { get; internal set; }
2023-10-19 21:28:09 +03:30
public Guid MedicalHistoryTemplateId { get; internal set; }
public MedicalHistoryTemplate? MedicalHistoryTemplate { get; internal set; }
}