2023-10-19 21:28:09 +03:30
|
|
|
|
namespace DocuMed.Domain.Entities.MedicalHistoryTemplate;
|
|
|
|
|
|
|
|
|
|
|
|
[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]
|
|
|
|
|
|
public partial class MedicalHistoryTemplate : ApiEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
public MedicalHistoryTemplate()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2023-10-24 10:43:48 +03:30
|
|
|
|
public MedicalHistoryTemplate(string chiefComplaint,Guid sectionId,Guid applicationUserId)
|
2023-10-19 21:28:09 +03:30
|
|
|
|
{
|
|
|
|
|
|
ChiefComplaint = chiefComplaint;
|
2023-10-24 10:43:48 +03:30
|
|
|
|
SectionId = sectionId;
|
|
|
|
|
|
ApplicationUserId = applicationUserId;
|
2023-10-19 21:28:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ChiefComplaint { get; internal set; } = string.Empty;
|
2023-10-22 15:51:11 +03:30
|
|
|
|
public Guid SectionId { get; set; }
|
2023-10-24 12:45:25 +03:30
|
|
|
|
public Section? Section { get; set; }
|
2023-10-24 10:43:48 +03:30
|
|
|
|
public Guid ApplicationUserId { get; internal set; }
|
|
|
|
|
|
public ApplicationUser? ApplicationUser { get; set; }
|
2023-10-19 21:28:09 +03:30
|
|
|
|
public List<MedicalHistoryQuestion> Questions { get; internal set; } = new();
|
|
|
|
|
|
}
|