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

26 lines
1.1 KiB
C#
Raw Permalink Normal View History

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()
{
}
public MedicalHistoryTemplate(string chiefComplaint,Guid sectionId,Guid studentId)
2023-10-19 21:28:09 +03:30
{
ChiefComplaint = chiefComplaint;
SectionId = sectionId;
StudentId = studentId;
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; }
public Guid StudentId { get; internal set; }
public Student? Student { get; set; }
2023-10-19 21:28:09 +03:30
public List<MedicalHistoryQuestion> Questions { get; internal set; } = new();
}