40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Service_Server.Models
|
|
{
|
|
[DataContract]
|
|
public class Exam
|
|
{
|
|
private int _ExamId;
|
|
private DateTime _Date;
|
|
private Doctor _Doctor;
|
|
private Person _Patient;
|
|
private Result _Result;
|
|
|
|
[DataMember]
|
|
public int ExamId { get => _ExamId; set => _ExamId = value; }
|
|
[DataMember]
|
|
public DateTime Date { get => _Date; set => _Date = value; }
|
|
[DataMember]
|
|
public virtual Doctor Doctor { get => _Doctor; set => _Doctor = value; }
|
|
[DataMember]
|
|
public virtual Person Patient { get => _Patient; set => _Patient = value; }
|
|
[DataMember]
|
|
public virtual Result Result { get => _Result; set => _Result = value; }
|
|
|
|
public Exam() { }
|
|
public Exam(Doctor doctor, Person patient, Result result)
|
|
{
|
|
this.Date = DateTime.Now;
|
|
this.Doctor = doctor;
|
|
this.Patient = patient;
|
|
this.Result = result;
|
|
}
|
|
}
|
|
}
|