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

26 lines
1.1 KiB
C#

namespace DocuMed.Domain.Entities.MedicalHistoryTemplate;
[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 MedicalHistoryTemplate : ApiEntity
{
public MedicalHistoryTemplate()
{
}
public MedicalHistoryTemplate(string chiefComplaint,Guid sectionId,Guid studentId)
{
ChiefComplaint = chiefComplaint;
SectionId = sectionId;
StudentId = studentId;
}
public string ChiefComplaint { get; internal set; } = string.Empty;
public Guid SectionId { get; set; }
public Section? Section { get; set; }
public Guid StudentId { get; internal set; }
public Student? Student { get; set; }
public List<MedicalHistoryQuestion> Questions { get; internal set; } = new();
}