2018-11-18 18:49:40 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HospitalServerManager.Model.Basic
|
|
|
|
|
{
|
2018-12-22 15:52:17 +01:00
|
|
|
|
class Admission : SqlTable
|
2018-11-18 18:49:40 +01:00
|
|
|
|
{
|
2018-12-22 15:52:17 +01:00
|
|
|
|
public DateTime AdmissionDate { get; protected set; }
|
|
|
|
|
public DateTime LeavingDate { get; protected set; }
|
|
|
|
|
public string PatientPESEL { get; protected set; }
|
|
|
|
|
public string DiagnosisSymbol { get; protected set; }
|
|
|
|
|
public int MainDoctor { get; protected set; }
|
|
|
|
|
public int? OperationID { get; protected set; }
|
|
|
|
|
public int RoomNumber { get; protected set; }
|
|
|
|
|
public bool IsPlanned { get; protected set; }
|
|
|
|
|
|
|
|
|
|
protected Admission() : base() { }
|
|
|
|
|
public Admission(List<string> listOfValues)
|
|
|
|
|
: base(listOfValues[0], "Id_przyjecia", new List<string>())
|
|
|
|
|
{
|
|
|
|
|
AdmissionDate = DateTime.Parse(listOfValues[1]);
|
|
|
|
|
LeavingDate = DateTime.Parse(listOfValues[2]);
|
|
|
|
|
PatientPESEL = listOfValues[3];
|
|
|
|
|
DiagnosisSymbol = listOfValues[4];
|
|
|
|
|
MainDoctor = int.Parse(listOfValues[5]);
|
|
|
|
|
OperationID = int.Parse(listOfValues[6]);
|
|
|
|
|
RoomNumber = int.Parse(listOfValues[7]);
|
|
|
|
|
IsPlanned = bool.Parse(listOfValues[8]);
|
|
|
|
|
}
|
2018-11-18 18:49:40 +01:00
|
|
|
|
}
|
|
|
|
|
}
|