using Section = DocuMed.Domain.Entities.Hospitals.Section;

namespace DocuMed.Domain.Entities.Patients;

[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
public partial class Patient : ApiEntity
{
    public Patient()
    {
        
    }

    public Patient(string unitNumber, string room, string bed, DateTime admissionAt, Guid sectionId, Guid userId)
    {
        UnitNumber = unitNumber;
        Room = room;
        Bed = bed;
        AdmissionAt = admissionAt;
        SectionId = sectionId;
        UserId = userId;
    }
    public string UnitNumber { get; internal set; } = string.Empty;
    public string Room { get; internal set; } = string.Empty;
    public string Bed { get; internal set; } = string.Empty;
    public DateTime AdmissionAt { get; internal set; }

    public Guid SectionId { get; internal set; }
    public Section? Section { get; internal set; }

    public Guid UserId { get; internal set; }
    public ApplicationUser? User { get; internal set; }
}