40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
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 hospitalId,
|
|
Guid userId)
|
|
{
|
|
UnitNumber = unitNumber;
|
|
Room = room;
|
|
Bed = bed;
|
|
AdmissionAt = admissionAt;
|
|
SectionId = sectionId;
|
|
HospitalId = hospitalId;
|
|
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 HospitalId { get; internal set; }
|
|
|
|
public Guid UserId { get; internal set; }
|
|
public ApplicationUser? User { get; internal set; }
|
|
} |