Commit 7875c98c authored by Sandeep Sagar Panjala's avatar Sandeep Sagar Panjala

initial commit

parent 61f73652
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Configurations.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Configurations.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.TaskRunnerExplorer.14.0" Version="14.0.0" />
<PackageReference Include="TaskRunner" Version="1.0.0" />
<PackageReference Include="Webpack" Version="4.0.0" />
</ItemGroup>
</Project>
namespace Hims.Domain.Configurations
{
/// <summary>
/// The AmazonS3Configuration interface.
/// </summary>
public interface IAmazonS3Configuration
{
/// <summary>
/// Gets the bucket url.
/// </summary>
string BucketURL { get; }
/// <summary>
/// Gets the bucket name.
/// </summary>
string BucketName { get; }
/// <summary>
/// Gets the region.
/// </summary>
string Region { get; }
/// <summary>
/// Gets the secret key.
/// </summary>
string SecretKey { get; }
/// <summary>
/// Gets the access key.
/// </summary>
string AccessKey { get; }
}
}
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Application Configuration.
/// </summary>
public interface IApplicationConfiguration
{
/// <summary>
/// Gets the version.
/// </summary>
string Version { get; }
/// <summary>
/// Gets a value indicating whether maintenance.
/// </summary>
bool Maintenance { get; }
/// <summary>
/// Gets the payment link.
/// </summary>
string PaymentLink { get; }
/// <summary>
/// Gets the create password link.
/// </summary>
string CreatePasswordLink { get; }
/// <summary>
/// Gets the reset password link.
/// </summary>
string ResetPasswordLink { get; }
/// <summary>
/// Gets the base url.
/// </summary>
string BaseUrl { get; }
/// <summary>
/// Gets the API link.
/// </summary>
string APILink { get; }
/// <summary>
/// Gets the IOS app url.
/// </summary>
string IOSAppLink { get; }
/// <summary>
/// Gets the Android app url.
/// </summary>
string AndroidAppLink { get; }
/// <summary>
/// Gets the website url.
/// </summary>
string WebsiteLink { get; }
/// <summary>
/// Gets the provider portal url.
/// </summary>
string ProviderPortalLink { get; }
/// <summary>
/// Gets the provider portal url.
/// </summary>
string AdminPortalLink { get; }
/// <summary>
/// Gets the mail templates images url.
/// </summary>
string MailTemplatesImagesLink { get; }
/// <summary>
/// Gets the default email.
/// </summary>
string DefaultEmail { get; }
/// <summary>
/// Gets the email.
/// </summary>
string Email { get; }
/// <summary>
/// Gets the default mobile.
/// </summary>
string DefaultMobile { get; }
/// <summary>
/// Gets the default allow SMS Sending.
/// </summary>
bool AllowSMSSending { get; }
/// <summary>
/// Gets the default allow video call.
/// </summary>
bool AllowVideoCall { get; }
/// <summary>
/// Gets the front end link.
/// </summary>
string FrontEndLink { get; }
/// <summary>
/// Gets the tiny URL link.
/// </summary>
/// <value>
/// The tiny URL link.
/// </value>
string TinyUrlLink { get; }
/// <summary>
/// Gets the tiny URL authentication token.
/// </summary>
/// <value>
/// The tiny URL authentication token.
/// </value>
string TinyUrlAuthToken { get; }
/// <summary>
/// Gets the firebase database.
/// </summary>
/// <value>
/// The firebase database.
/// </value>
string FirebaseDatabase { get; }
/// <summary>
/// Gets the firebase authentication key.
/// </summary>
/// <value>
/// The firebase authentication key.
/// </value>
string FirebaseAuthKey { get; }
/// <summary>
/// Gets the salucro payment link.
/// </summary>
string SalucroPaymentLink { get; }
/// <summary>
/// Gets the salucro patient payment link.
/// </summary>
string SalucroPatientPaymentLink { get; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Email Configuration.
/// </summary>
public interface IEmailConfiguration
{
/// <summary>
/// Gets the smtp server.
/// </summary>
string Server { get; }
/// <summary>
/// Gets the smtp port.
/// </summary>
int Port { get; }
/// <summary>
/// Gets the smtp username.
/// </summary>
string Username { get; }
/// <summary>
/// Gets the smtp password.
/// </summary>
string Password { get; }
/// <summary>
/// Gets or sets the sender name.
/// </summary>
string SenderName { get; set; }
/// <summary>
/// Gets or sets the from name.
/// </summary>
string FromName { get; set; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Email Configuration.
/// </summary>
public interface IEmailConfigurationLanding
{
/// <summary>
/// Gets the smtp server.
/// </summary>
string Server { get; }
/// <summary>
/// Gets the smtp port.
/// </summary>
int Port { get; }
/// <summary>
/// Gets the smtp username.
/// </summary>
string Username { get; }
/// <summary>
/// Gets the smtp password.
/// </summary>
string Password { get; }
/// <summary>
/// Gets or sets the sender name.
/// </summary>
string SenderName { get; set; }
/// <summary>
/// Gets or sets the from name.
/// </summary>
string FromName { get; set; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Sinch OTP Configuration.
/// </summary>
public interface IFCMConfiguration
{
/// <summary>
/// Gets the url.
/// </summary>
string URL { get; }
/// <summary>
/// Gets the authorization.
/// </summary>
string Authorization { get; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The IdentityServerConfiguration interface.
/// </summary>
public interface IIdentityServerConfiguration
{
/// <summary>
/// Gets the authorization server.
/// </summary>
string Authority { get; }
/// <summary>
/// Gets the api name.
/// </summary>
string ApiName { get; }
/// <summary>
/// Gets the api secret.
/// </summary>
string ApiSecret { get; }
/// <summary>
/// Gets the client id.
/// </summary>
string ClientId { get; }
/// <summary>
/// Gets the client secret.
/// </summary>
string ClientSecret { get; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Key Vault Configuration.
/// </summary>
public interface IKeyVaultConfiguration
{
/// <summary>
/// Gets the aes key.
/// </summary>
string AESKey { get; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The FtpConfiguration interface.
/// </summary>
public interface INewFtpConfiguration
{
/// <summary>
/// Gets the username.
/// </summary>
string Username { get; }
/// <summary>
/// Gets the password.
/// </summary>
string Password { get; }
/// <summary>
/// Gets the ftpUrl.
/// </summary>
string FtpURL { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Production.
/// </summary>
string SubDirectoryProduction { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Attachment.
/// </summary>
string SubDirectoryAttachment { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory 1.
/// </summary>
string SubDirectory1 { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Patient Documents.
/// </summary>
string SubDirectory1PatientDocuments { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Patient Profiles.
/// </summary>
string SubDirectory1PatientProfiles { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Patient Profiles.
/// </summary>
string SubDirectory1DoctorProfiles { get; }
/// <summary>
/// Gets the /// <summary>
/// Gets the Sub Directory Patient Profiles.
/// </summary>
string SubDirectory1UserProfiles { get; }
///// <summary>
///// Gets the /// <summary>
///// Gets the full Patient Documents Path.
///// </summary>
//string fullPatientDocumentsPath { get; }
///// <summary>
///// Gets the /// <summary>
///// Gets the full Doctor Profiles Path.
///// </summary>
//string fullDoctorProfilesPath { get; }
///// <summary>
///// Gets the /// <summary>
///// Gets the full User Profiles Path.
///// </summary>
//string fullUserProfilesPath { get; }
///// <summary>
///// Gets the /// <summary>
///// Gets the full Patient Profiles Path.
///// </summary>
//string fullPatientProfilesPath { get; }
}
}
namespace Hims.Domain.Configurations
{
/// <summary>
/// The Sinch OTP Configuration.
/// </summary>
public interface INotificationConfiguration
{
/// <summary>
/// Gets the url.
/// </summary>
string SenderId { get; }
/// <summary>
/// Gets the authorization.
/// </summary>
string ServerKey { get; }
}
}
\ No newline at end of file
namespace Hims.Domain.Configurations
{
/// <summary>
/// The PayUConfiguration interface.
/// </summary>
public interface IPayUConfiguration
{
/// <summary>
/// Gets the payment url.
/// </summary>
string PaymentURL { get; }
/// <summary>
/// Gets the key.
/// </summary>
string Key { get; }
/// <summary>
/// Gets the salt.
/// </summary>
string Salt { get; }
/// <summary>
/// Gets the service provider.
/// </summary>
string ServiceProvider { get; }
/// <summary>
/// Gets the success link.
/// </summary>
string SuccessLink { get; }
/// <summary>
/// Gets the failure link.
/// </summary>
string FailureLink { get; }
/// <summary>
/// Gets the Redirect success link.
/// </summary>
string RedirectSuccessLink { get; }
/// <summary>
/// Gets the Redirect failure link.
/// </summary>
string RedirectFailureLink { get; }
/// <summary>
/// Gets the auth header.
/// </summary>
string AuthHeader { get; }
/// <summary>
/// Gets the PayUUrl
/// </summary>
string PayUUrl { get; }
/// <summary>
/// Gets the payout oauth url.
/// </summary>
string PayoutOauthURL { get; }
/// <summary>
/// Gets the client id
/// </summary>
string ClientId { get; }
/// <summary>
/// Gets the payout merchant id
/// </summary>
string PayoutMerchantId { get; }
/// <summary>
/// Gets the web hooks.
/// </summary>
string WebHooks { get; }
/// <summary>
/// Gets or sets the authorization key.
/// </summary>
string AuthorizationKey { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Hims.Domain.Configurations
{
public interface IPracticeDetailConfiguration
{
/// <summary>
/// Gets the name of the practice.
/// </summary>
/// <value>
/// The name of the practice.
/// </value>
string PracticeName { get; }
/// <summary>
/// Gets the contact number.
/// </summary>
/// <value>
/// The contact number.
/// </value>
string ContactNumber { get; }
}
}
namespace Hims.Domain.Configurations
{
/// <summary>
/// The running environment interface.
/// </summary>
public interface IRunningEnvironment
{
/// <summary>
/// Gets the current environment.
/// </summary>
string CurrentEnvironment { get; }
}
}
namespace Hims.Domain.Configurations
{
/// <summary>
/// The SalucroConfiguration interface.
/// </summary>
public interface ISalucroConfiguration
{
/// <summary>
/// Gets the payment url.
/// </summary>
string PaymentURL { get; }
/// <summary>
/// Gets the user.
/// </summary>
string User { get; }
/// <summary>
/// Gets the key.
/// </summary>
string Key { get; }
/// <summary>
/// Gets the user name.
/// </summary>
string UserName { get; }
/// <summary>
/// Gets the payment fill.
/// </summary>
string PaymentFill { get; }
/// <summary>
/// Gets the response url.
/// </summary>
string ResponseURL { get; }
/// <summary>
/// Gets the return url.
/// </summary>
string ReturnURL { get; }
/// <summary>
/// Gets the mid.
/// </summary>
string MId { get; }
/// <summary>
/// Gets the secret key.
/// </summary>
string SecretKey { get; }
/// <summary>
/// Gets the mobile return url.
/// </summary>
string MobileReturnURL { get; }
/// <summary>
/// Gets the redirect success link.
/// </summary>
string RedirectSuccessLink { get; }
/// <summary>
/// Gets the redirect failure Link.
/// </summary>
string RedirectFailureLink { get; }
/// <summary>
/// Gets the salucro api.
/// </summary>
string SalucroAPI { get; }
/// <summary>
/// Gets the patient payment url.
/// </summary>
string PatientPaymentURL { get; }
/// <summary>
/// Gets the patient app user name.
/// </summary>
string PatientAppUserName { get; }
/// <summary>
/// Gets the payment source.
/// </summary>
string PaymentSource { get; }
/// <summary>
/// Gets the patient app return url.
/// </summary>
string PatientAppReturnURL { get; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Domain.Entities
{
/// <summary>
/// The anc card generation
/// </summary>
public class ANCCardGeneration
{
/// <summary>
/// Gets or sets the anc card generation identifier.
/// </summary>
[Key, Identity]
public int ANCCardGenerationId { get; set; }
/// <summary>
/// Gets or sets department
/// </summary>
public string? Department { get; set; }
/// <summary>
/// Gets or sets anc no.
/// </summary>
public string? ANCNo { get; set; }
/// <summary>
/// Gets or sets the husband name.
/// </summary>
public string? HusbandName { get; set; }
/// <summary>
/// Gets or sets the remark.
/// </summary>
public string? Remarks { get; set; }
/// <summary>
/// Gets or sets the registration date.
/// </summary>
public string? RegistrationDate { get; set; }
/// <summary>
/// Gets or sets the active.
/// </summary>
public bool? Active { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the patient Id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the husband age.
/// </summary>
public int? HusbandAge { get; set; }
/// <summary>
/// Gets or sets anc no exist.
/// </summary>
public string? ANCNoExists { get; set; }
public string? ConsultantDoctor { get; set; }
}
}
#nullable enable
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The account.
/// </summary>
public class Account
{
/// <summary>
/// Gets or sets the account id.
/// </summary>
[Key, Identity]
public int AccountId { get; set; }
/// <summary>
/// Gets or sets the role id.
/// </summary>
public int RoleId { get; set; }
/// <summary>
/// Gets or sets the salt key.
/// </summary>
[IgnoreUpdate]
public string SaltKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the Guid.
/// </summary>
[IgnoreUpdate]
public Guid Guid { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string FullName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the email.
/// </summary>
public string? Email { get; set; }
/// <summary>
/// Gets or sets the mobile.
/// </summary>
public string? Mobile { get; set; }
/// <summary>
/// Gets or sets the country id.
/// </summary>
public int? CountryId { get; set; }
/// <summary>
/// Gets or sets the reference id.
/// </summary>
public int ReferenceId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether agreed locked.
/// </summary>
public bool? IsAgreed { get; set; }
/// <summary>
/// Gets or sets the agreed date.
/// </summary>
public DateTime? AgreedDate { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is locked.
/// </summary>
public bool IsLocked { get; set; }
/// <summary>
/// Gets or sets the failed login attempts.
/// </summary>
public short FailedLoginAttempts { get; set; }
/// <summary>
/// Gets or sets the last failed login date.
/// </summary>
public DateTime? LastFailedLoginDate { get; set; }
/// <summary>
/// Gets or sets the last login date.
/// </summary>
public DateTime? LastLoginDate { get; set; }
/// <summary>
/// Gets or sets a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets a value otp verified.
/// </summary>
public bool? OTPVerified { get; set; }
/// <summary>
/// Gets or sets a value manual verified.
/// </summary>
public bool? ManualVerified { 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 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 user name.
/// </summary>
public string? UserName { get; set; }
/// <summary>
/// Gets or sets the finance background.
/// </summary>
/// <value>
/// The finance background.
/// </value>
public bool? FinanceBackground { get; set; }
/// <summary>
/// Gets or sets the restrict user login.
/// </summary>
/// <value>
/// The restrict user login.
/// </value>
public bool? RestrictUserLogin { get; set; }
/// <summary>
/// Gets or sets the excel download.
/// </summary>
/// <value>
/// The excel download.
/// </value>
public bool? ExcelDownload { get; set; }
/// <summary>
/// Gets or sets the caller user.
/// </summary>
public string? CallerUser { get; set; }
}
}
\ No newline at end of file
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The account credential.
/// </summary>
public class AccountCredential
{
/// <summary>
/// Gets or sets the account credential id.
/// </summary>
[Key, Identity]
public int AccountCredentialId { get; set; }
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int AccountId { get; set; }
/// <summary>
/// Gets or sets the password hash.
/// </summary>
public string PasswordHash { 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 modified by.
/// </summary>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The account session.
/// </summary>
public class AccountSession
{
/// <summary>
/// Gets or sets the account id.
/// </summary>
[Key, Identity]
public int AccountSessionId { get; set; }
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int AccountId { get; set; }
/// <summary>
/// Gets or sets the device ID.
/// </summary>
public string DeviceId { get; set; }
/// <summary>
/// Gets or sets the device key.
/// </summary>
public string DeviceToken { get; set; }
/// <summary>
/// Gets or sets the device type.
/// </summary>
public short DeviceType { get; set; }
/// <summary>
/// Gets or sets the description.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Gets or sets a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the device key.
/// </summary>
public string WebToken { get; set; }
}
}
\ No newline at end of file
namespace Hims.Domain.Entities
{
/// <summary>
/// The accounts credential query model.
/// </summary>
public class AccountsCredential
{
/// <summary>
/// Initializes a new instance of the <see cref="AccountsCredential"/> class.
/// </summary>
/// <param name="account">
/// The account.
/// </param>
/// <param name="passwordHash">
/// The password hash.
/// </param>
public AccountsCredential(Account account, string passwordHash)
{
string query;
if (string.IsNullOrEmpty(account.Mobile))
{
query = $@"UPDATE ""AccountCredential"" ac SET ""Active"" = FALSE FROM ""Account"" act
WHERE act.""AccountId"" = ac.""AccountId"" AND act.""Email"" = '{account.Email}';
INSERT INTO ""AccountCredential""(""AccountId"", ""PasswordHash"", ""CreatedBy"", ""CreatedDate"")
SELECT act.""AccountId"", '{passwordHash}', act.""AccountId"", NOW() AT TIME ZONE 'UTC' FROM ""Account"" act
WHERE act.""Email"" = '{account.Email}';";
}
else if (string.IsNullOrEmpty(account.Email))
{
query = $@"UPDATE ""AccountCredential"" ac SET ""Active"" = FALSE FROM ""Account"" act
WHERE act.""AccountId"" = ac.""AccountId"" AND act.""Mobile"" = '{account.Mobile}' AND act.""CountryId"" = '{account.CountryId}';
INSERT INTO ""AccountCredential""(""AccountId"", ""PasswordHash"", ""CreatedBy"", ""CreatedDate"")
SELECT act.""AccountId"", '{passwordHash}', act.""AccountId"", NOW() AT TIME ZONE 'UTC' FROM ""Account"" act
WHERE act.""Mobile"" = '{account.Mobile}' AND act.""CountryId"" = '{account.CountryId}';";
}
else
{
query = $@"UPDATE ""AccountCredential"" ac SET ""Active"" = FALSE FROM ""Account"" act
WHERE act.""AccountId"" = ac.""AccountId"" AND act.""Email"" = '{account.Email}' AND act.""Mobile"" = '{account.Mobile}' AND act.""CountryId"" = '{account.CountryId}';
INSERT INTO ""AccountCredential""(""AccountId"", ""PasswordHash"", ""CreatedBy"", ""CreatedDate"")
SELECT act.""AccountId"", '{passwordHash}', act.""AccountId"", NOW() AT TIME ZONE 'UTC' FROM ""Account"" act
WHERE act.""Email"" = '{account.Email}' AND act.""Mobile"" = '{account.Mobile}' AND act.""CountryId"" = '{account.CountryId}';";
}
this.Query = query;
}
/// <summary>
/// Gets or sets the query.
/// </summary>
public string Query { get; set; }
}
}
\ No newline at end of file
#nullable enable
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The appointment.
/// </summary>
public class Admission
{
/// <summary>
/// Gets or sets the admission id.
/// </summary>
[Key, Identity]
public int AdmissionId { get; set; }
/// <summary>
/// Gets or sets the admission no.
/// </summary>
public string AdmissionNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the admission date.
/// </summary>
public DateTime AdmissionDate { get; set; }
public DateTime? ExpectedDischargeDate { get; set; }
/// <summary>
/// Gets or sets the admission time.
/// </summary>
public TimeSpan? AdmissionTime { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int DepartmentId { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient type.
/// </summary>
public char? PatientType { get; set; }
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int? BedId { get; set; }
/// <summary>
/// Gets or sets the patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the is discharged.
/// </summary>
public bool? IsDischarged { get; set; }
/// <summary>
/// Gets or sets the is maternity.
/// </summary>
public bool? IsMaternity { get; set; }
/// <summary>
/// Gets or sets the babys birth date.
/// </summary>
public DateTime? BabysBirthDate { get; set; }
/// <summary>
/// Gets or sets the babys birth time.
/// </summary>
public TimeSpan? BabysBirthTime { get; set; }
/// <summary>
/// Gets or sets the babys surgery type.
/// </summary>
public int? BabysSurgeryType { get; set; }
/// <summary>
/// Gets or sets the babys gender.
/// </summary>
public char? BabysGender { get; set; }
/// <summary>
/// Gets or sets the babys fathers name.
/// </summary>
public string? BabysFathersName { get; set; }
/// <summary>
/// Gets or sets the babys fathers name.
/// </summary>
public string? BabysMothersAdmissionNo { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the ready for discharge.
/// </summary>
public bool? ReadyforDischarge { get; set; }
/// <summary>
/// Gets or sets the admission notes.
/// </summary>
public string? AdmissionNotes { 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 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 surgery type id.
/// </summary>
public int? SurgeryTypeId { get; set; }
/// <summary>
/// Gets or sets the attendant name.
/// </summary>
public string? AttendantName { get; set; }
/// <summary>
/// Gets or sets the attendant contact no.
/// </summary>
public string? AttendantContactNo { get; set; }
/// <summary>
/// Gets or sets the attendant relation with patient.
/// </summary>
public string? AttendantRelationWithPatient { get; set; }
/// <summary>
/// Gets or sets the Discharged by.
/// </summary>
public int? DischargedBy { get; set; }
/// <summary>
/// Gets or sets the visit type id.
/// </summary>
public int? VisitTypeId { get; set; }
/// <summary>
/// Gets or sets the is converted from op to ip.
/// </summary>
public bool? IsConvertedFromOPtoIp { get; set; }
/// <summary>
/// Gets or sets the patient priority identifier.
/// </summary>
/// <value>
/// The patient priority identifier.
/// </value>
public int? PatientPriorityId { get; set; }
/// <summary>
/// Gets or sets the location identifier.
/// </summary>
/// <value>
/// The location identifier.
/// </value>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the case type id.
/// </summary>
/// <value>
/// The name of the case type id.
/// </value>
public int? CaseTypeId { get; set; }
/// <summary>
/// Gets or sets the pay type id.
/// </summary>
/// <value>
/// The name of the pay type id.
/// </value>
public int? AdmissionPayTypeId { get; set; }
/// <summary>
/// Gets or sets the insurance company Id.
/// </summary>
/// <value>
/// The name of the insurance company Id.
/// </value>
public int? InsuranceCompanyId { get; set; }
/// <summary>
/// Gets or sets the referral doctor Id.
/// </summary>
/// <value>
/// The name of the referral doctor Id.
/// </value>
public int? ReferralDoctorId { get; set; }
/// <summary>
/// Gets or sets the patient organization.
/// </summary>
/// <value>
/// The patient organization.
/// </value>
public string BedAssociatedData { get; set; }
/// <summary>
/// Gets or sets the patient organization.
/// </summary>
/// <value>
/// The patient organization.
/// </value>
public string NRIData { get; set; }
/// <summary>
/// Gets or sets the patient organization.
/// </summary>
/// <value>
/// The patient organization.
/// </value>
public string SurrogacyData { get; set; }
/// <summary>
/// Gets or sets the patient organization.
/// </summary>
/// <value>
/// The patient organization.
/// </value>
public string EmergencyInfo { get; set; }
/// <summary>
/// Gets or sets the tpa identifier.
/// </summary>
/// <value>
/// The tpa identifier.
/// </value>
public int TpaId { get; set; }
/// <summary>
/// Gets or sets the patient organization.
/// </summary>
/// <value>
/// The patient organization.
/// </value>
public string? PatientOrganization { get; set; }
/// <summary>
/// Gets or sets the doctor unit master identifier.
/// </summary>
/// <value>
/// The doctor unit master identifier.
/// </value>
public int DoctorUnitMasterId { get; set; }
/// <summary>
/// Gets or sets the current room identifier.
/// </summary>
/// <value>
/// The current room identifier.
/// </value>
public int? CurrentRoomId { get; set; }
public int? CounsellingId { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
#nullable enable
namespace Hims.Domain.Entities
{
public class AdmissionBedChangeRequest
{
/// <summary>
/// Gets or sets the admission bed change request identifier.
/// </summary>
/// <value>
/// The admission bed change request identifier.
/// </value>
[Key, Identity]
public int AdmissionBedChangeRequestId { get; set; }
/// <summary>
/// Gets or sets the admission identifier.
/// </summary>
/// <value>
/// The admission identifier.
/// </value>
public int AdmissionId { get; set; }
/// <summary>
/// Gets or sets the request comments.
/// </summary>
/// <value>
/// The request comments.
/// </value>
public string? RequestComments { get; set; }
/// <summary>
/// Gets or sets the charge categories.
/// </summary>
/// <value>
/// The charge categories.
/// </value>
public Array? ChargeCategories { get; set; } = null;
/// <summary>
/// Gets or sets a value indicating whether this <see cref="AdmissionBedChangeRequest"/> is active.
/// </summary>
/// <value>
/// <c>true</c> if active; otherwise, <c>false</c>.
/// </value>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
[IgnoreUpdate]
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public DateTime? ModifiedDate { get; set; }
}
}
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The coupon.
/// </summary>
public class AdmissionPackage
{
/// <summary>
/// Gets or sets the coupon id.
/// </summary>
[Key, Identity]
public int AdmissionPackageId { get; set; }
/// <summary>
/// Gets or sets the admission identifier.
/// </summary>
/// <value>
/// The admission identifier.
/// </value>
public int? AdmissionId { get; set; }
/// <summary>
/// Gets or sets the appointment identifier.
/// </summary>
/// <value>
/// The appointment identifier.
/// </value>
public int? AppointmentId { get; set; }
/// <summary>
/// Gets or sets the package identifier.
/// </summary>
/// <value>
/// The package identifier.
/// </value>
public int PackageId { get; set; }
public int? CounsellingId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this <see cref="AdmissionPackage"/> is active.
/// </summary>
/// <value>
/// <c>true</c> if active; otherwise, <c>false</c>.
/// </value>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
[IgnoreUpdate]
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public int? ModifiedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public DateTime? ModifiedDate { get; set; }
public bool IsPackageComplete { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Domain.Entities
{
public class AdmissionTransferRequest
{
/// <summary>
/// Gets or sets the admission transfer request id.
/// </summary>
[Key, Identity]
public int AdmissionTransferRequestId { get; set; }
/// <summary>
/// Gets or sets the admission id.
/// </summary>
public int AdmissionId { get; set; }
/// <summary>
/// Gets or sets the doctor unit master id.
/// </summary>
public int? DoctorUnitMasterId { get; set; }
/// <summary>
/// Gets or sets the doctor unit master id.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
public int? ApprovedBy { get; set; }
/// <summary>
/// Gets or sets the modified date.
/// </summary>
public DateTime? ApprovedDate { get; set; }
/// <summary>
/// Gets or sets the charge categories.
/// </summary>
public Array? ChargeCategories { get; set; } = null;
/// <summary>
/// Gets or sets the charge categories.
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the charge categories.
/// </summary>
public int AdmissionChangeRequestTypeId { get; set; }
/// <summary>
/// Gets or sets the charge categories.
/// </summary>
public string? RequestComments { get; set; }
/// <summary>
/// Gets or sets the Rejected By.
/// </summary>
public int? RejectedBy { get; set; }
/// <summary>
/// Gets or sets the Rejected Date.
/// </summary>
public DateTime? RejectedDate { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Domain.Entities
{
public class Ambulance
{
/// <summary>
/// get or set AmbulanceId
/// </summary>
[Key,Identity]
public int AmbulanceId { get; set; }
/// <summary>
/// get or set AmbulanceNo
/// </summary>
public string AmbulanceNo { get; set; }
/// <summary>
/// get or set AssignedNo
/// </summary>
public string AssignedNo { get; set; }
/// <summary>
/// get or set a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// get or set CreatedDate
/// </summary>
///
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// get or set
/// </summary>
[IgnoreUpdate]
public int CreatedBy { get; set; }
/// <summary>
/// get or set ModifiedBy
/// </summary>
public int? ModifiedBy { get; set; }
/// <summary>
/// get or set ModifiedDate
/// </summary>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// get or set
/// </summary>
public int LocationId { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Domain.Entities
{
public class AmbulanceReciept
{
/// <summary>
/// get or set AmbulanceId
/// </summary>
[Key, Identity]
public int AmbulanceRecieptId { get; set; }
/// <summary>
/// get or set AmbulanceNo
/// </summary>
public string RecieptNo { get; set; }
/// <summary>
///
/// </summary>
public string FromLocation { get; set; }
/// <summary>
///
/// </summary>
public string Address { get; set; }
/// <summary>
///
/// </summary>
public string ToLocation { get; set; }
/// <summary>
///
/// </summary>
public string PatientName { get; set; }
/// <summary>
///
/// </summary>
public string PatientMobile { get; set; }
/// <summary>
///
/// </summary>
public int DriverDetailId { get; set; }
/// <summary>
///
/// </summary>
public int AmbulanceId { get; set; }
/// <summary>
///
/// </summary>
public int Amount { get; set; }
/// <summary>
/// get or set CreatedDate
/// </summary>
///
[IgnoreUpdate]
public DateTime CreatedDate { get; set; }
/// <summary>
/// get or set
/// </summary>
[IgnoreUpdate]
public int CreatedBy { get; set; }
/// <summary>
/// get or set ModifiedBy
/// </summary>
public int? ModifiedBy { get; set; }
/// <summary>
/// get or set ModifiedDate
/// </summary>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// get or set
/// </summary>
public int LocationId { get; set; }
}
}
#nullable enable
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The appointment.
/// </summary>
public class Appointment
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
[Key, Identity]
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the provider location id.
/// </summary>
public int ProviderLocationId { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the visit type.
/// </summary>
public char? VisitType { get; set; }
/// <summary>
/// Gets or sets the patient type.
/// </summary>
public char? PatientType { get; set; }
/// <summary>
/// Gets or sets the charge type.
/// </summary>
public char? ChargeType { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public DateTime AppointmentDate { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentTime { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentEndTime { get; set; }
/// <summary>
/// Gets or sets the old appointment date.
/// </summary>
public DateTime OldAppointmentDate { get; set; }
/// <summary>
/// Gets or sets the old appointment time.
/// </summary>
public TimeSpan OldAppointmentTime { get; set; }
/// <summary>
/// Gets or sets the appointment notes.
/// </summary>
public string? AppointmentNotes { get; set; }
/// <summary>
/// Gets or sets the coupon id.
/// </summary>
public int? CouponId { get; set; }
/// <summary>
/// Gets or sets the amount.
/// </summary>
public decimal Amount { get; set; }
/// <summary>
/// Gets or sets the app charges.
/// </summary>
public decimal AppCharges { get; set; }
/// <summary>
/// Gets or sets the wallet amount.
/// </summary>
public decimal? WalletAmount { get; set; }
/// <summary>
/// Gets or sets the discount.
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
public string Status { get; set; } = "B";
/// <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 cancel reason.
/// </summary>
public string? Reason { get; set; }
/// <summary>
/// Gets or sets the reschedule reason.
/// </summary>
public string? RescheduleReason { 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 patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int? DepartmentId { get; set; }
/// <summary>
/// Gets or sets payment type.
/// </summary>
public bool PaymentStatus { get; set; }
/// <summary>
/// Gets or sets payment type.
/// </summary>
public char? PaymentType { get; set; }
/// <summary>
/// Gets or sets payment number.
/// </summary>
public string? PaymentNumber { get; set; }
/// <summary>
/// Gets or sets follow up for AppointmentId.
/// </summary>
public int? FollowUpForAppointmentId { get; set; }
/// <summary>
/// Gets or sets follow up for admission id.
/// </summary>
public int? FollowUpForAdmissionId { get; set; }
/// <summary>
/// Gets or sets the visit type id.
/// </summary>
public int? VisitTypeId { get; set; }
/// <summary>
/// Gets or sets the charge types id.
/// </summary>
public int? ChargeTypesId { get; set; }
/// <summary>
/// Gets or sets the old appointment date.
/// </summary>
public DateTime? CheckedIn { get; set; }
/// <summary>
/// Gets or sets the old appointment date.
/// </summary>
public DateTime? CheckedOut { get; set; }
/// <summary>
/// Gets or sets the old appointment date.
/// </summary>
public int? Tat { get; set; }
/// <summary>
/// Gets or sets the location id.
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the appointment type id from appointmentType masters.
/// </summary>
public int? AppointmentTypeId { get; set; }
/// <summary>
/// Gets or sets the Pay type id from payType masters.
/// </summary>
public int? PayTypeId { get; set; }
public int TokenNumber { get; set; }
public int QueueStatusId { get; set; }
public DateTime? QueueEndDate { get; set; }
public DateTime? QueueStartDate { get; set; }
public int? WaitingCount { get; set; }
/// <summary>
/// Gets or sets the specialization id.
/// </summary>
public int? SpecializationId { get; set; }
public int ProviderAvailabilityId { get; set; }
public int ConsultationTypeId { get; set; }
public bool IsEncounter { get; set; }
public int? CubicleId { get; set; }
/// <summary>
/// Gets or sets the is salucro appointment.
/// </summary>
public bool IsSalucroAppointment { get; set; }
/// <summary>
/// Gets or sets the provider availability charge type id.
/// </summary>
public int? DoctorSpecializationChargeModuleDetailsId { get; set; }
//public string? EncryptedProviderId { get; set; }
//public string? EncryptedPatientId { get; set; }
/// <summary>
/// Gets or sets the other remarks.
/// </summary>
/// <value>
/// The other remarks.
/// </value>
public string? OtherRemarks { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? AuthorityMasterId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? ReasonsId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public string? Remarks { get; set; }
/// <summary>
/// Gets or sets the anc card generation id.
/// </summary>
public int? ANCCardGenerationId { get; set; }
/// <summary>
/// Gets or sets the is emergency.
/// </summary>
public bool IsEmergency { get; set; }
/// <summary>
/// Gets or sets the discount in percentage.
/// </summary>
public decimal? DiscountInPercentage { get; set; }
/// <summary>
/// Gets or sets the discount in percentage.
/// </summary>
public bool? IsHealthCard { get; set; }
/// <summary>
/// Gets or sets the session id.
/// </summary>
public int? SessionId { get; set; }
}
}
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The Payment Initiation Log.
/// </summary>
public class AppointmentCheckPoints
{
/// <summary>
/// Gets or sets the Payment Initiation Log id.
/// </summary>
[Key, Identity]
public int AppointmentCheckPointsId { get; set; }
/// <summary>
/// Gets or sets the Payment Initiation Log id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the json data.
/// </summary>
public string Action { get; set; }
/// <summary>
/// Gets or sets the Payment Initiation Log id.
/// </summary>
public int? CreatedBy { get; set; }
/// <summary>
/// Gets or sets the Payment Initiation Log id.
/// </summary>
public int? ExternalUserId { get; set; }
public bool? IgnoreForQueue { get; set; }
}
}
#nullable enable
namespace Hims.Domain.Entities
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The appointment exception log.
/// </summary>
public class AppointmentExceptionLog
{
/// <summary>
/// Gets or sets the appointment exception log id.
/// </summary>
[Key, Identity]
public int AppointmentExceptionLogId { get; set; }
/// <summary>
/// Gets or sets the appointment log id.
/// </summary>
public int? AppointmentLogId { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
[IgnoreUpdate]
public int? AppointmentId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether payment status.
/// </summary>
[IgnoreUpdate]
public bool PaymentStatus { get; set; }
/// <summary>
/// Gets or sets the exception date.
/// </summary>
[IgnoreUpdate]
public DateTime ExceptionDate { get; set; }
/// <summary>
/// Gets or sets the exception message.
/// </summary>
public string ExceptionMessage { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the stack trace.
/// </summary>
public string? StackTrace { get; set; }
/// <summary>
/// Gets or sets the payment transaction id.
/// </summary>
public string? PaymentTransactionId { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Domain.Entities
{
public class AppointmentHangfireMap
{
[Key, Identity]
public int AHMapId { get; set; }
public int AppointmentId { get; set; }
public DateTime CreatedDate { get; set; }
public string Status { get; set; }
public bool SmsSent { get; set; }
public bool EmailSent { get; set; }
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public DateTime AppointmentDate { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentTime { get; set; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment