Commit 3d9f56da authored by Sandeep Sagar Panjala's avatar Sandeep Sagar Panjala

initial commit

parent 9fb3d669
namespace Hims.Shared.Dapper.Attributes
{
using System;
/// <inheritdoc />
public sealed class IdentityAttribute : Attribute
{
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes
{
using System;
/// <inheritdoc />
/// <summary>
/// Ignore property attribute
/// </summary>
public sealed class IgnoreUpdateAttribute : Attribute
{
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.Joins
{
/// <inheritdoc />
/// <summary>
/// Generate INNER JOIN
/// </summary>
public sealed class InnerJoinAttribute : JoinAttributeBase
{
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.InnerJoinAttribute" /> class.
/// </summary>
public InnerJoinAttribute()
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
public InnerJoinAttribute(string tableName, string key, string externalKey)
: base(tableName, key, externalKey, string.Empty, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
public InnerJoinAttribute(string tableName, string key, string externalKey, string tableSchema)
: base(tableName, key, externalKey, tableSchema, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
/// <param name="tableAbbreviation">External table alias</param>
public InnerJoinAttribute(string tableName, string key, string externalKey, string tableSchema, string tableAbbreviation)
: base(tableName, key, externalKey, tableSchema, tableAbbreviation)
{
}
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.Joins
{
using System;
/// <inheritdoc />
/// <summary>
/// Base JOIN for LEFT/INNER/RIGHT
/// </summary>
public abstract class JoinAttributeBase : Attribute
{
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.JoinAttributeBase" /> class.
/// Constructor
/// </summary>
protected JoinAttributeBase()
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
protected JoinAttributeBase(string tableName, string key, string externalKey, string tableSchema, string tableAlias)
{
this.TableName = tableName;
this.Key = key;
this.ExternalKey = externalKey;
this.TableSchema = tableSchema;
this.TableAlias = tableAlias == string.Empty ? this.GetAlias() : tableAlias;
}
/// <summary>
/// Gets or sets the table name.
/// </summary>
public string TableName { get; set; }
/// <summary>
/// Gets or sets the table schema.
/// </summary>
public string TableSchema { get; set; }
/// <summary>
/// Gets or sets the key.
/// </summary>
public string Key { get; set; }
/// <summary>
/// Gets or sets the external key.
/// </summary>
public string ExternalKey { get; set; }
/// <summary>
/// Gets or sets the table alias.
/// </summary>
public string TableAlias { get; set; }
/// <summary>
/// The get alias.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
private string GetAlias() => $"{this.TableName}_{this.Key}";
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.Joins
{
/// <inheritdoc />
/// <summary>
/// Generate LEFT JOIN
/// </summary>
public sealed class LeftJoinAttribute : JoinAttributeBase
{
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.LeftJoinAttribute" /> class.
/// Constructor
/// </summary>
public LeftJoinAttribute()
{
}
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.LeftJoinAttribute" /> class.
/// Constructor
/// </summary>
/// <param name="tableName">
/// Name of external table
/// </param>
/// <param name="key">
/// ForeignKey of this table
/// </param>
/// <param name="externalKey">
/// Key of external table
/// </param>
public LeftJoinAttribute(string tableName, string key, string externalKey)
: base(tableName, key, externalKey, string.Empty, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
public LeftJoinAttribute(string tableName, string key, string externalKey, string tableSchema)
: base(tableName, key, externalKey, tableSchema, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
/// <param name="tableAbbreviation">External table alias</param>
public LeftJoinAttribute(string tableName, string key, string externalKey, string tableSchema, string tableAbbreviation)
: base(tableName, key, externalKey, tableSchema, tableAbbreviation)
{
}
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.Joins
{
/// <inheritdoc />
/// <summary>
/// Generate RIGHT JOIN
/// </summary>
public sealed class RightJoinAttribute : JoinAttributeBase
{
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.RightJoinAttribute" /> class.
/// </summary>
public RightJoinAttribute()
{
}
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:Hims.Shared.Dapper.Attributes.Joins.RightJoinAttribute" /> class.
/// Constructor
/// </summary>
/// <param name="tableName">
/// Name of external table
/// </param>
/// <param name="key">
/// ForeignKey of this table
/// </param>
/// <param name="externalKey">
/// Key of external table
/// </param>
public RightJoinAttribute(string tableName, string key, string externalKey) : base(tableName, key, externalKey, string.Empty, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
public RightJoinAttribute(string tableName, string key, string externalKey, string tableSchema)
: base(tableName, key, externalKey, tableSchema, string.Empty)
{
}
/// <inheritdoc />
/// <summary>
/// Constructor
/// </summary>
/// <param name="tableName">Name of external table</param>
/// <param name="key">ForeignKey of this table</param>
/// <param name="externalKey">Key of external table</param>
/// <param name="tableSchema">Name of external table schema</param>
/// <param name="tableAbbreviation">External table alias</param>
public RightJoinAttribute(string tableName, string key, string externalKey, string tableSchema, string tableAbbreviation)
: base(tableName, key, externalKey, tableSchema, tableAbbreviation)
{
}
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.LogicalDelete
{
using System;
/// <inheritdoc />
/// <summary>
/// Use with "Status" for logical delete
/// </summary>
public sealed class DeletedAttribute : Attribute
{
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes.LogicalDelete
{
using System;
/// <inheritdoc />
/// <summary>
/// Use with "Deleted" for logical delete
/// </summary>
public sealed class StatusAttribute : Attribute
{
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Attributes
{
using System;
/// <inheritdoc />
/// <summary>
/// UpdatedAt. Warning!!! Changes the property during SQL generation
/// </summary>
public sealed class UpdatedAtAttribute : Attribute
{
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.Extensions
{
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Reflection;
/// <summary>
/// The type extensions.
/// </summary>
public static class TypeExtensions
{
/// <summary>
/// The _reflection property cache.
/// </summary>
private static readonly ConcurrentDictionary<Type, PropertyInfo[]> ReflectionPropertyCache = new ConcurrentDictionary<Type, PropertyInfo[]>();
/// <summary>
/// The find class properties.
/// </summary>
/// <param name="objectType">
/// The object type.
/// </param>
/// <returns>
/// The <see cref="PropertyInfo"/>.
/// </returns>
public static PropertyInfo[] FindClassProperties(this Type objectType)
{
if (ReflectionPropertyCache.ContainsKey(objectType))
{
return ReflectionPropertyCache[objectType];
}
var result = objectType.GetProperties().ToArray();
ReflectionPropertyCache.TryAdd(objectType, result);
return result;
}
/// <summary>
/// The is generic type.
/// </summary>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
public static bool IsGenericType(this Type type) => type.IsGenericType;
/// <summary>
/// The is enum.
/// </summary>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
public static bool IsEnum(this Type type) => type.IsEnum;
/// <summary>
/// The is value type.
/// </summary>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
public static bool IsValueType(this Type type) => type.IsValueType;
/// <summary>
/// The is bool.
/// </summary>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
public static bool IsBool(this Type type) => type == typeof(bool);
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</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>
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("MicroOrm.Dapper.Repositories.Tests")]
namespace Hims.Shared.Dapper.SqlGenerator
{
using System;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using Extensions;
/// <summary>
/// The expression helper.
/// </summary>
public static class ExpressionHelper
{
/// <summary>
/// The get property name.
/// </summary>
/// <param name="field">
/// The field.
/// </param>
/// <typeparam name="TSource">
/// the source.
/// </typeparam>
/// <typeparam name="TField">
/// the filed.
/// </typeparam>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetPropertyName<TSource, TField>(Expression<Func<TSource, TField>> field)
{
if (field == null)
{
throw new ArgumentNullException(nameof(field), "field can't be null");
}
var expr = field.Body switch
{
MemberExpression body => body,
UnaryExpression expression => (MemberExpression) expression.Operand,
_ => throw new ArgumentException("Expression field isn't supported", nameof(field))
};
return expr.Member.Name;
}
/// <summary>
/// The get value.
/// </summary>
/// <param name="member">
/// The member.
/// </param>
/// <returns>
/// The <see cref="object"/>.
/// </returns>
public static object GetValue(Expression member)
{
var objectMember = Expression.Convert(member, typeof(object));
var getterLambda = Expression.Lambda<Func<object>>(objectMember);
var getter = getterLambda.Compile();
return getter();
}
/// <summary>
/// The get sql operator.
/// </summary>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetSqlOperator(ExpressionType type)
{
switch (type)
{
case ExpressionType.Equal:
case ExpressionType.Not:
case ExpressionType.MemberAccess:
return "=";
case ExpressionType.NotEqual:
return "!=";
case ExpressionType.LessThan:
return "<";
case ExpressionType.LessThanOrEqual:
return "<=";
case ExpressionType.GreaterThan:
return ">";
case ExpressionType.GreaterThanOrEqual:
return ">=";
case ExpressionType.AndAlso:
case ExpressionType.And:
return "AND";
case ExpressionType.Or:
case ExpressionType.OrElse:
return "OR";
case ExpressionType.Default:
return string.Empty;
default:
throw new NotSupportedException(type + " isn't supported");
}
}
/// <summary>
/// The get method call sql operator.
/// </summary>
/// <param name="methodName">
/// The method name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetMethodCallSqlOperator(string methodName)
{
switch (methodName)
{
case "Contains":
return "IN";
case "Any":
case "All":
return methodName.ToUpperInvariant();
default:
throw new NotSupportedException(methodName + " isn't supported");
}
}
/// <summary>
/// The get binary expression.
/// </summary>
/// <param name="expression">
/// The expression.
/// </param>
/// <returns>
/// The <see cref="BinaryExpression"/>.
/// </returns>
public static BinaryExpression GetBinaryExpression(Expression expression)
{
var binaryExpression = expression as BinaryExpression;
var body = binaryExpression ?? Expression.MakeBinary(ExpressionType.Equal, expression, expression.NodeType == ExpressionType.Not ? Expression.Constant(false) : Expression.Constant(true));
return body;
}
/// <summary>
/// The get primitive properties predicate.
/// </summary>
/// <returns>
/// The <see cref="Func{TResult}"/>.
/// </returns>
public static Func<PropertyInfo, bool> GetPrimitivePropertiesPredicate()
{
return p => p.CanWrite && (p.PropertyType.IsValueType() || p.PropertyType == typeof(string) || p.PropertyType == typeof(byte[]));
}
/// <summary>
/// The get values from collection.
/// </summary>
/// <param name="callExpr">
/// The call expr.
/// </param>
/// <returns>
/// The <see cref="object"/>.
/// </returns>
public static object GetValuesFromCollection(MethodCallExpression callExpr)
{
var expr = callExpr.Object as MemberExpression;
if (!(expr?.Expression is ConstantExpression))
{
throw new NotSupportedException(callExpr.Method.Name + " isn't supported");
}
var constExpr = (ConstantExpression)expr.Expression;
var constExprType = constExpr.Value.GetType();
return constExprType.GetField(expr.Member.Name)?.GetValue(constExpr.Value);
}
/// <summary>
/// The get member expression.
/// </summary>
/// <param name="expression">
/// The expression.
/// </param>
/// <returns>
/// The <see cref="MemberExpression"/>.
/// </returns>
public static MemberExpression GetMemberExpression(Expression expression)
{
switch (expression)
{
case MethodCallExpression expr:
return (MemberExpression)expr.Arguments[0];
case MemberExpression memberExpression:
return memberExpression;
case UnaryExpression unaryExpression:
return (MemberExpression)unaryExpression.Operand;
case BinaryExpression binaryExpression:
var binaryExpr = binaryExpression;
if (binaryExpr.Left is UnaryExpression left)
{
return (MemberExpression)left.Operand;
}
// should we take care if right operation is memberaccess, not left?
return (MemberExpression)binaryExpr.Left;
case LambdaExpression expression1:
var lambdaExpression = expression1;
switch (lambdaExpression.Body)
{
case MemberExpression body:
return body;
case UnaryExpression expressionBody:
return (MemberExpression)expressionBody.Operand;
}
break;
}
return null;
}
/// <summary>
/// Gets the name of the property.
/// </summary>
/// <param name="expr">The Expression.</param>
/// <param name="nested">Out. Is nested property.</param>
/// <returns>The property name for the property expression.</returns>
public static string GetPropertyNamePath(Expression expr, out bool nested)
{
var path = new StringBuilder();
var memberExpression = GetMemberExpression(expr);
var count = 0;
do
{
count++;
if (path.Length > 0)
{
path.Insert(0, string.Empty);
}
path.Insert(0, memberExpression.Member.Name);
memberExpression = GetMemberExpression(memberExpression.Expression);
}
while (memberExpression != null);
if (count > 2)
{
throw new ArgumentException("Only one degree of nesting is supported");
}
nested = count == 2;
return path.ToString();
}
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
/// <summary>
/// Class that models the data structure in converting the expression tree into SQL and Params.
/// </summary>
public class QueryParameter
{
/// <summary>
/// Initializes a new instance of the <see cref="QueryParameter" /> class.
/// </summary>
/// <param name="linkingOperator">The linking operator.</param>
/// <param name="propertyName">Name of the property.</param>
/// <param name="propertyValue">The property value.</param>
/// <param name="queryOperator">The query operator.</param>
/// <param name="nestedProperty">Signalize if it is nested property.</param>
public QueryParameter(string linkingOperator, string propertyName, object propertyValue, string queryOperator, bool nestedProperty)
{
this.LinkingOperator = linkingOperator;
this.PropertyName = propertyName;
this.PropertyValue = propertyValue;
this.QueryOperator = queryOperator;
this.NestedProperty = nestedProperty;
}
/// <summary>
/// Gets or sets the linking operator.
/// </summary>
public string LinkingOperator { get; set; }
/// <summary>
/// Gets or sets the property name.
/// </summary>
public string PropertyName { get; set; }
/// <summary>
/// Gets or sets the property value.
/// </summary>
public object PropertyValue { get; set; }
/// <summary>
/// Gets or sets the query operator.
/// </summary>
public string QueryOperator { get; set; }
/// <summary>
/// Gets or sets a value indicating whether nested property.
/// </summary>
public bool NestedProperty { get; set; }
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
/// <summary>
/// Config for SqlGenerator
/// </summary>
public class SqlGeneratorConfig
{
/// <summary>
/// Gets or sets the sql provider.
/// </summary>
public SqlProvider SqlProvider { get; set; }
/// <summary>
/// Gets or sets a value indicating whether use quotation marks.
/// </summary>
public bool UseQuotationMarks { get; set; }
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
using System.Reflection;
using Attributes.Joins;
/// <inheritdoc />
public class SqlJoinPropertyMetadata : SqlPropertyMetadata
{
/// <inheritdoc />
public SqlJoinPropertyMetadata(PropertyInfo joinPropertyInfo, PropertyInfo propertyInfo) : base(propertyInfo)
{
var joinAttribute = joinPropertyInfo.GetCustomAttribute<JoinAttributeBase>();
this.JoinPropertyInfo = joinPropertyInfo;
this.TableSchema = joinAttribute?.TableSchema;
this.TableName = joinAttribute?.TableName;
this.TableAlias = joinAttribute?.TableAlias;
}
/// <summary>
/// Gets or sets the table name.
/// </summary>
public string TableName { get; set; }
/// <summary>
/// Gets or sets the table alias.
/// </summary>
public string TableAlias { get; set; }
/// <summary>
/// Gets or sets the table schema.
/// </summary>
public string TableSchema { get; set; }
/// <summary>
/// Gets or sets the join property info.
/// </summary>
public PropertyInfo JoinPropertyInfo { get; set; }
/// <summary>
/// The join property name.
/// </summary>
public string JoinPropertyName => this.JoinPropertyInfo.Name;
/// <inheritdoc />
/// <summary>
/// The property name.
/// </summary>
public override string PropertyName => this.JoinPropertyName + base.PropertyName;
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using Attributes;
/// <summary>
/// Metadata from PropertyInfo
/// </summary>
public class SqlPropertyMetadata
{
/// <summary>
/// Initializes a new instance of the <see cref="SqlPropertyMetadata"/> class.
/// Constructor
/// </summary>
/// <param name="propertyInfo">
/// The property Info.
/// </param>
public SqlPropertyMetadata(PropertyInfo propertyInfo)
{
this.PropertyInfo = propertyInfo;
var alias = this.PropertyInfo.GetCustomAttribute<ColumnAttribute>();
if (!string.IsNullOrEmpty(alias?.Name))
{
this.Alias = alias.Name;
this.ColumnName = this.Alias;
}
else
{
this.ColumnName = this.PropertyInfo.Name;
}
var ignoreUpdate = this.PropertyInfo.GetCustomAttribute<IgnoreUpdateAttribute>();
if (ignoreUpdate != null)
{
this.IgnoreUpdate = true;
}
}
/// <summary>
/// Gets the property info.
/// </summary>
public PropertyInfo PropertyInfo { get; }
/// <summary>
/// Gets or sets the alias.
/// </summary>
public string Alias { get; set; }
/// <summary>
/// Gets or sets the column name.
/// </summary>
public string ColumnName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether ignore update.
/// </summary>
public bool IgnoreUpdate { get; set; }
/// <summary>
/// The property name.
/// </summary>
public virtual string PropertyName => this.PropertyInfo.Name;
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
/// <summary>
/// SQL Provider
/// </summary>
public enum SqlProvider
{
/// <summary>
/// The mssql.
/// </summary>
MSSQL,
/// <summary>
/// The my sql.
/// </summary>
MySQL,
/// <summary>
/// The postgre sql.
/// </summary>
PostgreSQL
}
}
\ No newline at end of file
namespace Hims.Shared.Dapper.SqlGenerator
{
using System.Text;
/// <summary>
/// A object with the generated sql and dynamic params.
/// </summary>
public class SqlQuery
{
/// <summary>
/// Initializes a new instance of the <see cref="SqlQuery"/> class.
/// Initializes a new instance of the class.
/// </summary>
public SqlQuery() => this.SqlBuilder = new StringBuilder();
/// <summary>
/// Initializes a new instance of the <see cref="SqlQuery"/> class.
/// </summary>
/// <param name="param">
/// The param.
/// </param>
public SqlQuery(object param)
{
this.Param = param;
this.SqlBuilder = new StringBuilder();
}
/// <summary>
/// Gets the sql builder.
/// </summary>
public StringBuilder SqlBuilder { get; }
/// <summary>
/// Gets the param.
/// </summary>
public object Param { get; private set; }
/// <summary>
/// The get sql.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public string GetSql() => this.SqlBuilder.ToString().Trim();
/// <summary>
/// The set param.
/// </summary>
/// <param name="param">
/// The param.
/// </param>
public void SetParam(object param)
{
this.Param = param;
}
}
}
\ No newline at end of file
namespace Hims.Shared.DataFilters
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
/// <summary>
/// The core filter.
/// </summary>
public static class CoreFilter
{
/// <summary>
/// The random.
/// </summary>
/// <param name="length">
/// The length.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string Random(int length)
{
var random = new Random();
return new string(Enumerable.Repeat("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", length).Select(s => s[random.Next(s.Length)]).ToArray());
}
/// <summary>
/// The random numbers.
/// </summary>
/// <param name="length">
/// The length.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string RandomNumbers(int length)
{
var random = new Random();
return new string(Enumerable.Repeat("0123456789", length).Select(s => s[random.Next(s.Length)]).ToArray());
}
/// <summary>
/// The random.
/// </summary>
/// <param name="min">
/// The min.
/// </param>
/// <param name="max">
/// The max.
/// </param>
/// <returns>
/// The <see cref="int"/>.
/// </returns>
public static int Random(int min, int max)
{
if (min <= 0)
{
min = 0;
}
if (max <= 0)
{
max = 0;
}
var randomNumberBuffer = new byte[10];
new RNGCryptoServiceProvider().GetBytes(randomNumberBuffer);
return new Random(BitConverter.ToInt32(randomNumberBuffer, 0)).Next(min, max);
}
/// <summary>
/// The full name.
/// </summary>
/// <param name="firstName">
/// The first Name.
/// </param>
/// <param name="middleName">
/// The middle Name.
/// </param>
/// <param name="lastName">
/// The last Name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string FullName(string firstName, string middleName, string lastName) => firstName + " " + (string.IsNullOrEmpty(middleName) ? string.Empty : middleName + " ") + lastName;
/// <summary>
/// The get random password.
/// </summary>
/// <param name="length">
/// The length.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string RandomPassword(int length)
{
const int NoOfChunks = 4;
var finalValue = string.Empty;
// Initial randoms
var initialRandoms = new List<int>();
for (var i = 0; i < NoOfChunks; i++)
{
initialRandoms.Add(new Random().Next(1, 3));
}
// Padding
for (; ; )
{
if (initialRandoms.Sum() >= length)
{
break;
}
var indexRandom = new Random().Next(0, NoOfChunks);
initialRandoms[indexRandom] = initialRandoms[indexRandom] + 1;
}
// Capital Letters
for (var i = 0; i < initialRandoms[0]; i++)
{
var capitalLetterNumber = new Random().Next(65, 91);
var capitalLetter = Convert.ToChar(capitalLetterNumber);
finalValue += capitalLetter;
}
// Small Letters
for (var i = 0; i < initialRandoms[1]; i++)
{
var smallLetterNumber = new Random().Next(97, 123);
var smallLetter = Convert.ToChar(smallLetterNumber);
finalValue += smallLetter;
}
// Numbers
for (var i = 0; i < initialRandoms[2]; i++)
{
var number = new Random().Next(0, 9);
finalValue += number;
}
// Special Character
var randomSpecialCharacters = new List<int>
{
33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 58, 59, 60, 61, 62, 63, 64, 91, 92, 93, 94,
95, 96, 123, 124, 125, 126
};
for (var i = 0; i < initialRandoms[3]; i++)
{
var specialNumber = new Random().Next(0, randomSpecialCharacters.Count);
var specialLetter = Convert.ToChar(randomSpecialCharacters[specialNumber]);
finalValue += specialLetter;
}
// Jumble
var jumble = new StringBuilder(finalValue);
var random = new Random();
for (var i = jumble.Length - 1; i > 0; i--)
{
var j = random.Next(i);
var temp = jumble[j];
jumble[j] = jumble[i];
jumble[i] = temp;
}
return jumble.ToString();
}
/// <summary>
/// The to enum.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <param name="ignoreCase">
/// The ignore case.
/// </param>
/// <typeparam name="T">
/// The data type
/// </typeparam>
/// <returns>
/// The enum value.
/// </returns>
public static T ToEnum<T>(this string value, bool ignoreCase = true) => (T)Enum.Parse(typeof(T), value, ignoreCase);
/// <summary>
/// The to image bytes.
/// </summary>
/// <param name="image">
/// The image.
/// </param>
/// <returns>
/// The <see cref="byte"/>.
/// </returns>
public static byte[] ToImageBytes(string image) => !string.IsNullOrEmpty(image) ? Convert.FromBase64String(Regex.Replace(image, "data:image/(png|jpg|PNG|JPG|JPEG|jpeg|gif|GIF|bmp|BMP);base64,", string.Empty)) : null;
/// <summary>
/// The to image string.
/// </summary>
/// <param name="image">
/// The image.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string ToImageString(byte[] image) => image == null ? string.Empty : "data:image/png;base64," + Convert.ToBase64String(image);
/// <summary>
/// The get transaction id.
/// </summary>
/// <param name="transactionId">
/// The transaction id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetTransactionId(string transactionId, string type)
{
// TYPE20010005
var year = DateTime.Now.ToString("yy");
var month = DateTime.Now.ToString("MM");
if (string.IsNullOrEmpty(transactionId))
{
return type + year + month + "0001";
}
transactionId = transactionId.Replace(type, string.Empty);
var lastTxnYear = transactionId.Substring(0, 2);
var lastTxnMonth = transactionId.Substring(2, 2);
var counter = Convert.ToInt32(transactionId.Substring(4, 4));
if (lastTxnYear != year && lastTxnMonth != month)
{
return type + year + month + "0001";
}
return type + year + month + GetSequenceString(counter + 1);
}
/// <summary>
/// The get ticket number.
/// </summary>
/// <param name="previousTicketNum">
/// The previous ticket num.
/// </param>
/// <param name="priority">
/// The priority.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetTicketNumber(string previousTicketNum, string priority)
{
// ME0TP20050001
var randomString = Random(4);
var year = DateTime.Now.ToString("yy");
var month = DateTime.Now.ToString("MM");
if (string.IsNullOrEmpty(previousTicketNum))
{
return priority + randomString + year + month + "0001";
}
var lastTxnYear = previousTicketNum.Substring(5, 2);
var lastTxnMonth = previousTicketNum.Substring(7, 2);
var counter = Convert.ToInt32(previousTicketNum.Substring(9, 4));
if (lastTxnYear != year && lastTxnMonth != month)
{
return priority + randomString + year + month + "0001";
}
return priority + randomString + year + month + GetSequenceString(counter + 1);
}
/// <summary>
/// The get ticket number.
/// </summary>
/// <param name="firstName">
/// The previous ticket num.
/// </param>
/// <param name="randomString">
/// The previous ticket num.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string GetReferralCode(string firstName, string randomString)
{
// ME0TP20050001
randomString = randomString != null ? randomString.Substring(4, 4) : "0000";
if (!string.IsNullOrEmpty(firstName))
{
return firstName + GetSequenceString(Convert.ToInt32(randomString) + 1);
}
return null;
}
/// <summary>
/// The get sequence string.
/// </summary>
/// <param name="num">
/// The number.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
private static string GetSequenceString(int num)
{
if (num < 10)
{
return "000" + num;
}
if (num < 100)
{
return "00" + num;
}
if (num < 1000)
{
return "0" + num;
}
return num.ToString();
}
}
}
\ No newline at end of file
namespace Hims.Shared.DataFilters
{
using System;
using Library.Enums;
/// <summary>
/// The date time filter.
/// </summary>
public class DateTimeFilter
{
/// <summary>
/// The to est.
/// </summary>
/// <param name="dateUtc">
/// The date utc.
/// </param>
/// <param name="timeZone">
/// The time Zone.
/// </param>
/// <returns>
/// The <see cref="DateTime"/>.
/// </returns>
public static DateTime ToLocale(DateTime dateUtc, string timeZone) => TimeZoneInfo.ConvertTimeFromUtc(dateUtc, TimeZoneInfo.FindSystemTimeZoneById(timeZone));
/// <summary>
/// The to date.
/// </summary>
/// <param name="date">
/// The date.
/// </param>
/// <returns>
/// The <see cref="DateTime"/>.
/// </returns>
public static DateTime? ToDate(string date)
{
if (string.IsNullOrEmpty(date))
{
return null;
}
if (!date.Contains("-"))
{
return null;
}
var dt = date.Split('-');
return new DateTime(Convert.ToInt32(dt[0]), Convert.ToInt32(dt[1]), Convert.ToInt32(dt[2]));
}
/// <summary>
/// The to date.
/// </summary>
/// <param name="date">
/// The date.
/// </param>
/// <returns>
/// The <see cref="DateTime"/>.
/// </returns>
public static DateTime ToNotNullDate(string date)
{
var dt = date.Split('-');
return new DateTime(Convert.ToInt32(dt[0]), Convert.ToInt32(dt[1]), Convert.ToInt32(dt[2]));
}
/// <summary>
/// The to date.
/// </summary>
/// <param name="date">
/// The date.
/// </param>
/// <returns>
/// The <see cref="DateTime"/>.
/// </returns>
public static DateTime ToUTCDate(string date)
{
var dt = date.Split('-');
return new DateTime(Convert.ToInt32(dt[0]), Convert.ToInt32(dt[1]), Convert.ToInt32(dt[2])).ToUniversalTime();
}
/// <summary>
/// The to date time.
/// </summary>
/// <param name="dateTime">
/// The date time.
/// </param>
/// <returns>
/// The <see cref="DateTime"/>.
/// </returns>
public static DateTime? ToDateTime(string dateTime)
{
// 2019-04-10 10:50 PM
if (string.IsNullOrEmpty(dateTime))
{
return null;
}
var dtS = dateTime.Split('-');
var dtY = dtS[2].Split(' ');
var dtH = dtY[1].Trim().Split(':');
var hour = int.Parse(dtH[0]);
if (dtY[2].ToUpper() == "PM")
{
hour = (hour % 12) + 12;
}
var convertedDateTime = new DateTime(int.Parse(dtS[0]), int.Parse(dtS[1]), int.Parse(dtY[0]), hour, int.Parse(dtH[1]), 0);
return convertedDateTime;
}
/// <summary>
/// The to date time offset.
/// </summary>
/// <param name="dateTime">
/// The date time.
/// </param>
/// <returns>
/// The <see cref="DateTimeOffset"/>.
/// </returns>
public static DateTimeOffset? ToDateTimeOffset(string dateTime)
{
if (string.IsNullOrEmpty(dateTime))
{
return null;
}
var dtS = dateTime.Split('-');
var dtY = dtS[2].Split(' ');
var dtH = dtY[1].Trim().Split(':');
var hour = int.Parse(dtH[0]);
if (dtY[2].ToUpper() == "PM")
{
hour = (hour % 12) + 12;
}
var convertedDateTime = new DateTimeOffset(int.Parse(dtY[0]), int.Parse(dtS[1]), int.Parse(dtS[0]), hour, int.Parse(dtH[1]), 0, TimeZoneInfo.Local.GetUtcOffset(DateTime.Now));
return convertedDateTime;
}
/// <summary>
/// The difference between two dates.
/// </summary>
/// <param name="startDate">
/// The start date.
/// </param>
/// <param name="endDate">
/// The end date.
/// </param>
/// <param name="calendarType">
/// The calendar Type.
/// </param>
/// <returns>
/// The <see cref="int"/>.
/// </returns>
public static int Difference(DateTime startDate, DateTime endDate, CalendarType calendarType)
{
switch (calendarType)
{
case CalendarType.Years:
var difference = endDate.Year - startDate.Year;
if (startDate > endDate.AddYears(-difference))
{
difference--;
}
return difference;
case CalendarType.Hours:
var timeSpan = endDate - startDate;
return (int)timeSpan.TotalHours;
default:
return 0;
}
}
/// <summary>
/// The difference in minutes.
/// </summary>
/// <param name="startTime">
/// The start time.
/// </param>
/// <param name="endTime">
/// The end time.
/// </param>
/// <returns>
/// The <see cref="int"/>.
/// </returns>
public static int DifferenceInMinutes(TimeSpan startTime, TimeSpan endTime)
{
var totalHours = endTime - startTime;
var midNight = new TimeSpan(24, 0, 0);
if (startTime <= endTime)
{
return (int)totalHours.TotalMinutes;
}
var f1 = midNight - startTime;
totalHours = f1 + endTime;
return (int)totalHours.TotalMinutes;
}
}
}
\ No newline at end of file
namespace Hims.Shared.DataFilters
{
using System.Linq;
/// <summary>
/// The empty filter.
/// </summary>
public static class EmptyFilter
{
/// <summary>
/// The decrypt.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The model<see />.
/// </returns>
public static object Handler(object model)
{
var properties = model.GetType().GetProperties().Where(m => m.PropertyType == typeof(string));
foreach (var item in properties)
{
var value = (string)item.GetValue(model);
if (value == string.Empty || value == "null")
{
item.SetValue(model, null);
}
}
return model;
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Shared.DataFilters.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Shared.DataFilters.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>
<ItemGroup>
<ProjectReference Include="..\Hims.Shared.Library\Hims.Shared.Library.csproj" />
</ItemGroup>
</Project>
namespace Hims.Shared.DataFilters
{
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
/// <summary>
/// The list filter.
/// </summary>
public static class ListFilter
{
/// <summary>
/// The to data table.
/// </summary>
/// <param name="items">
/// The items.
/// </param>
/// <typeparam name="T">
/// The entity.
/// </typeparam>
/// <returns>
/// The <see cref="DataTable"/>.
/// </returns>
public static DataTable ToDataTable<T>(IEnumerable<T> items)
{
var dataTable = new DataTable(typeof(T).Name);
var props = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance);
foreach (var prop in props)
{
dataTable.Columns.Add(GetParameterValue(prop.Name));
}
foreach (var item in items)
{
var values = new object[props.Length];
for (var i = 0; i < props.Length; i++)
{
values[i] = props[i].GetValue(item, null);
}
dataTable.Rows.Add(values);
}
return dataTable;
}
/// <summary>
/// The to data table.
/// </summary>
/// <param name="items">
/// The items.
/// </param>
/// <param name="name">
/// The name.
/// </param>
/// <typeparam name="T">
/// The entity.
/// </typeparam>
/// <returns>
/// The <see cref="DataTable"/>.
/// </returns>
public static DataTable ToDataTable<T>(List<T> items, string name)
{
var dataTable = new DataTable(name);
var props = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance);
foreach (var prop in props)
{
dataTable.Columns.Add(GetParameterValue(prop.Name));
}
foreach (var item in items)
{
var values = new object[props.Length];
for (var i = 0; i < props.Length; i++)
{
values[i] = props[i].GetValue(item, null);
}
dataTable.Rows.Add(values);
}
return dataTable;
}
/// <summary>
/// The get columns.
/// </summary>
/// <typeparam name="T">
/// The entity.
/// </typeparam>
/// <returns>
/// The <see cref="List{T}"/>.
/// </returns>
public static List<string> GetColumns<T>()
{
var props = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance);
return props.Select(prop => GetParameterValue(prop.Name)).ToList();
}
/// <summary>
/// The distinct by.
/// </summary>
/// <param name="source">
/// The source.
/// </param>
/// <param name="keySelector">
/// The key selector.
/// </param>
/// <typeparam name="TSource">
/// The source model.
/// </typeparam>
/// <typeparam name="TKey">
/// The key.
/// </typeparam>
/// <returns>
/// The <see cref="IEnumerable{TSource}"/>.
/// </returns>
public static IEnumerable<TSource> DistinctBy<TSource, TKey>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
{
var seenKeys = new HashSet<TKey>();
foreach (var element in source)
{
if (seenKeys.Add(keySelector(element)))
{
yield return element;
}
}
}
/// <summary>
/// The contains all.
/// </summary>
/// <typeparam name="TSource">
/// The source model.
/// </typeparam>
/// <param name="source">
/// The source.
/// </param>
/// <param name="values">
/// The values.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
public static bool ContainsAll<TSource>(List<TSource> source, IEnumerable<TSource> values) => values.All(value => source.Contains(value));
/// <summary>
/// The get parameter value.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
private static string GetParameterValue(string value) => Regex.Replace(value, "_+", " ");
}
}
\ No newline at end of file
namespace Hims.Shared.DataFilters
{
using System.Text.RegularExpressions;
/// <summary>
/// The replace filter.
/// </summary>
public static class ReplaceFilter
{
/// <summary>
/// The replace.
/// </summary>
/// <param name="replaceWith">
/// The replace with.
/// </param>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string Replace(string replaceWith, string value)
{
value = Regex.Replace(value, string.Empty + replaceWith + string.Empty, string.Empty + replaceWith + replaceWith + string.Empty);
return value;
}
/// <summary>
/// The replace.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
public static string Replace(string value)
{
value = Regex.Replace(value, "'", "''");
value = Regex.Replace(value, "-", "--");
value = Regex.Replace(value, "@", "@@");
return value;
}
}
}
using Hims.Shared.Dapper.Attributes;
using Hims.Shared.Library.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Shared.EntityModels
{
/// <summary>
/// The anc card generation model.
/// </summary>
public class ANCCardGenerationModel
{
/// <summary>
/// Gets or sets the anc card generation identifier.
/// </summary>
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; }
/// <summary>
/// Gets or sets appointment Id.
/// </summary>
public int? AppointmentId { get; set; }
public DateTime? AppointmentDate { get; set; }
public TimeSpan? AppointmentTime { get; set; }
public string? ConsultantDoctor { get; set; }
public bool IsAdmission { get; set; }
public string? JsonString { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public OBEncounterType Type { get; set; }
/// <summary>
/// Gets or sets the modified by.
/// </summary>
public int? ModifiedBy { get; set; }
public int? ObEncounterId { get; set; }
public string? ProviderName { get; set; }
}
public class OrderPrescriptions
{
public int? AppointmentId { get; set; }
public string? OrderPrescription { get; set; }
public DateTime? AppointmentDate { get; set; }
public TimeSpan? AppointmentTime { get; set; }
public string? ProviderName { get; set; }
public string? EncryptedAppointmentId { get; set; }
public object Labs { get; set; }
public object Medications { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The account credential.
/// </summary>
public class AccountCredentialModel
{
/// <summary>
/// Gets or sets the account credential id.
/// </summary>
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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The account.
/// </summary>
public class AccountModel
{
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int AccountId { get; set; }
/// <summary>
/// Gets or sets the role id.
/// </summary>
public int RoleId { get; set; }
/// <summary>
/// Gets or sets the role name.
/// </summary>
public string? RoleName { get; set; }
/// <summary>
/// Gets or sets the reference id.
/// </summary>
public int ReferenceId { get; set; }
/// <summary>
/// Gets or sets the salt key.
/// </summary>
public string SaltKey { get; set; } = string.Empty;
/// <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; } = string.Empty;
/// <summary>
/// Gets or sets the country id.
/// </summary>
public int CountryId { get; set; }
/// <summary>
/// Gets or sets the country code.
/// </summary>
public string? CountryCode { 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 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 a value manual verified.
/// </summary>
public bool? PasswordExist { 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 the created by.
/// </summary>
public int? CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 status.
/// </summary>
public char? Status { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the Patient Guid.
/// </summary>
public Guid PatientGuid { get; set; }
/// <summary>
/// Gets or sets the Description.
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the location identifiers.
/// </summary>
/// <value>
/// The location identifiers.
/// </value>
public string? LocationIdentifiers { get; set; }
/// <summary>
/// Gets or sets the user name.
/// </summary>
public string? UserName { get; set; }
}
}
\ No newline at end of file
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The account session.
/// </summary>
public class AccountSessionModel
{
/// <summary>
/// Gets or sets the account session id.
/// </summary>
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>
public DateTime CreatedDate { get; set; }
}
}
\ No newline at end of file
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment.
/// </summary>
public class AdmissionModel
{
public int? CounsellingId { get; set; }
/// <summary>
/// Gets or sets the admission id.
/// </summary>
public int AdmissionId { get; set; }
/// <summary>
/// Gets or sets the encrypted admission id.
/// </summary>
public string EncryptedAdmissionId { get; set; }
/// <summary>
/// Gets or sets the wardid.
/// </summary>
public string? FloorName { get; set; }
/// <summary>
/// Gets or sets the discharge id.
/// </summary>
public int? DischargeId { 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; }
/// <summary>
/// Gets or sets the admission time.
/// </summary>
public TimeSpan? AdmissionTime { get; set; }
/// <summary>
/// Gets or sets the admission time string.
/// </summary>
public string AdmissionTimeString { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { 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 provider name.
/// </summary>
public string ProviderName { get; set; }
/// <summary>
/// Gets or sets the provider gender.
/// </summary>
public string ProviderGender { get; set; }
/// <summary>
/// Gets or sets the is maternity.
/// </summary>
public bool? swap { get; set; }
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int? BedStatusId { get; set; }
/// <summary>
/// Gets or sets the provider age.
/// </summary>
public int ProviderAge { get; set; }
/// <summary>
/// Gets or sets the provider thumbnail url.
/// </summary>
public string? ProviderThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int DepartmentId { get; set; }
/// <summary>
/// Gets or sets the department name.
/// </summary>
public string DepartmentName { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the encrypted patient id.
/// </summary>
public string EncryptedPatientId { get; set; }
/// <summary>
/// Gets or sets the patient family member name.
/// </summary>
public string? FamilyMemberName { get; set; }
/// <summary>
/// Gets or sets the patient relation with family member.
/// </summary>
public string? Relation { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public string PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public int PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient type.
/// </summary>
public char? PatientType { get; set; }
/// <summary>
/// Gets or sets the ward id.
/// </summary>
public int? WardId { get; set; }
/// <summary>
/// Gets or sets the room id.
/// </summary>
public int? RoomId { get; set; }
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int? BedId { get; set; }
/// <summary>
/// Gets or sets the ward name.
/// </summary>
public string WardName { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string RoomName { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? BedAssociatedData { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? NRIData { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? SurrogacyData { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? EmergencyInfo { get; set; }
/// <summary>
/// Gets or sets the bed number.
/// </summary>
public string BedNumber { 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; } = string.Empty;
/// <summary>
/// Gets or sets the babys fathers name.
/// </summary>
public string BabysMothersAdmissionNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public string? EncounterType { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created by name.
/// </summary>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the created by role name.
/// </summary>
public string CreatedByRoleName { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 modified by name.
/// </summary>
public string ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the modified by role name.
/// </summary>
public string ModifiedByRoleName { get; set; }
/// <summary>
/// Gets or sets the surgery type id.
/// </summary>
public int? SurgeryTypeId { get; set; }
/// <summary>
/// Gets or sets the surgery name.
/// </summary>
public string SurgeryName { 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 discharge date.
/// </summary>
public DateTime? DischargeDate { get; set; }
/// <summary>
/// Gets or sets the discharge time.
/// </summary>
public TimeSpan? DischargeTime { get; set; }
/// <summary>
/// Gets or sets the discharge time string.
/// </summary>
public string DischargeTimeString { get; set; }
/// <summary>
/// Gets or sets the discharge status.
/// </summary>
public string DischargeStatus { get; set; }
/// <summary>
/// Gets or sets the paid amount.
/// </summary>
public decimal? PaidAmount { get; set; }
/// <summary>
/// Gets or sets the final amount.
/// </summary>
public decimal? FinalAmount { get; set; }
/// <summary>
/// Gets or sets the payment status.
/// </summary>
public string? PaymentStatus { get; set; }
/// <summary>
/// Gets or sets the is final bill.
/// </summary>
public bool? IsFinalBill { get; set; }
/// <summary>
/// Gets or sets the Log From.
/// </summary>
public short LogFrom { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
/// <value>
/// The total items.
/// </value>
public short TotalItems { get; set; }
/// <summary>
/// Gets or sets the UMR number.
/// </summary>
public string? UMRNo { get; set; }
/// <summary>
/// Gets or sets the internal medicine identifier.
/// </summary>
/// <value>
/// The internal medicine identifier.
/// </value>
public int? InternalMedicineId { get; set; }
/// <summary>
/// Gets or sets the follow up days for ip.
/// </summary>
public int? FollowUpDaysForIp { get; set; }
/// <summary>
/// Gets or sets the expected discharge date.
/// </summary>
/// <value>
/// The expected discharge date.
/// </value>
public DateTime? ExpectedDischargeDate { get; set; }
///// <summary>
///// Gets or sets the pending medicines.
///// </summary>
///// <value>
///// The pending medicines.
///// </value>
//public int? PendingMedicines { get; set; }
///// <summary>
///// Gets or sets the progress report identifier.
///// </summary>
///// <value>
///// The progress report identifier.
///// </value>
//public int? ProgressReportId { get; set; }
/// <summary>
/// Gets or sets the DischargeBy (AccountId).
/// </summary>
public int? DischargedBy { get; set; }
/// <summary>
/// Gets or sets the DischargeByRole (RoleName).
/// or if is provider then (DepartmentName)
/// </summary>
public string? DischargedByRole { get; set; }
/// <summary>
/// Gets or sets the DischargedByName
/// name of person who updated the discharged date
/// </summary>
public string? DischargedByName { 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 breakfast.
/// </summary>
/// <value>
/// The breakfast.
/// </value>
public TimeSpan? Breakfast { get; set; }
/// <summary>
/// Gets or sets the lunch.
/// </summary>
/// <value>
/// The lunch.
/// </value>
public TimeSpan? Lunch { get; set; }
/// <summary>
/// Gets or sets the dinner.
/// </summary>
/// <value>
/// The dinner.
/// </value>
public TimeSpan? Dinner { get; set; }
/// <summary>
/// Gets or sets the breakfast.
/// </summary>
/// <value>
/// The breakfast.
/// </value>
public string BreakfastStr { get; set; }
/// <summary>
/// Gets or sets the lunch.
/// </summary>
/// <value>
/// The lunch.
/// </value>
public string LunchStr { get; set; }
/// <summary>
/// Gets or sets the dinner.
/// </summary>
/// <value>
/// The dinner.
/// </value>
public string DinnerStr { 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 name of the location.
/// </summary>
/// <value>
/// The name of the location.
/// </value>
public string? LocationName { get; set; }
/// <summary>
/// Gets or sets the service order.
/// </summary>
/// <value>
/// The name of the service order.
/// </value>
public int? ServiceOrder { 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 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 charge category identifier.
/// </summary>
/// <value>
/// The charge category identifier.
/// </value>
public int? ChargeCategoryId { get; set; }
/// <summary>
/// Gets or sets the name of the charge category.
/// </summary>
/// <value>
/// The name of the charge category.
/// </value>
public string ChargeCategoryName { get; set; }
/// <summary>
/// Gets or sets the admission package identifier.
/// </summary>
/// <value>
/// The admission package identifier.
/// </value>
public int? AdmissionPackageId { get; set; }
/// <summary>
/// Gets or sets the package module identifier.
/// </summary>
/// <value>
/// The package module identifier.
/// </value>
public int? PackageModuleId { get; set; }
/// <summary>
/// Gets or sets the admission bed change request identifier.
/// </summary>
/// <value>
/// The admission bed change request identifier.
/// </value>
public int? AdmissionBedChangeRequestId { 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 category names.
/// </summary>
/// <value>
/// The charge category names.
/// </value>
public string? ChargeCategoryNames { get; set; }
/// <summary>
/// Gets or sets the current room identifier.
/// </summary>
/// <value>
/// The current room identifier.
/// </value>
public int? CurrentRoomId { get; set; }
/// <summary>
/// Gets or sets the name of the current room.
/// </summary>
/// <value>
/// The name of the current room.
/// </value>
public string? CurrentRoomName { get; set; }
/// <summary>
/// Gets or sets the doctor unit name.
/// </summary>
/// <value>
/// The doctor unit name.
/// </value>
public string? UnitName { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Shared.EntityModels
{
public class AdmissionTransferRequestModel
{
/// <summary>
/// Gets or sets the admission transfer request id.
/// </summary>
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>
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 full name.
/// </summary>
public string? FullName { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? ChargeCategoryName { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? UnitName { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? CreatedByName { 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 string? 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 full name.
/// </summary>
public string? ApprovedByName { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? ChangeRequestType { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public int? BedId { get; set; }
/// <summary>
/// Gets or sets the RejectedBy.
/// </summary>
public int? RejectedBy { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? RejectedByName { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public DateTime? RejectedDate { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int? TotalItems { get; set; }
/// <summary>
/// Gets or sets the page index.
/// </summary>
public int? PageIndex { get; set; }
/// <summary>
/// Gets or sets the page size.
/// </summary>
public int? PageSize { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Shared.EntityModels
{
public class AmbulanceModel
{
/// <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 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>
/// Gets or sets the ambulance created name.
/// </summary>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the ambulance modified name.
/// </summary>
public string ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the location id.
/// </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.Shared.EntityModels
{
public class AmbulanceRecieptModel
{
/// <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>
/// Gets or sets the ambulance reciept created name.
/// </summary>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the ambulance reciept modified name.
/// </summary>
public string ModifiedByName { get; set; }
/// <summary>
/// get or set ModifiedBy
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the ambulance reciept created name.
/// </summary>
public string AmbulanceNo { get; set; }
/// <summary>
/// Gets or sets the ambulance reciept modified name.
/// </summary>
public string DriverDetailName { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment.
/// </summary>
public class AppointmentDashboardModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the encrypted appointment id.
/// </summary>
public string? EncryptedAppointmentId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted patient id.
/// </summary>
public string? EncryptedPatientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient account id.
/// </summary>
public int PatientAccountId { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string? PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public char? PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient marital status.
/// </summary>
public char? PatientMaritalStatus { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient email.
/// </summary>
public string? PatientEmail { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short? PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string? PatientCountryCode { 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; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public string? EncounterType { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription.
/// </summary>
public bool IsPrescription { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is full transcript.
/// </summary>
public bool IsFullTranscript { get; set; }
/// <summary>
/// Gets or sets the provider identifier.
/// </summary>
/// <value>
/// The provider identifier.
/// </value>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the provider location identifier.
/// </summary>
/// <value>
/// The provider location identifier.
/// </value>
public int ProviderLocationId { get; set; }
/// <summary>
/// Gets or sets the name of the provider.
/// </summary>
/// <value>
/// The name of the provider.
/// </value>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the queue status.
/// </summary>
/// <value>
/// The queue status.
/// </value>
public string? QueueStatus { get; set; }
/// <summary>
/// Gets or sets the umrno.
/// </summary>
/// <value>
/// The queue umrno.
/// </value>
public string? UMRNo { get; set; }
/// <summary>
/// Gets or sets the consultationTypeId.
/// </summary>
/// <value>
/// The consultationTypeId.
/// </value>
public int? ConsultationTypeId { get; set; }
/// <summary>
/// Gets or sets the specializationId.
/// </summary>
/// <value>
/// The queue specializationId.
/// </value>
public int? SpecializationId { get; set; }
/// <summary>
/// Gets or sets the providerAvailabilityId.
/// </summary>
/// <value>
/// The queue providerAvailabilityId.
/// </value>
public int? ProviderAvailabilityId { get; set; }
/// <summary>
/// Gets or sets the provider mail id.
/// </summary>
/// <value>
/// The queue provider mail id.
/// </value>
public string? ProviderEmail { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
/// <value>
/// The room name.
/// </value>
public string? RoomName { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment exception log.
/// </summary>
public class AppointmentExceptionLogModel
{
/// <summary>
/// Gets or sets the appointment exception log id.
/// </summary>
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>
public int? AppointmentId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether payment status.
/// </summary>
public bool PaymentStatus { get; set; }
/// <summary>
/// Gets or sets the exception date.
/// </summary>
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 System;
using System.Collections.Generic;
using System.Text;
namespace Hims.Shared.EntityModels
{
public class AppointmentHangfireMapModel
{
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; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment log.
/// </summary>
public class AppointmentLogModel
{
/// <summary>
/// Gets or sets the appointment log id.
/// </summary>
public int AppointmentLogId { get; set; }
/// <summary>
/// Gets or sets the provider location id.
/// </summary>
public int? ProviderLocationId { get; set; }
/// <summary>
/// Gets or sets the provider location id.
/// </summary>
public int ProviderAvailabilityId { get; set; }
/// <summary>
/// Gets or sets the provider location id.
/// </summary>
public int ConsultationTypeId { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the provider thumbnail url.
/// </summary>
public string? ProviderThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the practice name.
/// </summary>
public string? PracticeName { get; set; }
/// <summary>
/// Gets or sets the provider location.
/// </summary>
public string? ProviderLocation { get; set; }
/// <summary>
/// Gets or sets the currency symbol.
/// </summary>
public char CurrencySymbol { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient first name.
/// </summary>
public string? PatientFirstName { get; set; }
/// <summary>
/// Gets or sets the patient last name.
/// </summary>
public string? PatientLastName { get; set; }
/// <summary>
/// Gets or sets the patient email.
/// </summary>
public string? PatientEmail { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient country name.
/// </summary>
public string? PatientCountryName { 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 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 end time.
/// </summary>
public TimeSpan AppointmentEndTime { 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 discount.
/// </summary>
public decimal Discount { 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 total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the percentage.
/// </summary>
public double? Percentage { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int? DepartmentId { get; set; }
/// <summary>
/// Gets or sets payment type.
/// </summary>
public string? PaymentType { 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 follow up days.
/// </summary>
public short? FollowUpDays { 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 appointment identifier.
/// </summary>
/// <value>
/// The appointment identifier.
/// </value>
public int? AppointmentTypeId { get; set; }
/// <summary>
/// Gets or sets the visitype identifier.
/// </summary>
/// <value>
/// The visitype identifier.
/// </value>
public int? VisitTypeId { get; set; }
/// <summary>
/// Gets or sets the chargetype identifier.
/// </summary>
/// <value>
/// The chargetype identifier.
/// </value>
public int? ChargeTypesId { get; set; }
/// <summary>
/// Gets or sets the appointment identifier.
/// </summary>
/// <value>
/// The appointment identifier.
/// </value>
public int PayTypeId { get; set; }
/// <summary>
/// Gets or sets the token number.
/// </summary>
/// <value>
/// The token number.
/// </value>
public int TokenNumber { get; set; }
/// <summary>
/// Gets or sets the SpecializationId.
/// </summary>
/// <value>
/// The SpecializationId.
/// </value>
public int? SpecializationId { get; set; }
/// <summary>
/// Gets or sets the registration charges.
/// this value is used to add in Patient table (while inserting new patient either identify or unidentify patient.)
/// </summary>
public decimal? PatientRegistrationCharges { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment.
/// </summary>
public class AppointmentModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is admission.
/// </summary>
/// <value>
/// <c>true</c> if this instance is admission; otherwise, <c>false</c>.
/// </value>
public bool IsAdmission { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the encrypted appointment id.
/// </summary>
public string? EncryptedAppointmentId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted patient id.
/// </summary>
public string? EncryptedPatientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted provider id.
/// </summary>
public string? EncryptedProviderId { get; set; } = string.Empty;
/// <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 provider name.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the reason.
/// </summary>
public string? Reason { get; set; }
/// <summary>
/// Gets or sets the provider gender.
/// </summary>
public string? ProviderGender { get; set; }
/// <summary>
/// Gets or sets the provider age.
/// </summary>
public short? ProviderAge { get; set; }
/// <summary>
/// Gets or sets the provider thumbnail url.
/// </summary>
public string? ProviderThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the appointment end time.
/// </summary>
public TimeSpan AppointmentEndTime { get; set; }
/// <summary>
/// Gets or sets the practice name.
/// </summary>
public string? PracticeName { get; set; }
/// <summary>
/// Gets or sets the provider location.
/// </summary>
public string? ProviderLocation { get; set; }
/// <summary>
/// Gets or sets the currency symbol.
/// </summary>
public char? CurrencySymbol { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient account id.
/// </summary>
public int PatientAccountId { get; set; }
/// <summary>Gets or sets the provider account id.</summary>
public int ProviderAccountId { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string? PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public char? PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient email.
/// </summary>
public string? PatientEmail { get; set; }
/// <summary>
/// Gets or sets the provider mobile.
/// </summary>
public string? ProviderMobile { get; set; }
/// <summary>
/// Gets or sets the provider email.
/// </summary>
public string? ProviderEmail { get; set; }
/// <summary>Gets or sets the enable email alerts.</summary>
public bool? EnableEmailAlerts { get; set; }
/// <summary>Gets or sets the enable sms alerts.</summary>
public bool? EnableSMSAlerts { get; set; }
/// <summary>Gets or sets the enable desktop notifications.</summary>
public bool? EnableDesktopNotifications { get; set; }
/// <summary>Gets or sets the enable mobile notifications.</summary>
public bool? EnableMobileNotifications { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short? PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient country id.
/// </summary>
public int PatientCountryId { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string? PatientCountryCode { get; set; }
/// <summary>
/// Gets or sets the provider country id.
/// </summary>
public int ProviderCountryId { get; set; }
/// <summary>
/// Gets or sets the provider country code.
/// </summary>
public string? ProviderCountryCode { 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 previous appointment no.
/// </summary>
public string PreviousAppointmentNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the previous admission no.
/// </summary>
public string PreviousAdmissionNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public DateTime AppointmentDate { get; set; }
/// <summary>
/// Gets or sets the previous appointment date.
/// </summary>
public DateTime? AppointmentPreviousDate { get; set; }
/// <summary>
/// Gets or sets the previous admission discharge date.
/// </summary>
public DateTime? AdmissionDischargeDate { get; set; }
/// <summary>
/// Gets or sets the previous admission discharge time.
/// </summary>
public TimeSpan? AdmissionDischargeTime { get; set; }
/// <summary>
///
/// </summary>
public TimeSpan? AppointmentPreviousTime { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentTime { get; set; }
/// <summary>
/// Gets or sets the appointment date time.
/// </summary>
public string? AppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the old appointment date time.
/// </summary>
public string? OldAppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? PreviousAppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the admission discharge TimeString
/// </summary>
public string? PreviousAdmissionDischargeTimeString { 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 discount.
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Gets or sets the amount.
/// </summary>
public decimal? PatAmount { get; set; }
/// <summary>
/// Gets or sets the discount.
/// </summary>
public decimal? PatDiscount { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the app charges.
/// </summary>
public decimal AppCharges { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
public string? Status { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public string? EncounterType { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription.
/// </summary>
public bool IsPrescription { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is full transcript.
/// </summary>
public bool IsFullTranscript { get; set; }
/// <summary>
/// Gets or sets the patient guid.
/// </summary>
public string? PatientGuid { get; set; }
/// <summary>
/// Gets or sets the provider guid.
/// </summary>
public string? ProviderGuid { get; set; }
/// <summary>Gets or sets the patient document count.</summary>
public int? PatientDocumentCount { get; set; }
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int? CallStatus { get; set; }
/// <summary>
/// Gets or sets the call status text.
/// </summary>
public string? CallStatusText { get; set; }
/// <summary>
/// Gets or sets the patient call status.
/// </summary>
public int? PatientCallStatus { get; set; }
/// <summary>
/// Gets or sets the caller name.
/// </summary>
public string? CallerName { get; set; }
/// <summary>
/// Gets or sets the video call status.
/// </summary>
public int? VideoCallStatus { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? RoomName { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? Domain { get; set; }
/// <summary>
/// Gets or sets the symptoms.
/// </summary>
public string? Symptoms { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is online.
/// </summary>
public bool IsOnline { get; set; }
/// <summary>
///
/// </summary>
public string? Delay { get; set; }
/// <summary>
/// Gets or sets the patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the log From.
/// </summary>
public short LogFrom { get; set; }
/// <summary>
/// Gets or sets the doctor message count.
/// </summary>
public int? DoctorMessageCount { get; set; }
/// <summary>
/// Gets or sets the patient message count.
/// </summary>
public int? PatientMessageCount { get; set; }
/// <summary>
/// Gets or sets the wallet amount.
/// </summary>
public decimal? WalletAmount { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int? DepartmentId { get; set; }
/// <summary>
/// Gets or sets the department name.
/// </summary>
public string? DepartmentName { get; set; }
/// <summary>
/// Gets or sets the UMR number.
/// </summary>
public string? UMRNo { get; set; }
/// <summary>
/// Gets or sets the patient marital status.
/// </summary>
public string? PatientMaritalStatus { get; set; }
/// <summary>
/// Gets or sets payment status.
/// </summary>
public bool? PaymentStatus { get; set; }
///// <summary>
///// Gets or sets payment type Id for fetching
///// </summary>
public char? PaymentType { get; set; }
/// <summary>
/// Gets or sets pay Type Name.
/// </summary>
public string? PayTypeName { get; set; }
/// <summary>
/// Gets or sets payment number.
/// </summary>
public string? PaymentNumber { get; set; }
/// <summary>
/// Gets or sets is active admission exists.
/// </summary>
public bool? IsActiveAdmissionExists { get; set; }
/// <summary>
/// Gets or sets street address.
/// </summary>
public string? StreetAddress { get; set; }
/// <summary>
/// Gets or sets city.
/// </summary>
public string? City { get; set; }
/// <summary>
/// Gets or sets state.
/// </summary>
public string? State { get; set; }
/// <summary>
/// Gets or sets zipcode.
/// </summary>
public string? Zipcode { 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 follow up days.
/// </summary>
public short? FollowUpDays { get; set; }
/// <summary>
/// Gets or sets the
/// </summary>
public long? FreeVisitsCount { get; set; }
/// <summary>
/// Gets or sets he free follow up days limit.
/// </summary>
public int? FreeFollowUpDaysLimit { get; set; }
/// <summary>
/// Gets or sets the free follow up days .
/// </summary>
public int? FreeFollowUpDays { get; set; }
/// <summary>
/// Gets or sets the start date.
/// </summary>
public string? StartDate { get; set; }
/// <summary>
/// Gets or sets the end date.
/// </summary>
public string? EndDate { get; set; }
/// <summary>
/// Gets or sets the start time.
/// </summary>
public string? StartTime { get; set; }
/// <summary>
/// Gets or sets the end time.
/// </summary>
public string? EndTime { get; set; }
/// <summary>
/// Gets or sets AadharNo.
/// </summary>
public string? AadharNo { get; set; }
/// <summary>
/// Gets or sets the Referred by.
/// </summary>
public string? ReferredBy { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? ReferredByName { 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 encounter type.
/// </summary>
public string? CreatedByName { get; set; }
/// <summary>
/// Gets or sets the checked in.
/// </summary>
public DateTime? CheckedIn { get; set; }
/// <summary>
/// Gets or sets the checked out.
/// </summary>
public DateTime? CheckedOut { get; set; }
/// <summary>
/// Gets or sets the location id.
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the tat.
/// </summary>
public int? Tat { get; set; }
/// <summary>
/// Gets or sets the queue status.
/// </summary>
/// <value>
/// The queue status.
/// </value>
public string QueueStatus { get; set; }
/// <summary>
/// Gets or sets the queue status.
/// </summary>
/// <value>
/// The queue status.
/// </value>
public int QueueStatusId { get; set; }
/// <summary>
/// Gets or sets the FatherOrHusband name.
/// </summary>
public string? FatherOrHusband { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string? ChargeTypesName { get; set; }
/// <summary>
/// Gets or sets
/// </summary>
public int PayType { get; set; }
/// <summary>
/// Gets or sets the location name.
/// </summary>
public string? LocationName { get; set; }
/// <summary>
/// Gets or sets the specialization names.
/// </summary>
public string? SpecializationNames { get; set; }
/// <summary>
/// Gets or sets the languages.
/// </summary>
public string? Languages { 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; }
/// <summary>
/// Gets or sets the token number.
/// </summary>
/// <value>
/// The token number.
/// </value>
public int TokenNumber { get; set; }
/// <summary>
/// Gets or sets the is referredby.
/// </summary>
public string? PatientReferredName { get; set; }
/// <summary>
/// Gets or sets the waiting count.
/// </summary>
/// <value>
/// The waiting count.
/// </value>
public int? WaitingCount { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailHeadersId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? ReplyEmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the status name.
/// </summary>
public string StatusName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment status id.
/// </summary>
public int AppointmentStatusId { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public bool IsCc { get; set; }
/// <summary>
/// Gets or sets the telemedicine ids.
/// </summary>
public string? TelemedicineIds { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public int? CallerRoleId { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public bool? IsUTC { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public string? Specializations { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public bool EnableMobileAudioCall { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool IsPrescriptionBlink { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool? IsTaskDone { get; set; }
/// <summary>
/// Gets or sets the is no of emails.
/// </summary>
public int? NoOfEmails { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Is panic option.
/// </summary>
public bool? IsPanicOption { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusDate { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusModifiedDate { get; set; }
/// <summary>
/// Gets or sets the in progress.
/// </summary>
/// <value>
/// The in progress.
/// </value>
public bool? InProgress { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallType { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallTypeName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallerCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallerCallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? ReceiverCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? ReceiverCallStatusName { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? CallerCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? ReceiverCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the telemedicine duration.
/// </summary>
public int? TelemedicineDuration { get; set; }
/// <summary>
/// Gets or sets the is require emergency appointment.
/// </summary>
public bool? IsRequireEmergencyAppointment { get; set; }
/// <summary>
/// Gets or sets the active users.
/// </summary>
public string? ActiveUsers { get; set; }
/// <summary>
/// Gets or sets the id proof name.
/// </summary>
public string? IdProofName { get; set; }
/// <summary>
/// Gets or sets the id proof name.
/// </summary>
public string? IdProofValue { get; set; }
/// <summary>
/// Gets or sets the appointment type name.
/// </summary>
public string? AppointmentTypeName { get; set; }
/// <summary>
///
/// </summary>
public DateTime? QueueEndDate { get; set; }
/// <summary>
///
/// </summary>
public DateTime? QueueStartDate { get; set; }
/// <summary>
/// Gets or sets the difference between queue start and queue end date.
/// </summary>
public double? Minutes { get; set; }
/// <summary>
/// Gets or sets patient payment status.
/// </summary>
public bool? PatientPaymentStatus { get; set; }
/// <summary>
/// Gets or sets the patient reg amount.
/// </summary>
public decimal? PatientRegistrationAmount { get; set; }
/// <summary>
/// Gets or sets the visitor name.
/// </summary>
public string VisitorName { get; set; }
/// <summary>
/// Gets or sets the specialization id.
/// </summary>
public int? SpecializationId { get; set; }
/// <summary>
/// Gets or sets the specialization name.
/// </summary>
public string? SpecializationName { get; set; }
/// <summary>
/// Gets or sets TransactionId.
/// </summary>
public string? TransactionId { get; set; }
/// <summary>
/// Gets or sets the provider availability id.
/// </summary>
public int ProviderAvailabilityId { get; set; }
/// <summary>
/// Gets or sets the provider availability id.
/// </summary>
public int ConsultationTypeId { get; set; }
/// <summary>
/// Gets or sets the is web.
/// </summary>
public bool IsWeb { get; set; }
/// <summary>
/// Gets or sets the is patient app.
/// </summary>
public bool IsPatientApp { get; set; }
/// <summary>
/// Gets or sets the is salucro.
/// </summary>
public bool IsSalucro { get; set; }
/// <summary>
/// Gets or sets the is encounter.
/// </summary>
public bool IsEncounter { get; set; }
/// <summary>
/// Gets or sets the name of the cubicle.
/// </summary>
/// <value>
/// The name of the cubicle.
/// </value>
public string CubicleName { get; set; }
/// <summary>
/// Gets or sets the receiptCreatedByName.
/// </summary>
/// <value>
/// The name of the cubicle.
/// </value>
public string ReceiptCreatedByName { get; set; }
/// <summary>
/// Gets or sets the checked out.
/// </summary>
public DateTime? ReceiptDate { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal AptRefundAmt { get; set; }
/// <summary>
/// Gets or sets the receipt id.
/// </summary>
public int? ReceiptId { get; set; }
/// <summary>
/// Gets or sets the name of the cancelType.
/// </summary>
/// <value>
/// The name of the cancel type for cancellation.
/// </value>
public string CancelType { get; set; }
/// <summary>
/// Gets or sets the transaction.
/// </summary>
public string? Transaction { get; set; }
/// <summary>
/// Gets or sets the transaction id.
/// </summary>
public int? SalucroStatusCode { get; set; }
/// <summary>
/// Gets or sets the transaction id.
/// </summary>
public string? SalucroTransactionId { get; set; }
/// <summary>
/// Gets or sets the message.
/// </summary>
public string Message { get; set; }
/// <summary>
/// Gets or sets the count of message.
/// </summary>
public int MessageCount { get; set; }
/// <summary>
/// Gets or sets the total amount.
/// </summary>
public decimal? TotalAmount { get; set; }
public decimal? Charges { 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; }
/// <summary>
/// Gets or sets referenceId.
/// </summary>
public int? ReferenceId { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? PatientSalutation { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? PatientRelation { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? Area { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public DateTime? LastConsultedDate { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? LastConsultedDoctor { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public decimal? LastPaidAmount { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? NextAppointment { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? HWCCategory { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public DateTime? FollowUpValidityDate { get; set; }
/// <summary>
/// Gets or sets the last appointment time.
/// </summary>
public string? LastConsultedTime { 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? AuthorityId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? ReasonId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public string? Remarks { get; set; }
public string? EncounterName { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? ModuleType { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public string? TypeOfPayment { get; set; }
public bool IsEmergency { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// this url contains google maps location of hospital
/// </summary>
public string? MapUrl { get; set; }
public int? TransactionCount { get; set; }
/// <summary>
/// Gets or sets the consultation name.
/// </summary>
public string? ConsultationName { get; set;}
public bool? IsAppointmentClosed { get; set; }
/// <summary>
/// Gets or sets the patient discount in percentage.
/// </summary>
public decimal? PatientDiscountInPercentage { get; set; }
/// <summary>
/// Gets or sets the patient discount in rupees.
/// </summary>
public decimal? PatientDiscountInRupees { get; set; }
/// <summary>
/// Gets or sets the patient total.
/// </summary>
public decimal? PatientTotal { get; set; }
/// <summary>
/// Gets or sets the appointment discount in percentage.
/// </summary>
public decimal? AppointmentDiscountInPercentage { get; set; }
/// <summary>
/// Gets or sets the appointment discount in rupees.
/// </summary>
public decimal AppointmentDiscountInRupees { get; set; }
/// <summary>
/// Gets or sets the appointment total.
/// </summary>
public decimal AppointmentTotal { get; set; }
/// <summary>
/// Gets or sets the appointment discount in percentage.
/// </summary>
public decimal DiscountInPercentage { get; set; }
public int? CounsellingId { get; set; }
public bool IsDraftCounselling { get; set; }
/// <summary>
/// Gets or sets the appointment total.
/// </summary>
public decimal AfterDiscount { get; set; }
/// <summary>
/// Gets or sets the IsHealthCard.
/// </summary>
public bool? IsHealthCard { get; set; }
/// <summary>
/// Gets or sets the AddressLine2.
/// </summary>
public string? AddressLine2 { get; set; }
/// <summary>
/// Gets or sets the session id.
/// </summary>
public int? SessionId { get; set; }
public bool? IsEncounterClosed { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The Appointment new model
/// </summary>
public class AppointmentNewModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailHeadersId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? ReplyEmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the encrypted appointment id.
/// </summary>
public string? EncryptedAppointmentId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted patient id.
/// </summary>
public string? EncryptedPatientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted provider id.
/// </summary>
public string? EncryptedProviderId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the provider location id.
/// </summary>
public int ProviderLocationId { get; set; }
/// <summary>
/// Gets or sets the location id.
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the reason.
/// </summary>
public string? Reason { get; set; }
/// <summary>
/// Gets or sets the provider gender.
/// </summary>
public string? ProviderGender { get; set; }
/// <summary>
/// Gets or sets the provider age.
/// </summary>
public short? ProviderAge { get; set; }
/// <summary>
/// Gets or sets the provider thumbnail url.
/// </summary>
public string? ProviderThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the practice name.
/// </summary>
public string? PracticeName { get; set; }
/// <summary>
/// Gets or sets the provider location.
/// </summary>
public string? ProviderLocation { get; set; }
/// <summary>
/// Gets or sets the currency symbol.
/// </summary>
public char CurrencySymbol { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient account id.
/// </summary>
public int PatientAccountId { get; set; }
/// <summary>Gets or sets the provider account id.</summary>
public int ProviderAccountId { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string? PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public char? PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient email.
/// </summary>
public string? PatientEmail { get; set; }
/// <summary>
/// Gets or sets the provider mobile.
/// </summary>
public string? ProviderMobile { get; set; }
/// <summary>
/// Gets or sets the provider email.
/// </summary>
public string? ProviderEmail { get; set; }
/// <summary>Gets or sets the enable email alerts.</summary>
public bool? EnableEmailAlerts { get; set; }
/// <summary>Gets or sets the enable sms alerts.</summary>
public bool? EnableSMSAlerts { get; set; }
/// <summary>Gets or sets the enable desktop notifications.</summary>
public bool? EnableDesktopNotifications { get; set; }
/// <summary>Gets or sets the enable mobile notifications.</summary>
public bool? EnableMobileNotifications { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short? PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the patient country id.
/// </summary>
public int PatientCountryId { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string? PatientCountryCode { get; set; }
/// <summary>
/// Gets or sets the provider country id.
/// </summary>
public int ProviderCountryId { get; set; }
/// <summary>
/// Gets or sets the provider country code.
/// </summary>
public string? ProviderCountryCode { 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 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 previous appointment date.
/// </summary>
public DateTime? AppointmentPreviousDate { get; set; }
/// <summary>
///
/// </summary>
public TimeSpan? AppointmentPreviousTime { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentTime { get; set; }
/// <summary>
/// Gets or sets the appointment date time.
/// </summary>
public string? AppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the old appointment date time.
/// </summary>
public string? OldAppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? AppointmentTimeString { 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 discount.
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the app charges.
/// </summary>
public decimal AppCharges { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
public string Status { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the status name.
/// </summary>
public string StatusName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment status id.
/// </summary>
public int AppointmentStatusId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public bool IsCc { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public string? EncounterType { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription.
/// </summary>
public bool IsPrescription { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is full transcript.
/// </summary>
public bool IsFullTranscript { get; set; }
/// <summary>
/// Gets or sets the patient guid.
/// </summary>
public string? PatientGuid { get; set; }
/// <summary>
/// Gets or sets the provider guid.
/// </summary>
public string? ProviderGuid { get; set; }
/// <summary>Gets or sets the patient document count.</summary>
public int? PatientDocumentCount { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? RoomName { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? Domain { get; set; }
/// <summary>
/// Gets or sets the symptoms.
/// </summary>
public string? Symptoms { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is online.
/// </summary>
public bool IsOnline { get; set; }
/// <summary>
///
/// </summary>
public string Delay { get; set; }
/// <summary>
/// Gets or sets the patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the log From.
/// </summary>
public short LogFrom { get; set; }
/// <summary>
/// Gets or sets the doctor message count.
/// </summary>
public int? DoctorMessageCount { get; set; }
/// <summary>
/// Gets or sets the patient message count.
/// </summary>
public int? PatientMessageCount { get; set; }
/// <summary>
/// Gets or sets the wallet amount.
/// </summary>
public decimal? WalletAmount { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusDate { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusModifiedDate { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallStatus { get; set; }
/// <summary>
/// Gets or sets the in progress.
/// </summary>
/// <value>
/// The in progress.
/// </value>
public bool? InProgress { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallType { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallTypeName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallerCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallerCallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? ReceiverCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? ReceiverCallStatusName { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? CallerCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? ReceiverCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the telemedicine duration.
/// </summary>
public int? TelemedicineDuration { get; set; }
/// <summary>
/// Gets or sets the is require emergency appointment.
/// </summary>
public bool? IsRequireEmergencyAppointment { get; set; }
/// <summary>
/// Gets or sets the active users.
/// </summary>
public string? ActiveUsers { get; set; }
/// <summary>
/// Gets or sets the telemedicine ids.
/// </summary>
public string? TelemedicineIds { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public int? CallerRoleId { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public bool? IsUTC { get; set; }
/// <summary>
/// Gets or sets the is languages.
/// </summary>
public string? Languages { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public string? Specializations { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public bool EnableMobileAudioCall { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool IsPrescriptionBlink { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool? IsTaskDone { get; set; }
/// <summary>
/// Gets or sets the is no of emails.
/// </summary>
public int? NoOfEmails { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Is panic option.
/// </summary>
public bool? IsPanicOption { get; set; }
/// <summary>
/// Gets or sets the is umr no.
/// </summary>
public string? UMRNo { 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 follow up days.
/// </summary>
public short? FollowUpDays { get; set; }
/// <summary>
/// Gets or sets AadharNo.
/// </summary>
public string? AadharNo { get; set; }
/// <summary>
/// Gets or sets the Referred by.
/// </summary>
public string? ReferredBy { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? ReferredByName { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? PreviousAppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the admission discharge TimeString
/// </summary>
public string? PreviousAdmissionDischargeTimeString { get; set; }
/// <summary>
/// Gets or sets the admission discharge time.
/// </summary>
public TimeSpan AdmissionDischargeTime { 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 FatherOrHusband name.
/// </summary>
public string? FatherOrHusband { get; set; }
/// <summary>
/// Gets or sets the queue status.
/// </summary>
/// <value>
/// The queue status.
/// </value>
public string? QueueStatus { get; set; }
/// <summary>
/// Gets or sets the specialization names.
/// </summary>
public string? SpecializationNames { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Hims.Shared.EntityModels
{
public class AppointmentPayTypeModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is admission.
/// </summary>
/// <value>
/// <c>true</c> if this instance is admission; otherwise, <c>false</c>.
/// </value>
public bool IsAdmission { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int? EncounterId { get; set; }
/// <summary>
/// Gets or sets the encrypted appointment id.
/// </summary>
public string? EncryptedAppointmentId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted patient id.
/// </summary>
public string? EncryptedPatientId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the encrypted provider id.
/// </summary>
public string? EncryptedProviderId { get; set; } = string.Empty;
/// <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 provider name.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the reason.
/// </summary>
public string? Reason { get; set; }
/// <summary>
/// Gets or sets the provider gender.
/// </summary>
public string? ProviderGender { get; set; }
/// <summary>
/// Gets or sets the provider age.
/// </summary>
public short? ProviderAge { get; set; }
/// <summary>
/// Gets or sets the provider thumbnail url.
/// </summary>
public string? ProviderThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the appointment end time.
/// </summary>
public object? AppointmentEndTime { get; set; }
/// <summary>
/// Gets or sets the practice name.
/// </summary>~
public string? PracticeName { get; set; }
/// <summary>
/// Gets or sets the provider location.
/// </summary>
public string? ProviderLocation { get; set; }
/// <summary>
/// Gets or sets the currency symbol.
/// </summary>
public char? CurrencySymbol { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient account id.
/// </summary>
public int PatientAccountId { get; set; }
/// <summary>Gets or sets the provider account id.</summary>
public int ProviderAccountId { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string? PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public char? PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient email.
/// </summary>
public string? PatientEmail { get; set; }
/// <summary>
/// Gets or sets the provider mobile.
/// </summary>
public string? ProviderMobile { get; set; }
/// <summary>
/// Gets or sets the provider email.
/// </summary>
public string? ProviderEmail { get; set; }
/// <summary>Gets or sets the enable email alerts.</summary>
public bool? EnableEmailAlerts { get; set; }
/// <summary>Gets or sets the enable sms alerts.</summary>
public bool? EnableSMSAlerts { get; set; }
/// <summary>Gets or sets the enable desktop notifications.</summary>
public bool? EnableDesktopNotifications { get; set; }
/// <summary>Gets or sets the enable mobile notifications.</summary>
public bool? EnableMobileNotifications { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short? PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient country id.
/// </summary>
public int PatientCountryId { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string? PatientCountryCode { get; set; }
/// <summary>
/// Gets or sets the provider country id.
/// </summary>
public int ProviderCountryId { get; set; }
/// <summary>
/// Gets or sets the provider country code.
/// </summary>
public string? ProviderCountryCode { 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 previous appointment no.
/// </summary>
public string PreviousAppointmentNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the previous admission no.
/// </summary>
public string PreviousAdmissionNo { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public DateTime AppointmentDate { get; set; }
/// <summary>
/// Gets or sets the previous appointment date.
/// </summary>
public DateTime? AppointmentPreviousDate { get; set; }
/// <summary>
/// Gets or sets the previous admission discharge date.
/// </summary>
public DateTime? AdmissionDischargeDate { get; set; }
/// <summary>
/// Gets or sets the previous admission discharge time.
/// </summary>
public TimeSpan? AdmissionDischargeTime { get; set; }
/// <summary>
///
/// </summary>
public TimeSpan? AppointmentPreviousTime { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public object AppointmentTime { get; set; }
/// <summary>
/// Gets or sets the appointment date time.
/// </summary>
public string? AppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the old appointment date time.
/// </summary>
public string? OldAppointmentDateTime { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? PreviousAppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the admission discharge TimeString
/// </summary>
public string? PreviousAdmissionDischargeTimeString { 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 discount.
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the app charges.
/// </summary>
public decimal AppCharges { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
public string Status { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a value indicating whether active.
/// </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>
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 total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the encounter type.
/// </summary>
public string? EncounterType { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription.
/// </summary>
public bool IsPrescription { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is full transcript.
/// </summary>
public bool IsFullTranscript { get; set; }
/// <summary>
/// Gets or sets the patient guid.
/// </summary>
public string? PatientGuid { get; set; }
/// <summary>
/// Gets or sets the provider guid.
/// </summary>
public string? ProviderGuid { get; set; }
/// <summary>Gets or sets the patient document count.</summary>
public int? PatientDocumentCount { get; set; }
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int? CallStatus { get; set; }
/// <summary>
/// Gets or sets the call status text.
/// </summary>
public string? CallStatusText { get; set; }
/// <summary>
/// Gets or sets the patient call status.
/// </summary>
public int? PatientCallStatus { get; set; }
/// <summary>
/// Gets or sets the caller name.
/// </summary>
public string? CallerName { get; set; }
/// <summary>
/// Gets or sets the video call status.
/// </summary>
public int? VideoCallStatus { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? RoomName { get; set; }
/// <summary>
/// Gets or sets the room name.
/// </summary>
public string? Domain { get; set; }
/// <summary>
/// Gets or sets the symptoms.
/// </summary>
public string? Symptoms { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is online.
/// </summary>
public bool IsOnline { get; set; }
/// <summary>
///
/// </summary>
public string? Delay { get; set; }
/// <summary>
/// Gets or sets the patient family id.
/// </summary>
public int? PatientFamilyId { get; set; }
/// <summary>
/// Gets or sets the log From.
/// </summary>
public short LogFrom { get; set; }
/// <summary>
/// Gets or sets the doctor message count.
/// </summary>
public int? DoctorMessageCount { get; set; }
/// <summary>
/// Gets or sets the patient message count.
/// </summary>
public int? PatientMessageCount { get; set; }
/// <summary>
/// Gets or sets the wallet amount.
/// </summary>
public decimal? WalletAmount { get; set; }
/// <summary>
/// Gets or sets the department id.
/// </summary>
public int? DepartmentId { get; set; }
/// <summary>
/// Gets or sets the department name.
/// </summary>
public string? DepartmentName { get; set; }
/// <summary>
/// Gets or sets the UMR number.
/// </summary>
public string? UMRNo { get; set; }
/// <summary>
/// Gets or sets the patient marital status.
/// </summary>
public string? PatientMaritalStatus { get; set; }
/// <summary>
/// Gets or sets payment status.
/// </summary>
public bool PaymentStatus { get; set; }
///// <summary>
///// Gets or sets payment type Id for fetching
///// </summary>
public string? PaymentType { get; set; }
/// <summary>
/// Gets or sets pay Type Name.
/// </summary>
public string? PayTypeName { get; set; }
/// <summary>
/// Gets or sets payment number.
/// </summary>
public string? PaymentNumber { get; set; }
/// <summary>
/// Gets or sets is active admission exists.
/// </summary>
public bool? IsActiveAdmissionExists { get; set; }
/// <summary>
/// Gets or sets street address.
/// </summary>
public string? StreetAddress { get; set; }
/// <summary>
/// Gets or sets city.
/// </summary>
public string? City { get; set; }
/// <summary>
/// Gets or sets state.
/// </summary>
public string? State { get; set; }
/// <summary>
/// Gets or sets zipcode.
/// </summary>
public string? Zipcode { 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 follow up days.
/// </summary>
public short? FollowUpDays { get; set; }
/// <summary>
/// Gets or sets the
/// </summary>
public long? FreeVisitsCount { get; set; }
/// <summary>
/// Gets or sets he free follow up days limit.
/// </summary>
public int? FreeFollowUpDaysLimit { get; set; }
/// <summary>
/// Gets or sets the free follow up days .
/// </summary>
public int? FreeFollowUpDays { get; set; }
/// <summary>
/// Gets or sets the start date.
/// </summary>
public string? StartDate { get; set; }
/// <summary>
/// Gets or sets the end date.
/// </summary>
public string? EndDate { get; set; }
/// <summary>
/// Gets or sets the start time.
/// </summary>
public string? StartTime { get; set; }
/// <summary>
/// Gets or sets the end time.
/// </summary>
public string? EndTime { get; set; }
/// <summary>
/// Gets or sets AadharNo.
/// </summary>
public string? AadharNo { get; set; }
/// <summary>
/// Gets or sets the Referred by.
/// </summary>
public string? ReferredBy { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? ReferredByName { 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 encounter type.
/// </summary>
public string? CreatedByName { get; set; }
/// <summary>
/// Gets or sets the checked in.
/// </summary>
public DateTime? CheckedIn { get; set; }
/// <summary>
/// Gets or sets the checked out.
/// </summary>
public DateTime? CheckedOut { get; set; }
/// <summary>
/// Gets or sets the location id.
/// </summary>
public int LocationId { get; set; }
/// <summary>
/// Gets or sets the tat.
/// </summary>
public int? Tat { get; set; }
/// <summary>
/// Gets or sets the queue status.
/// </summary>
/// <value>
/// The queue status.
/// </value>
public string QueueStatus { get; set; }
/// <summary>
/// Gets or sets the FatherOrHusband name.
/// </summary>
public string? FatherOrHusband { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string? ChargeTypesName { get; set; }
/// <summary>
/// Gets or sets
/// </summary>
public int PayType { get; set; }
/// <summary>
/// Gets or sets the location name.
/// </summary>
public string? LocationName { get; set; }
/// <summary>
/// Gets or sets the specialization names.
/// </summary>
public string? SpecializationNames { get; set; }
/// <summary>
/// Gets or sets the languages.
/// </summary>
public string? Languages { 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; }
/// <summary>
/// Gets or sets the token number.
/// </summary>
/// <value>
/// The token number.
/// </value>
public int TokenNumber { get; set; }
/// <summary>
/// Gets or sets the is referredby.
/// </summary>
public string? PatientReferredName { get; set; }
/// <summary>
/// Gets or sets the waiting count.
/// </summary>
/// <value>
/// The waiting count.
/// </value>
public int? WaitingCount { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? EmailHeadersId { get; set; }
/// <summary>
/// Gets or sets the email id.
/// </summary>
public int? ReplyEmailDetailsId { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the status name.
/// </summary>
public string StatusName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment status id.
/// </summary>
public int AppointmentStatusId { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public bool IsCc { get; set; }
/// <summary>
/// Gets or sets the telemedicine ids.
/// </summary>
public string? TelemedicineIds { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public int? CallerRoleId { get; set; }
/// <summary>
/// Gets or sets the is utc.
/// </summary>
public bool? IsUTC { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public string? Specializations { get; set; }
/// <summary>
/// Gets or sets the is specializations.
/// </summary>
public bool EnableMobileAudioCall { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool IsPrescriptionBlink { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is prescription blink.
/// </summary>
public bool? IsTaskDone { get; set; }
/// <summary>
/// Gets or sets the is no of emails.
/// </summary>
public int? NoOfEmails { get; set; }
/// <summary>
/// Gets or sets a value indicating whether Is panic option.
/// </summary>
public bool? IsPanicOption { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusDate { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public DateTime? CallStatusModifiedDate { get; set; }
/// <summary>
/// Gets or sets the in progress.
/// </summary>
/// <value>
/// The in progress.
/// </value>
public bool? InProgress { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallType { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallTypeName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? CallerCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? CallerCallStatusName { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public int? ReceiverCallStatus { get; set; }
/// <summary>
/// Gets or sets the call type.
/// </summary>
public string? ReceiverCallStatusName { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? CallerCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the caller call status date.
/// </summary>
public DateTime? ReceiverCallStatusDate { get; set; }
/// <summary>
/// Gets or sets the telemedicine duration.
/// </summary>
public int? TelemedicineDuration { get; set; }
/// <summary>
/// Gets or sets the is require emergency appointment.
/// </summary>
public bool? IsRequireEmergencyAppointment { get; set; }
/// <summary>
/// Gets or sets the active users.
/// </summary>
public string? ActiveUsers { get; set; }
/// <summary>
/// Gets or sets the id proof name.
/// </summary>
public string? IdProofName { get; set; }
/// <summary>
/// Gets or sets the id proof name.
/// </summary>
public string? IdProofValue { get; set; }
/// <summary>
/// Gets or sets the appointment type name.
/// </summary>
public string? AppointmentTypeName { get; set; }
/// <summary>
///
/// </summary>
public DateTime? QueueEndDate { get; set; }
/// <summary>
///
/// </summary>
public DateTime? QueueStartDate { get; set; }
/// <summary>
/// Gets or sets the difference between queue start and queue end date.
/// </summary>
public double? Minutes { get; set; }
/// <summary>
/// Gets or sets patient payment status.
/// </summary>
public bool? PatientPaymentStatus { get; set; }
/// <summary>
/// Gets or sets the patient reg amount.
/// </summary>
public decimal PatientRegistrationAmount { get; set; }
/// <summary>
/// Gets or sets the visitor name.
/// </summary>
public string VisitorName { get; set; }
/// <summary>
/// Gets or sets the specialization id.
/// </summary>
public int? SpecializationId { get; set; }
/// <summary>
/// Gets or sets the specialization name.
/// </summary>
public string? SpecializationName { get; set; }
/// <summary>
/// Gets or sets TransactionId.
/// </summary>
public string? TransactionId { get; set; }
/// <summary>
/// Gets or sets the provider availability id.
/// </summary>
public int ProviderAvailabilityId { get; set; }
/// <summary>
/// Gets or sets the provider availability id.
/// </summary>
public int ConsultationTypeId { get; set; }
/// <summary>
/// Gets or sets the is web.
/// </summary>
public bool IsWeb { get; set; }
/// <summary>
/// Gets or sets the is patient app.
/// </summary>
public bool IsPatientApp { get; set; }
/// <summary>
/// Gets or sets the is salucro.
/// </summary>
public bool IsSalucro { get; set; }
/// <summary>
/// Gets or sets the is encounter.
/// </summary>
public bool IsEncounter { get; set; }
/// <summary>
/// Gets or sets the name of the cubicle.
/// </summary>
/// <value>
/// The name of the cubicle.
/// </value>
public string CubicleName { get; set; }
/// <summary>
/// Gets or sets the provider availability charge type id.
/// </summary>
public int? DoctorSpecializationChargeModuleDetailsId { 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? AuthorityId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? ReasonId { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public string? Remarks { get; set; }
/// <summary>
/// Gets or sets the receiptCreatedByName.
/// </summary>
/// <value>
/// The name of the cubicle.
/// </value>
public string ReceiptCreatedByName { get; set; }
/// <summary>
/// Gets or sets the checked out.
/// </summary>
public DateTime? ReceiptDate { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal AptRefundAmt { get; set; }
/// <summary>
/// Gets or sets the receipt id.
/// </summary>
public int? ReceiptId { get; set; }
/// <summary>
/// Gets or sets the name of the cancelType.
/// </summary>
/// <value>
/// The name of the cancel type for cancellation.
/// </value>
public string CancelType { get; set; }
/// <summary>
/// Gets or sets the transaction.
/// </summary>
public string? Transaction { get; set; }
/// <summary>
/// Gets or sets the transaction id.
/// </summary>
public int? SalucroStatusCode { get; set; }
/// <summary>
/// Gets or sets the transaction id.
/// </summary>
public string? SalucroTransactionId { get; set; }
/// <summary>
/// Gets or sets the total amount.
/// </summary>
public decimal? TotalAmount { get; set; }
public decimal Charges { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? Salutation { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the first name.
/// </summary>
public string FirstName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the middle name.
/// </summary>
public string? MiddleName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the last name.
/// </summary>
public string LastName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string FullName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the date of birth.
/// </summary>
public DateTime? DateOfBirth { get; set; }
/// <summary>
/// Gets or sets the age.
/// </summary>
public short? Age { get; set; }
/// <summary>
/// Gets or sets the gender.
/// </summary>
public char? Gender { get; set; }
/// <summary>
/// Gets or sets the marital status.
/// </summary>
public char? MaritalStatus { get; set; }
/// <summary>
/// Gets or sets the email.
/// </summary>
public string? Email { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the mobile.
/// </summary>
public string? Mobile { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the address line 2.
/// </summary>
public string? AddressLine2 { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the country id.
/// </summary>
public int? CountryId { get; set; }
/// <summary>
/// Gets or sets the country name.
/// </summary>
public string? CountryName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the country code.
/// </summary>
public string? CountryCode { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the iso code.
/// </summary>
public string? ISOCode { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the profile image url.
/// </summary>
public string? ProfileImageUrl { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the thumbnail url.
/// </summary>
public string? ThumbnailUrl { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the thumbnail url.
/// </summary>
public string? DocumentUrl { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the base 64 profile image.
/// </summary>
public string? Base64ProfileImage { get; set; }
/// <summary>
/// Gets or sets the is locked.
/// </summary>
public bool? IsLocked { get; set; }
/// <summary>
/// Gets or sets the is active appointment exists.
/// </summary>
public bool? IsActiveAppointmentExists { 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 modified by name.
/// </summary>
public string? ModifiedByName { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the Referral Code.
/// </summary>
public string? ReferralCode { get; set; }
/// <summary>
/// Gets or sets the Referral Code.
/// </summary>
public int? ReferralBy { get; set; }
/// <summary>
/// Gets or sets a value whether patient is discharged.
/// </summary>
public bool? IsDischarged { get; set; }
/// <summary>
/// Gets or sets the discharge id.
/// </summary>
public int? DischargeId { get; set; }
/// <summary>
/// Gets or sets the admission id.
/// </summary>
public int? AdmissionId { get; set; }
/// <summary>
/// Gets or sets the RoleId.
/// </summary>
public short? RoleId { get; set; }
/// <summary>
/// Gets or sets the breakfast.
/// </summary>
/// <value>
/// The breakfast.
/// </value>
public TimeSpan? Breakfast { get; set; }
/// <summary>
/// Gets or sets the lunch.
/// </summary>
/// <value>
/// The lunch.
/// </value>
public TimeSpan? Lunch { get; set; }
/// <summary>
/// Gets or sets the dinner.
/// </summary>
/// <value>
/// The dinner.
/// </value>
public TimeSpan? Dinner { get; set; }
/// <summary>
/// Gets or sets the breakfast.
/// </summary>
/// <value>
/// The breakfast.
/// </value>
public TimeModelHelper? BreakfastTime { get; set; }
/// <summary>
/// Gets or sets the lunch.
/// </summary>
/// <value>
/// The lunch.
/// </value>
public TimeModelHelper? LunchTime { get; set; }
/// <summary>
/// Gets or sets the dinner.
/// </summary>
/// <value>
/// The dinner.
/// </value>
public TimeModelHelper? DinnerTime { get; set; }
/// <summary>
/// Gets or sets the filter
/// </summary>
public string? Filter { get; set; }
/// <summary>
/// Gets or sets the HWC patient identifier.
/// </summary>
/// <value>
/// The HWC patient identifier.
/// </value>
public int? HWCPatientId { get; set; }
/// <summary>
/// Gets or sets the name of the HWC.
/// </summary>
/// <value>
/// The name of the HWC.
/// </value>
public string? HWCName { get; set; }
/// <summary>
/// Gets or sets the description.
/// </summary>
/// <value>
/// The description.
/// </value>
public string? Description { get; set; }
/// <summary>
/// Gets or sets the color of the row.
/// </summary>
/// <value>
/// The color of the row.
/// </value>
public string? RowColor { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? Education { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? Occupation { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? MartialStatus { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? Religion { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? Nationality { get; set; }
///// <summary>
///// Gets or sets the type of the pay.
///// </summary>
///// <value>
///// The type of the pay.
///// </value>
//public string? PayType { get; set; } //as paytypeid added
/// <summary>
/// Gets or sets the id proof id identifier.
/// </summary>
/// <value>
/// The id proof id identifier.
/// </value>
public int? IdProofId { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public int? PatientReferredById { get; set; }
/// <summary>
/// Gets or sets the Referred by name.
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the Bill Number. //----lab bill no ---// for patient widget
/// </summary>
public string? BillNumber { get; set; }
/// <summary>saw
/// Gets or sets the Blood group
/// </summary>
public string? BloodGroup { get; set; }
/// <summary>
/// Gets or sets payment status.
/// </summary>
public bool? TempPatient { get; set; }
/// <summary>
/// Gets or sets the id proof id identifier.
/// </summary>
/// <value>
/// The id proof id identifier.
/// </value>
public int? HowDidYouKnowId { get; set; }
/// <summary>
/// Gets or sets the id proof id identifier.
/// </summary>
/// <value>
/// The id proof id identifier.
/// </value>
public int? EducationId { get; set; }
/// <summary>
/// Gets or sets the id proof id identifier.
/// </summary>
/// <value>
/// The id proof id identifier.
/// </value>
public int? OccupationId { get; set; }
/// <summary>
/// Gets or sets the birthMark1.
/// </summary>
public string? BirthMark1 { get; set; }
/// <summary>
/// Gets or sets the birthMark1.
/// </summary>
public string? BirthMark2 { get; set; }
/// <summary>
/// Gets or sets the birthMark1.
/// </summary>
public string? EducationName { get; set; }
/// <summary>
/// Gets or sets the birthMark1.
/// </summary>
public string? OccupationName { get; set; }
/// <summary>
/// Gets or sets the birthMark1.
/// </summary>
public string? HowDidYouKnow { get; set; }
/// <summary>
/// Gets or sets the FTP Error Message.
/// </summary>
public string? ErrorMessage { get; set; }
/// <summary>
/// Gets or sets the type of the relation.
/// </summary>
/// <value>
/// The type of the relation.
/// </value>
public string? RelationType { get; set; }
/// <summary>
/// Gets or sets the occupation detail.
/// </summary>
/// <value>
/// The occupation detail.
/// </value>
public string? OccupationDetail { get; set; }
/// <summary>
/// Gets or sets the is new patient.
/// </summary>
/// <value>
/// The is new patient.
/// </value>
public bool IsNewPatient { get; set; }
/// <summary>
/// Gets or sets the transaction id.
/// </summary>
public int? PaymentInitiationLogId { get; set; }
/// <summary>
/// Gets or sets the relative name.
/// </summary>
public string? RelativeName { get; set; }
/// <summary>
/// Gets or sets the relation.
/// </summary>
public string? Relation { get; set; }
/// <summary>
/// Gets or sets the area.
/// </summary>
public string? Area { get; set; }
/// <summary>
/// Gets or sets the MR number.
/// </summary>
/// <value>
/// The MR no.
/// </value>
public int? MRNO { get; set; }
/// <summary>
/// Gets or sets payment status.
/// </summary>
public bool? SaveRelativeAsPatient { get; set; }
/// <summary>
/// Gets or sets the insurance id.
/// </summary>
public int? InsuranceId { get; set; }
/// <summary>
/// Gets or sets the insurance company id.
/// </summary>
public int? InsuranceCompanyId { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public DateTime? LastConsultedDate { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? LastConsultedDoctor { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public decimal? LastPaidAmount { get; set; }
/// <summary>
/// Gets or sets the salutation.
/// </summary>
public string? NextAppointment { get; set; }
/// <summary>
/// Gets or sets the last appointment time.
/// </summary>
public string? LastConsultedTime { get; set; }
/// <summary>
/// Gets or sets the appointment payment status.
/// </summary>
public bool AppointmentPaymentStatus { get; set; }
/// <summary>
///
/// </summary>
public int ChargeTySpecializationIdpesId { get; set; }
/// <summary>
///
/// </summary>
public int AuthorityMasterId { get; set; }
/// <summary>
///
/// </summary>
public int ReasonsId { get; set; }
/// <summary>
/// Gets or sets the amount.
/// </summary>
public decimal? AppointmentAmount { get; set; }
/// <summary>
/// Gets or sets the module name.
/// </summary>
public string? ModuleName { get; set; }
/// <summary>
/// Gets or sets the emergency contacts.
/// </summary>
public List<PatientEmergencyModel>? EmergencyContacts { get; set; }
/// <summary>
/// Gets or sets the insurances.
/// </summary>
public List<PatientInsuranceModel>? Insurances { get; set; }
/// <summary>
/// Gets or sets the relative details.
/// </summary>
public List<PatientFamilyModel>? RelativeDetails { get; set; }
/// <summary>
/// Gets or sets the appointment total.
/// </summary>
public decimal AppointmentTotal { get; set; }
/// <summary>
/// Gets or sets the patient total.
/// </summary>
public decimal PatientTotal { get; set; }
}
public class Time
{
public decimal? Ticks { get; set; }
public int? Days { get; set; }
public decimal? Charges { get; set; }
public string? Hours { get; set; }
public decimal? Milliseconds { get; set; }
public string? Minutes { get; set; }
public string? Seconds { get; set; }
public decimal? TotalDays { get; set; }
public decimal? TotalHours { get; set; }
public decimal? TotalMilliseconds { get; set; }
public decimal? TotalMinutes { get; set; }
}
public class AppointmentEndTime
{
public string? HasValue { get; set; }
public object? Value { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment support log model.
/// </summary>
public class AppointmentSupportLogModel
{
/// <summary>
/// Gets or sets the appointment support log id.
/// </summary>
public long AppointmentSupportLogId { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the assignee id.
/// </summary>
public int? AssigneeId { get; set; }
/// <summary>
/// Gets or sets the createdby.
/// </summary>
public short modifiedBy { get; set; }
/// <summary>
/// Gets or sets the audio.
/// </summary>
public string Audio { get; set; }
/// <summary>
/// Gets or sets the video.
/// </summary>
public string Video { get; set; }
/// <summary>
/// Gets or sets the document.
/// </summary>
public string Document { get; set; }
/// <summary>
/// Gets or sets the invoice.
/// </summary>
public string Invoice { get; set; }
/// <summary>
/// Gets or sets the comments.
/// </summary>
public string Comments { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string ProviderName { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string PatientName { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { 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; }
/// <summary>
/// Gets or sets the appointment time string.
/// </summary>
public string AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string PatientMobile { get; set; }
/// <summary>
/// Gets or sets a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the page size.
/// </summary>
public int PageSize { get; set; }
/// <summary>
/// Gets or sets the page index.
/// </summary>
public int PageIndex { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the from date.
/// </summary>
public string FromDate { get; set; }
/// <summary>
/// Gets or sets the to date.
/// </summary>
public string ToDate { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int? ProviderId { get; set; }
/// <summary>
/// Gets or sets the mobile.
/// </summary>
public string Mobile { get; set; }
/// <summary>
/// Gets or sets the assignee name.
/// </summary>
public string AssigneeName { get; set; }
/// <summary>
/// Gets or sets the role name.
/// </summary>
public string RoleName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is admin.
/// </summary>
public bool IsAdmin { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is admin.
/// </summary>
public bool IsAdminFilaterApplied { get; set; }
/// <summary>
/// Gets or sets the patient account id.
/// </summary>
public int PatientAccountId { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the call status.
/// </summary>
public string CallStatus { get; set; }
/// <summary>
/// Gets or sets a value indicating whether is online.
/// </summary>
public bool IsOnline { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int? LocationId { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The AppointmentSymptom.
/// </summary>
public class AppointmentSymptomModel
{
/// <summary>
/// Gets or sets appointment symptom Id.
/// </summary>
public int AppointmentSymptomId { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets symptoms.
/// </summary>
public string Symptoms { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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.Shared.EntityModels
{
using System;
/// <summary>
/// The appointment transaction model.
/// </summary>
public class AppointmentTransactionModel
{
/// <summary>
/// Gets or sets the appointment transaction id.
/// </summary>
public int AppointmentTransactionId { get; set; }
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the encrypted appointment id.
/// </summary>
public string EncryptedAppointmentId { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { 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 discount.
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Gets or sets the total.
/// </summary>
public decimal Total { get; set; }
/// <summary>
/// Gets or sets the Transaction id.
/// </summary>
public string TransactionId { get; set; }
/// <summary>
/// Gets or sets the transaction.
/// </summary>
public string Transaction { get; set; }
/// <summary>
/// Gets or sets the transaction date.
/// </summary>
public DateTime TransactionDate { get; set; }
/// <summary>
/// Gets or sets the bank reference.
/// </summary>
public string BankReference { get; set; }
/// <summary>
/// Gets or sets the bank code.
/// </summary>
public string BankCode { get; set; }
/// <summary>
/// Gets or sets the currency symbol.
/// </summary>
public char CurrencySymbol { get; set; }
/// <summary>
/// Gets or sets the patient country id.
/// </summary>
public int PatientCountryId { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string PatientCountryCode { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string PatientName { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the payment id.
/// </summary>
public int PaymentId { get; set; }
/// <summary>
/// Gets or sets the payment mode id.
/// </summary>
public int PaymentModeId { get; set; }
/// <summary>
/// Gets or sets the payment gateway.
/// </summary>
public string PaymentGateway { get; set; }
/// <summary>
/// Gets or sets the tds amount.
/// </summary>
public decimal? TDSAmount { get; set; }
/// <summary>
/// Gets or sets the app charges.
/// </summary>
public decimal? AppCharges { get; set; }
/// <summary>
/// Gets or sets the refund id.
/// </summary>
public int? RefundId { get; set; }
/// <summary>
/// Gets or sets the payout id.
/// </summary>
public int? PayoutId { get; set; }
/// <summary>
/// Gets or sets the payment status id.
/// </summary>
public int? PaymentStatusId { get; set; }
/// <summary>
/// Gets or sets the payment status.
/// </summary>
public string PaymentStatusName { get; set; }
/// <summary>
/// Gets or sets the settled amount.
/// </summary>
public decimal? SettledAmount { get; set; }
/// <summary>
/// Gets or sets the settled date.
/// </summary>
public DateTime? SettledDate { get; set; }
/// <summary>
/// Gets or sets the final amount.
/// </summary>
public decimal FinalAmount { get; set; }
/// <summary>
/// Gets or sets the total final amount.
/// </summary>
public decimal TotalFinalAmount { get; set; }
/// <summary>
/// Gets or sets the total settled amount.
/// </summary>
public decimal? TotalSettledAmount { get; set; }
/// <summary>
/// Gets or sets a value indicating whether active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string ProviderName { get; set; }
/// <summary>
/// Gets or sets the payment status.
/// </summary>
public string PaymentStatus { get; set; }
/// <summary>
/// Gets or sets the email.
/// </summary>
public string Email { get; set; }
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public DateTime AppointmentDate { get; set; }
/// <summary>
/// Gets or sets the week total.
/// </summary>
public int WeekTotal { get; set; }
/// <summary>
/// Gets or sets the week no.
/// </summary>
public int Week { get; set; }
/// <summary>
/// Gets or sets the year.
/// </summary>
public int Year { get; set; }
/// <summary>
/// Gets or sets the appointment time.
/// </summary>
public TimeSpan AppointmentTime { get; set; }
/// <summary>
/// Gets or sets the provider percentage.
/// </summary>
public decimal ProviderPercentage { get; set; }
/// <summary>
/// Gets or sets the payout.
/// </summary>
public string Payout { get; set; }
/// <summary>
/// Gets or sets the mobile.
/// </summary>
public string Mobile { get; set; }
/// <summary>
/// Gets or sets the appointment t ime string.
/// </summary>
public string AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the tds.
/// </summary>
public decimal? TDS { get; set; }
/// <summary>
/// Gets or sets the sum final amount.
/// </summary>
public decimal? SumFinalAmount { get; set; }
/// <summary>
/// Gets or sets the gst.
/// </summary>
public decimal? Gst { get; set; }
/// <summary>
/// Gets or sets the pay u fees.
/// </summary>
public decimal? PayUFees { get; set; }
/// <summary>
/// Gets or sets the processing fees.
/// </summary>
public decimal? ProcessingFees { get; set; }
/// <summary>
/// Gets or sets the after processing fees.
/// </summary>
public decimal? AfterprocessingFees { get; set; }
/// <summary>
/// Gets or sets the provider mobile.
/// </summary>
public string ProviderMobile { get; set; }
/// <summary>
/// Gets or sets the sum of total.
/// </summary>
public decimal? SumTotal { get; set; }
/// <summary>
/// Gets or sets the min amount.
/// </summary>
public decimal? MinTotal { get; set; }
/// <summary>
/// Gets or sets the sum of total.
/// </summary>
public decimal? MaxTotal { get; set; }
/// <summary>
/// Gets or sets the after app charges.
/// </summary>
public decimal? AfterAppCharges { get; set; }
/// <summary>
/// Gets or sets the sum after app charges.
/// </summary>
public decimal? SumAfterAppCharges { get; set; }
/// <summary>
/// Gets or sets the salucro status code.
/// </summary>
public int SalucroStatusCode { get; set; }
/// <summary>
/// Gets or sets the salucro transaction id.
/// </summary>
public string SalucroTransactionId { get; set; }
/// <summary>
/// Gets or sets the status check in progress.
/// </summary>
public bool StatusCheckInProgress { get; set; }
/// <summary>
/// Gets or sets the receipt area type id.
/// </summary>
public int ReceiptAreaTypeId { get; set; }
/// <summary>
/// Gets or sets the salucro transaction id.
/// </summary>
public string PayTypeName { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int? PatientId { get; set; }
}
}
\ No newline at end of file
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The auditLog.
/// </summary>
public class AuditLogModel
{
/// <summary>
/// Gets or sets the auditLog id.
/// </summary>
public int AuditLogId { get; set; }
/// <summary>
/// Gets or sets the Log type.
/// </summary>
public int LogTypeId { get; set; }
/// <summary>
/// Gets or sets the log type name.
/// </summary>
public string? LogTypeName { get; set; }
/// <summary>
/// Gets or sets the log date.
/// </summary>
public DateTime LogDate { get; set; }
/// <summary>
/// Gets or sets the app type.
/// </summary>
public short LogFrom { get; set; }
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int? AccountId { get; set; }
/// <summary>
/// Gets or sets the full name.
/// </summary>
public string? FullName { get; set; }
/// <summary>
/// Gets or sets the RoleId.
/// </summary>
public int? RoleId { get; set; }
/// <summary>
/// Gets or sets the role name.
/// </summary>
public string? RoleName { get; set; }
/// <summary>
/// Gets or sets the auditLog code.
/// </summary>
public string LogDescription { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Gets or sets the location id
/// </summary>
public int? LocationId { get; set; }
}
}
\ No newline at end of file
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The account.
/// </summary>
public class BasicAppointmentModel
{
/// <summary>
/// Gets or sets the account id.
/// </summary>
public int ProviderId { get; set; }
/// <summary>
/// Gets or sets the role id.
/// </summary>
public int PatientId { get; set; }
}
}
\ No newline at end of file
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The coupon.
/// </summary>
public class BedManagementModel
{
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int BedId { get; set; }
/// <summary>
/// Gets or sets the Rooom id.
/// </summary>
///
public int RoomId { get; set; }
/// Gets or sets the beds count in a room.
/// </summary>
public decimal BedsCount { get; set; }
/// <summary>
/// Gets or sets the ward id.
/// </summary>
public int? WardId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string BedNumber { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int BedStatusId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string WardName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string RoomName { get; set; }
/// <summary>
/// Gets or sets the name of the floor.
/// </summary>
/// <value>
/// The name of the floor.
/// </value>
public string FloorName { get; set; }
/// <summary>
/// Gets or sets the Room rent.
/// </summary>
public decimal RoomRent { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int NoOfRooms { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int NoOfBeds { get; set; }
/// <summary>
/// Gets or sets the available beds.
/// </summary>
public int BookedBed { get; set; }
/// <summary>
/// Gets or sets the available beds.
/// </summary>
public int AvailableBeds { get; set; }
/// <summary>
/// Gets or sets the bed status name.
/// </summary>
public string BedStatusName { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 full name.
/// </summary>
/// <value>
/// The full name.
/// </value>
public string FullName { get; set; }
/// <summary>
/// Gets or sets the thumbnail URL.
/// </summary>
/// <value>
/// The thumbnail URL.
/// </value>
public string ThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the unique identifier.
/// </summary>
/// <value>
/// The unique identifier.
/// </value>
public string Guid { get; set; }
/// <summary>
/// Gets or sets the gender.
/// </summary>
/// <value>
/// The gender.
/// </value>
public string Gender { get; set; }
/// <summary>
/// Gets or sets the age.
/// </summary>
/// <value>
/// The age.
/// </value>
public int? Age { get; set; }
/// <summary>
/// Gets or sets the provider identifier.
/// </summary>
/// <value>
/// The provider identifier.
/// </value>
public int? ProviderId { get; set; }
/// <summary>
/// Gets or sets the provider consultation room identifier.
/// </summary>
/// <value>
/// The provider consultation room identifier.
/// </value>
public int? ProviderConsultationRoomId { get; set; }
/// <summary>
/// Gets or sets the charge categoryId.
/// </summary>
/// <value>
/// The charge categoryId.
/// </value>
public int? ChargeCategoryId { get; set; }
/// <summary>
/// Gets or sets the locationId.
/// </summary>
/// <value>
/// The charge locationId.
/// </value>
public int? LocationId { get; set; }
/// <summary>
/// Gets or sets the modules master identifier.
/// </summary>
/// <value>
/// The modules master identifier.
/// </value>
public int? ModulesMasterId { get; set; }
/// <summary>
/// Gets or sets the charge module template identifier.
/// </summary>
/// <value>
/// The charge module template identifier.
/// </value>
public int? ChargeModuleTemplateId { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string? ChargeCategoryName { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The coupon.
/// </summary>
public class BedModel
{
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int BedId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int RoomId { get; set; }
public string BedType { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string RoomName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string WardName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int WardId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string BedNumber { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int BedStatusId { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int? TotalItems { get; set; }
/// <summary>
/// Gets or Sets the bed status name.
/// </summary>
public string BedStatusName { get; set; }
/// <summary>
/// Gets or sets the modified by name.
/// </summary>
public string? ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string? FloorName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int? FloorId { get; set; }
/// <summary>
/// Gets or sets the created by name.
/// </summary>
public string? CreatedByName { get; set; }
/// <summary>
/// Gets or sets the Location Id.
/// </summary>
public int? LocationId { get; set; }
/// <summary>
/// Gets or sets the location name.
/// </summary>
public string LocationName { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The behavioral health full transcript model.
/// </summary>
public class BehavioralHealthFullTranscriptModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { get; set; }
/// <summary>
/// Gets or sets the patient id.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string? PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public char? PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string? PatientMobile { get; set; }
/// <summary>
/// Gets or sets the patient thumbnail url.
/// </summary>
public string? PatientThumbnailUrl { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short? PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the patient country code.
/// </summary>
public string? PatientCountryCode { 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; }
/// <summary>
/// Gets or sets the AppointmentTimeString
/// </summary>
public string? AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int BehavioralHealthId { get; set; }
/// <summary>
/// Gets or sets the problem history.
/// </summary>
public string? ProblemHistory { get; set; }
/// <summary>
/// Gets or sets the medical history.
/// </summary>
public string? MedicalHistory { get; set; }
/// <summary>
/// Gets or sets the current support.
/// </summary>
public string? CurrentSupport { get; set; }
/// <summary>
/// Gets or sets the current living.
/// </summary>
public string? CurrentLiving { get; set; }
/// <summary>
/// Gets or sets the educational history.
/// </summary>
public string? EducationalHistory { get; set; }
/// <summary>
/// Gets or sets the client strengths.
/// </summary>
public string? ClientStrengths { get; set; }
/// <summary>
/// Gets or sets the out come measures.
/// </summary>
public string? OutComeMeasures { get; set; }
/// <summary>
/// Gets or sets the substance history.
/// </summary>
public string? SubstanceHistory { get; set; }
/// <summary>
/// Gets or sets the work history.
/// </summary>
public string? WorkHistory { get; set; }
/// <summary>
/// Gets or sets the abuse history.
/// </summary>
public string? AbuseHistory { get; set; }
/// <summary>
/// Gets or sets the religion spirituality.
/// </summary>
public string? ReligionSpirituality { get; set; }
/// <summary>
/// Gets or sets the mental status.
/// </summary>
public string? MentalStatus { get; set; }
/// <summary>
/// Gets or sets the family relationships.
/// </summary>
public string? FamilyRelationships { get; set; }
/// <summary>
/// Gets or sets the relapse predictors.
/// </summary>
public string? RelapsePredictors { get; set; }
/// <summary>
/// Gets or sets the patient questionnaire.
/// </summary>
public string? PatientQuestionnaire { get; set; }
/// <summary>
/// Gets or sets the generalised anxiety disorder.
/// </summary>
public string? GeneralisedAnxietyDisorder { get; set; }
/// <summary>
/// Gets or sets the burns depression.
/// </summary>
public string? BurnsDepression { get; set; }
/// <summary>
/// Gets or sets the aims.
/// </summary>
public string? Aims { get; set; }
/// <summary>
/// Gets or sets the geno gram.
/// </summary>
public string? GenoGram { get; set; }
/// <summary>
/// Gets or sets the notes.
/// </summary>
public string? Notes { get; set; }
/// <summary>
/// Gets or sets the vitals.
/// </summary>
public string? Vitals { get; set; }
/// <summary>
/// Gets or sets the referral provider.
/// </summary>
public string? ReferralProvider { get; set; }
/// <summary>
/// Gets or sets the follow up.
/// </summary>
public string? FollowUp { get; set; }
/// <summary>
/// Gets or sets the medications.
/// </summary>
public string? Medications { get; set; }
/// <summary>
/// Gets or sets the treatment plan.
/// </summary>
public string? TreatmentPlan { get; set; }
/// <summary>
/// Gets or sets the symptoms.
/// </summary>
public string? Symptoms { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 provider name.
/// </summary>
public string? ProviderName { get; set; }
/// <summary>
/// Gets or sets the medication comment.
/// </summary>
public string? MedicationComment { get; set; }
}
}
#nullable enable
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The encounter.
/// </summary>
public class BehavioralHealthModel
{
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int BehavioralHealthId { get; set; }
/// <summary>
/// Gets or sets the encrypted encounter id.
/// </summary>
public string? EncryptedBehavioralHealthId { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { get; set; }
/// <summary>
/// Gets or sets the encounter date.
/// </summary>
public DateTime BehavioralHealthDate { get; set; }
/// <summary>
/// Gets or sets the problem history.
/// </summary>
public string? ProblemHistory { get; set; }
/// <summary>
/// Gets or sets the medical history.
/// </summary>
public string? MedicalHistory { get; set; }
/// <summary>
/// Gets or sets the current support.
/// </summary>
public string? CurrentSupport { get; set; }
/// <summary>
/// Gets or sets the current living.
/// </summary>
public string? CurrentLiving { get; set; }
/// <summary>
/// Gets or sets the educational history.
/// </summary>
public string? EducationalHistory { get; set; }
/// <summary>
/// Gets or sets the client strengths.
/// </summary>
public string? ClientStrengths { get; set; }
/// <summary>
/// Gets or sets the out come measures.
/// </summary>
public string? OutComeMeasures { get; set; }
/// <summary>
/// Gets or sets the substance history.
/// </summary>
public string? SubstanceHistory { get; set; }
/// <summary>
/// Gets or sets the work history.
/// </summary>
public string? WorkHistory { get; set; }
/// <summary>
/// Gets or sets the abuse history.
/// </summary>
public string? AbuseHistory { get; set; }
/// <summary>
/// Gets or sets the religion spirituality.
/// </summary>
public string? ReligionSpirituality { get; set; }
/// <summary>
/// Gets or sets the mental status.
/// </summary>
public string? MentalStatus { get; set; }
/// <summary>
/// Gets or sets the family relationships.
/// </summary>
public string? FamilyRelationships { get; set; }
/// <summary>
/// Gets or sets the relapse predictors.
/// </summary>
public string? RelapsePredictors { get; set; }
/// <summary>
/// Gets or sets the patient questionnaire.
/// </summary>
public string? PatientQuestionnaire { get; set; }
/// <summary>
/// Gets or sets the generalised anxiety disorder.
/// </summary>
public string? GeneralisedAnxietyDisorder { get; set; }
/// <summary>
/// Gets or sets the burns depression.
/// </summary>
public string? BurnsDepression { get; set; }
/// <summary>
/// Gets or sets the aims.
/// </summary>
public string? Aims { get; set; }
/// <summary>
/// Gets or sets the geno gram.
/// </summary>
public string? Genogram { get; set; }
/// <summary>
/// Gets or sets the notes.
/// </summary>
public string? Notes { get; set; }
/// <summary>
/// Gets or sets the vitals.
/// </summary>
public string? Vitals { get; set; }
/// <summary>
/// Gets or sets the referral provider.
/// </summary>
public string? ReferralProvider { get; set; }
/// <summary>
/// Gets or sets the follow up.
/// </summary>
public string? FollowUp { get; set; }
/// <summary>
/// Gets or sets the medications.
/// </summary>
public string? Medications { get; set; }
/// <summary>
/// Gets or sets the treatment plan.
/// </summary>
public string? TreatmentPlan { get; set; }
/// <summary>
/// Gets or sets the symptoms.
/// </summary>
public string? Symptoms { get; set; }
/// <summary>
/// Gets or sets the medication comment.
/// </summary>
public string? MedicationComment { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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; }
}
}
\ No newline at end of file
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The internal medicine prescription model.
/// </summary>
public class BehavioralPrescriptionModel
{
/// <summary>
/// Gets or sets the appointment id.
/// </summary>
public int AppointmentId { 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; }
/// <summary>
/// Gets or sets the appointment time string.
/// </summary>
public string AppointmentTimeString { get; set; }
/// <summary>
/// Gets or sets the encounter id.
/// </summary>
public int BehavioralHealthId { get; set; }
/// <summary>
/// Gets or sets the medications.
/// </summary>
public string Medications { get; set; }
/// <summary>
/// Gets or sets the follow up.
/// </summary>
public string FollowUp { get; set; }
/// <summary>
/// Gets or sets the provider name.
/// </summary>
public string ProviderName { get; set; }
/// <summary>
/// Gets or sets the specialization name.
/// </summary>
public string SpecializationName { get; set; }
/// <summary>
/// Gets or sets the practice name.
/// </summary>
public string PracticeName { get; set; }
/// <summary>
/// Gets or sets the practice location.
/// </summary>
public string PracticeLocation { get; set; }
/// <summary>
/// Gets or sets the patient name.
/// </summary>
public string PatientName { get; set; }
/// <summary>
/// Gets or sets the patient gender.
/// </summary>
public string PatientGender { get; set; }
/// <summary>
/// Gets or sets the patient age.
/// </summary>
public short PatientAge { get; set; }
/// <summary>
/// Gets or sets the patient date of birth.
/// </summary>
public DateTime? PatientDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the patient mobile.
/// </summary>
public string PatientMobile { get; set; }
/// <summary>
/// Gets or sets the provider no.
/// </summary>
public string ProviderNo { get; set; }
/// <summary>
/// Gets or sets the medication comment.
/// </summary>
public string MedicationComment { get; set; }
/// <summary>
/// Gets or sets the appointment no.
/// </summary>
public string AppointmentNo { get; set; }
}
}
using System;
namespace Hims.Shared.EntityModels
{
public class BirthCertificateModel
{
/// <summary>
/// Gets or sets the birth certificate id.
/// </summary>
public int BirthCertificateId { get; set; }
/// <summary>
/// Gets or sets the birth certificate no.
/// </summary>
public string BirthCertificateNo { get; set; }
/// <summary>
/// Gets or sets the child name.
/// </summary>
public string ChildName { get; set; }
/// <summary>
/// Gets or sets the date of birth.
/// </summary>
public DateTime? DateOfBirth { get; set; }
public DateTime? BabyDateOfBirth { get; set; }
/// <summary>
/// Gets or sets the time of birth.
/// </summary>
public string TimeOfBirth { get; set; }
/// <summary>
/// Gets or sets the time of birth.
/// </summary>
public string BabyTime { get; set; }
/// <summary>
/// Gets or sets the sex.
/// </summary>
public string Sex { get; set; }
/// <summary>
/// Gets or sets the place of birth.
/// </summary>
public string PlaceOfBirth { set; get; }
/// <summary>
/// Gets or sets the age of mother before marriage.
/// </summary>
public int? AgeOfMotherAtMarriage { get; set; }
/// <summary>
/// Gets or sets the informants name.
/// </summary>
public string InformantsName { get; set; }
/// <summary>
/// Gets or sets the informants address.
/// </summary>
public string InformantsAddress { get; set; }
/// <summary>
/// Gets or sets the patientId.
/// </summary>
public int PatientId { get; set; }
/// <summary>
/// Gets or sets the admission id.
/// </summary>
public int AdmissionId { get; set; }
/// <summary>
/// Gets or sets the active.
/// </summary>
public bool Active { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int CreatedBy { 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 login role id.
/// </summary>
public int? LoginRoleId { get; set; }
/// <summary>
/// Gets or sets the created by name.
/// </summary>
public string CreatedByName { get; set; }
public string FatherEducation { get; set; }
public string FatherOccupation { get; set; }
public string FatherName { get; set; }
public string PatientName { get; set; }
public string ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
public DateTime? CreatedDate { get; set; }
/// <summary>
/// Gets or sets the page index.
/// </summary>
public int? PageIndex { get; set; }
/// <summary>
/// Gets or sets the page size.
/// </summary>
public int? PageSize { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int? TotalItems { get; set; }
public string MotherName { get; set; }
public int PresentMotherAge { get; set; }
public string State { get; set; }
public string MotherResidence { get; set; }
public string Village { get; set; }
/// <summary>
/// Gets or sets the id proof id identifier.
/// </summary>
/// <value>
/// The id proof id identifier.
/// </value>
public int? OccupationId { get; set; }
/// <summary>
/// Gets or sets the occupation detail.
/// </summary>
/// <value>
/// The occupation detail.
/// </value>
public string? OccupationDetail { get; set; }
public string Religion { get; set; }
public string Babysex { get; set; }
public string OccupationName { get; set; }
public string EducationName { get; set; }
public string StreetAddress { get; set; }
public string AddressLine2 { get; set; }
public string City { get; set; }
public string FatherOccupationDetails { get; set; }
public int? PatientAge { get; set; }
public string UMRNo { get; set; }
public string Mobile { get; set; }
public string AdmissionNo { get; set; }
public int? BabyWeight { get; set; }
public string TypeOfDelivery { get; set; }
public string MethodOfDelivery { get; set; }
public string DurationOfPregnancy { get; set; }
public string NoOfChildBorn { get; set; }
public string Zipcode { get; set; }
}
}
using Hims.Shared.Dapper.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Hims.Shared.EntityModels
{
/// <summary>
///
/// </summary>
public class CaseTypeModel
{
/// <summary>
///
/// </summary>
[Key, Identity]
public int CaseTypeId { get; set; }
/// <summary>
///
/// </summary>
public string CaseTypeName { get; set; }
/// <summary>
///
/// </summary>
public string Code { get; set; }
/// <summary>
///
/// </summary>
public bool Active { get; set; }
/// <summary>
///
/// </summary>
public int CreatedBy { get; set; }
/// <summary>
///
/// </summary>
public DateTime CreatedDate { get; set; }
/// <summary>
///
/// </summary>
public int? ModifiedBy { get; set; }
/// <summary>
///
/// </summary>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// Gets or sets the login role identifier.
/// </summary>
/// <value>
/// The login role identifier.
/// </value>
public short? LoginRoleId { get; set; }
/// <summary>
/// Gets or sets the name of the created by.
/// </summary>
/// <value>
/// The name of the created by.
/// </value>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the name of the created by.
/// </summary>
/// <value>
/// The name of the created by.
/// </value>
public string ModifiedByName { get; set; }
}
}
namespace Hims.Domain.EntityModels
{
using System;
using System.ComponentModel.DataAnnotations;
using Shared.Dapper.Attributes;
/// <summary>
/// The visit type.
/// </summary>
public class ChargeCategoryModel
{
/// <summary>
/// Gets or sets the charge types id.
/// </summary>
public int? ChargeCategoryId { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string ChargeCategoryName { get; set; }
/// <summary>
/// Gets or sets the charge 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 charge category name.
/// </summary>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string? ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string LocationNames { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string LocationIds { get; set; }
/// <summary>
/// Gets or sets the total items.
/// </summary>
public int? TotalItems { get; set; }
/// <summary>
/// Gets or sets the page index.
/// </summary>
public int? PageIndex { get; set; }
/// <summary>
/// Gets or sets the page size.
/// </summary>
public int? PageSize { get; set; }
/// <summary>
/// Gets or sets the default.
/// </summary>
/// <value>
/// The default.
/// </value>
public bool? Default { get; set; }
/// <summary>
/// Gets or sets the roomcharge Id name.
/// </summary>
public int? RoomChargeId { get; set; }
/// <summary>
/// Gets or sets the cost/charges to category.
/// </summary>
public double? Cost { get; set; }
/// <summary>
/// Gets or sets the login role
/// </summary>
public short? LoginRoleId { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The coupon.
/// </summary>
public class ChargeGroupModel
{
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int ChargeGroupId { get; set; }
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int ChargeId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int DepartmentId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int Cost { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string ChargeGroupName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string DepartmentName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string ChargeName { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int? TotalItems { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The coupon.
/// </summary>
public class ChargeModel
{
/// <summary>
/// Gets or sets the bed id.
/// </summary>
public int ChargeId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int ChargeGroupId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int RepeatTypeId { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string RepeatTypeName { get; set; }
/// <summary>
/// Gets or sets the charge group name.
/// </summary>
public string ChargeGroupName { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public int Cost { get; set; }
/// <summary>
/// Gets or sets the coupon code.
/// </summary>
public string ChargeName { 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>
public int CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int? TotalItems { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
using System.ComponentModel.DataAnnotations;
using Hims.Shared.Dapper.Attributes;
/// <summary>
/// The coupon.
/// </summary>
public class ChargeTypesModel
{
/// <summary>
/// Gets or sets the charge types id.
/// </summary>
public int? ChargeTypesId { get; set; }
/// <summary>
/// Gets or sets the charge name.
/// </summary>
public string ChargeName { 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>
public int? CreatedBy { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
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 total items.
/// </summary>
public int? TotalItems { get; set; }
/// <summary>
/// Gets or Sets the modified By Name.
/// </summary>
public string? ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the Location Id.
/// </summary>
public int? LocationId { get; set; }
/// <summary>
/// Gets or sets the login role
/// </summary>
public short? LoginRoleId { get; set; }
/// <summary>
/// Gets or sets the charge category name.
/// </summary>
public string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the provider id.
/// </summary>
public int? ProviderId { get; set; }
/// <summary>
/// Gets or sets the specialization id.
/// </summary>
public int? SpecializationId { get; set; }
/// <summary>
/// Gets or sets the consultation type id.
/// </summary>
public int? ConsultationTypeId { get; set; }
/// <summary>
/// Gets or sets the appointment date.
/// </summary>
public string? AppointmentDate { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary> The chat.</summary>
public class ChatModel
{
/// <summary>Gets or sets the chat id.</summary>
public int ChatId { get; set; }
/// <summary>Gets or sets the sender id.</summary>
public int SenderId { get; set; }
/// <summary>Gets or sets the sender type.</summary>
public string SenderType { get; set; }
/// <summary>Gets or sets the receiver id.</summary>
public int ReceiverId { get; set; }
/// <summary>Gets or sets the receiver type.</summary>
public string ReceiverType { get; set; }
/// <summary>Gets or sets the created date.</summary>
public DateTime CreatedDate { get; set; }
/// <summary>Gets or sets the message.</summary>
public string Message { get; set; }
/// <summary>Gets or sets the Location id.</summary>
public int? LocationId { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The company model.
/// </summary>
public class CompanyFilterModel
{
/// Gets or sets the company id.
/// </summary>
public int? CompanyId { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the location.
/// </summary>
public string Location { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the type of.
/// </summary>
public string TypeOf { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int? CreatedBy { 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 string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the modified by name.
/// </summary>
public string ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the FromDate.
/// </summary>
public string FromDate { get; set; }
/// <summary>
/// Gets or sets the Todate.
/// </summary>
public string ToDate { get; set; }
}
}
namespace Hims.Shared.EntityModels
{
using System;
/// <summary>
/// The company model.
/// </summary>
public class CompanyModel
{
/// <summary>
/// Gets or sets the company id.
/// </summary>
public int CompanyId { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the location.
/// </summary>
public string Location { get; set; }
/// <summary>
/// Gets or sets the created date.
/// </summary>
public DateTime CreatedDate { get; set; }
/// <summary>
/// Gets or sets the type of.
/// </summary>
public string TypeOf { get; set; }
/// <summary>
/// Gets or sets the login Account value id.
/// </summary>
public int? LoginAccountId { get; set; }
/// <summary>
/// Gets or sets the login Role value id.
/// </summary>
public int? LoginRoleId { get; set; }
/// <summary>
/// Gets or sets the created by.
/// </summary>
public int? CreatedBy { 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 string CreatedByName { get; set; }
/// <summary>
/// Gets or sets the modified by name.
/// </summary>
public string ModifiedByName { get; set; }
/// <summary>
/// Gets or sets the FromDate.
/// </summary>
public string FromDate { get; set; }
/// <summary>
/// Gets or sets the Todate.
/// </summary>
public string ToDate { 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