mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-08-16 18:02:40 +02:00
![Marcel Grześ](/assets/img/avatar_default.png)
- 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
35 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|