1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-07-27 12:50:30 +02:00
admissionManager/Model/Basic/Diagnosis.cs
Marcel Grześ 0806b25c79 Basic funcionality was completed.
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed;
- All ViewModel and Models was completed;
- WebService, ApiComandProvider has full funcionality,
- New interface has been created;
- Application is working now :) it's time to refractoring and testing
2019-01-07 19:49:48 +01:00

35 lines
1.0 KiB
C#

using HospitalServerManager.InterfacesAndEnums;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Diagnosis : SqlTable
{
public string Name { get; protected set; }
public SurgeryField FieldOfSurgery { get; protected set; }
public string Description { get; protected set; }
protected Diagnosis() : base() {}
public Diagnosis(List<string> listOfValues)
: base(listOfValues[0], "Symbol_ICD", new List<string>())
{
Name = listOfValues[1];
FieldOfSurgery = listOfValues[2].GetEnumFromDescription<SurgeryField>();
Description = listOfValues[3];
}
[JsonConstructor]
protected Diagnosis(string icdSymbol, string name, string fieldOfSurgery, string description)
: base(icdSymbol, "Symbol_ICD", new List<string>())
{
Name = name;
FieldOfSurgery = fieldOfSurgery.GetEnumFromDescription<SurgeryField>();
Description = description;
}
}
}