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

39 lines
1.3 KiB
C#
Raw Normal View History

2023-10-19 21:28:09 +03:30
namespace DocuMed.Domain.Entities.MedicalHistoryTemplate;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
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; }
}