using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Hims.Domain.Entities
{
    public class OTRegister
    {
        /// <summary>
        /// Gets or sets the scan machine availability id.
        /// </summary>
        [Key, Identity]
        /// <summary>
        /// Gets or sets the OTRegisterId.
        /// </summary>
        public int OTRegisterId { get; set; }

        /// <summary>
        /// Gets or sets the PatientId.
        /// </summary>
        public int PatientId { get; set; }

        /// <summary>
        /// Gets or sets the SurgeriesId.
        /// </summary>
        public int SurgeryId { get; set; }

        /// <summary>
        /// Gets or sets the ProviderId.
        /// </summary>
        public int? ProviderId { get; set; }

        /// <summary>
        /// Gets or sets the AssitantId.
        /// </summary>
        public int? AssitantId { get; set; }

        /// <summary>
        /// Gets or sets the AnaesthistId.
        /// </summary>
        public int? AnaesthetistId { get; set; }
        /// <summary>
        /// Gets or sets the AnaesthistId.
        /// </summary>
        public int? AnaesthesiaTypeId { get; set; }
        /// <summary>
        /// Gets or sets the NurseId.
        /// </summary>
        public int? NurseId { get; set; }

        /// <summary>
        /// Gets or sets the SurgeryTypeId.
        /// </summary>
        public int? SurgeryTypeId { get; set; }
        public string? Diagnosis { get; set; }
        /// <summary>
        /// Gets or sets the to Remarks.
        /// </summary>
        public string? Remarks { get; set; }
        /// <summary>
        /// Gets or sets the to OREntryDate.
        /// </summary>
        public DateTime OREntryDate { get; set; }
        /// <summary>
        /// Gets or sets the to SignInDate.
        /// </summary>
        public DateTime SignInDate { get; set; }

        /// <summary>
        /// Gets or sets the SignOutDate.
        /// </summary>
        public DateTime SignOutDate { get; set; }
        /// <summary>
        /// Gets or sets the from ShiftWardToDate.
        /// </summary>
        public DateTime ShiftWardToDate { get; set; }        
        ///// <summary>
        ///// Gets or sets the CaseType.
        ///// </summary>
        //public int? CaseTypeId { get; set; }
        /// <summary>
        /// Gets or sets the modified by.
        /// </summary>
        public int? ModifiedBy { get; set; }
        /// <summary>
        /// Gets or sets the modified date.
        /// </summary>
        public DateTime? ModifiedDate { get; set; }

        // <summary>
        // Gets or sets the created by name.
        // </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// Gets or sets a value indicating whether active.
        /// </summary>
        public bool Active { get; set; }

        /// <summary>
        /// Gets or sets the created by.
        /// </summary>
        [IgnoreUpdate]
        public int CreatedBy { get; set; }

        /// <summary>
        /// Gets or sets the created date.
        /// </summary>
        [IgnoreUpdate]
        public DateTime CreatedDate { get; set; }
        /// <summary>
        /// Gets or sets the AnaesthesiaType.
        /// </summary>     
        public int OTRoomId { get; set; }
        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        public string Status { get; set; } = "B";
        /// <summary>
        /// Gets or sets the reason.
        /// </summary>
        public string Reason { get; set; }
        
        /// <summary>
        /// Gets or sets the old appointment date.
        /// </summary>
        public DateTime? OldAppointmentDate { get; set; }
    }
}
