2023-10-19 21:28:09 +03:30
|
|
|
|
namespace DocuMed.Domain.Entities.MedicalHistoryTemplate;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class MedicalHistoryQuestion
|
|
|
|
|
|
{
|
|
|
|
|
|
public static MedicalHistoryQuestion Create(
|
|
|
|
|
|
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
|
|
|
|
{
|
2023-10-28 23:57:28 +03:30
|
|
|
|
return new MedicalHistoryQuestion(question, part, questionType, medicalHistoryTemplateId, bodySystem, isSign, isSymptom);
|
2023-10-19 21:28:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public partial class MedicalHistoryTemplate
|
|
|
|
|
|
{
|
|
|
|
|
|
public MedicalHistoryQuestion AddQuestion(
|
|
|
|
|
|
string question,
|
|
|
|
|
|
MedicalHistoryPart part,
|
2023-10-28 23:57:28 +03:30
|
|
|
|
MedicalHistoryQuestionType questionType,
|
|
|
|
|
|
BodySystem bodySystem,
|
|
|
|
|
|
bool isSign,
|
|
|
|
|
|
bool isSymptom)
|
2023-10-19 21:28:09 +03:30
|
|
|
|
{
|
2023-10-28 23:57:28 +03:30
|
|
|
|
var mhQuestion = MedicalHistoryQuestion.Create(question, part, questionType, Id,bodySystem,isSign,isSymptom);
|
2023-10-19 21:28:09 +03:30
|
|
|
|
Questions.Add(mhQuestion);
|
|
|
|
|
|
return mhQuestion;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-28 23:57:28 +03:30
|
|
|
|
public static MedicalHistoryTemplate Create(string chiefComplaint, Guid sectionId, Guid applicationUserId)
|
2023-10-19 21:28:09 +03:30
|
|
|
|
{
|
2023-10-24 10:43:48 +03:30
|
|
|
|
return new MedicalHistoryTemplate(chiefComplaint, sectionId, applicationUserId);
|
2023-10-19 21:28:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
}
|