40 lines
1.1 KiB
40 lines
1.1 KiB
using CoviDok.Api.Objects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CoviDok.Data.Model
|
|
{
|
|
public class Child : User
|
|
{
|
|
public int DoctorId { get; set; }
|
|
public int ParentId { get; set; }
|
|
//public ICollection<Case> MedicalHistory { get; set; } = new List<Case>();
|
|
public string SSN { get; set; }
|
|
|
|
public PublicChild ToPublic()
|
|
{
|
|
return new PublicChild
|
|
{
|
|
FirstName = FirstName,
|
|
LastName = LastName,
|
|
DoctorId = DoctorId,
|
|
ParentId = ParentId,
|
|
SSN = SSN,
|
|
BirthDate = BirthDate,
|
|
PictureId = PictureId
|
|
};
|
|
}
|
|
public void UpdateSelf(PublicChild newVal)
|
|
{
|
|
FirstName = newVal.FirstName;
|
|
LastName = newVal.LastName;
|
|
DoctorId = newVal.DoctorId;
|
|
ParentId = newVal.ParentId;
|
|
SSN = newVal.SSN;
|
|
BirthDate = newVal.BirthDate;
|
|
PictureId = newVal.PictureId;
|
|
}
|
|
}
|
|
}
|
|
|