12345678910111213141516171819202122232425 |
- using System;
- using System.Collections.Generic;
-
- namespace Rdh.ElectronicMedicineKit.Models
- {
- public class Operation : RootEntity
- {
- public string Name { get; set; }
- public string Department { get; set; }
-
- public virtual Patient Patient { get; set; }
- public Guid PatientId { get; set; }
-
- public virtual User Doctor { get; set; }
- public Guid? DoctorId { get; set; }
-
- public OperationStates State { get; set; } = OperationStates.Normal;
-
- public virtual List<OperationDrug> Drugs { get; set; } = new List<OperationDrug>();
- public override string ToString()
- {
- return $"#{Id}|{Patient.Name}|{Patient.PatientNo}|{Patient.Gender}|{Patient.Age}Ëê|{Department}|{Name}";
- }
- }
- }
|