Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sandeep Sagar
HIMS
Commits
d66408ab
Commit
d66408ab
authored
Oct 12, 2023
by
Sandeep Sagar Panjala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parent
c873da39
Show whitespace changes
Inline
Side-by-side
Showing
123 changed files
with
9609 additions
and
0 deletions
+9609
-0
VaccineType.cs
Domain/Hims.Domian.Entities/Vaccine/VaccineType.cs
+36
-0
IncomingQuotationDetail.cs
...n/Hims.Domian.Entities/Vendors/IncomingQuotationDetail.cs
+122
-0
IncomingQuotationHeader.cs
...n/Hims.Domian.Entities/Vendors/IncomingQuotationHeader.cs
+135
-0
InventoryProductRequest.cs
...n/Hims.Domian.Entities/Vendors/InventoryProductRequest.cs
+132
-0
PharmacyProductApproval.cs
...n/Hims.Domian.Entities/Vendors/PharmacyProductApproval.cs
+120
-0
PharmacyProductRequest.cs
...in/Hims.Domian.Entities/Vendors/PharmacyProductRequest.cs
+99
-0
ProductForQuotationDetail.cs
...Hims.Domian.Entities/Vendors/ProductForQuotationDetail.cs
+46
-0
ProductForQuotationHeader.cs
...Hims.Domian.Entities/Vendors/ProductForQuotationHeader.cs
+55
-0
PurchaseOrderDetail.cs
Domain/Hims.Domian.Entities/Vendors/PurchaseOrderDetail.cs
+86
-0
PurchaseOrderHeader.cs
Domain/Hims.Domian.Entities/Vendors/PurchaseOrderHeader.cs
+111
-0
SupplierProductDetail.cs
Domain/Hims.Domian.Entities/Vendors/SupplierProductDetail.cs
+54
-0
SupplierProductFormulation.cs
...ims.Domian.Entities/Vendors/SupplierProductFormulation.cs
+54
-0
SupplierProductHeader.cs
Domain/Hims.Domian.Entities/Vendors/SupplierProductHeader.cs
+87
-0
TendorStatus.cs
Domain/Hims.Domian.Entities/Vendors/TendorStatus.cs
+30
-0
Hims.Domain.Helpers.csproj
Domain/Hims.Domian.Helpers/Hims.Domain.Helpers.csproj
+33
-0
IAESHelper.cs
Domain/Hims.Domian.Helpers/IAESHelper.cs
+53
-0
IAuthHelper.cs
Domain/Hims.Domian.Helpers/IAuthHelper.cs
+85
-0
ICookieHelper.cs
Domain/Hims.Domian.Helpers/ICookieHelper.cs
+55
-0
IDocumentHelper.cs
Domain/Hims.Domian.Helpers/IDocumentHelper.cs
+315
-0
IEmailHelper.cs
Domain/Hims.Domian.Helpers/IEmailHelper.cs
+34
-0
IFtpHelper.cs
Domain/Hims.Domian.Helpers/IFtpHelper.cs
+97
-0
IFtpUploadHelper.cs
Domain/Hims.Domian.Helpers/IFtpUploadHelper.cs
+90
-0
IKaleyraSMSHelper.cs
Domain/Hims.Domian.Helpers/IKaleyraSMSHelper.cs
+46
-0
IPayUHelper.cs
Domain/Hims.Domian.Helpers/IPayUHelper.cs
+124
-0
IPushNotificationHelper.cs
Domain/Hims.Domian.Helpers/IPushNotificationHelper.cs
+292
-0
ISMSHelper.cs
Domain/Hims.Domian.Helpers/ISMSHelper.cs
+42
-0
ISalucroHelper.cs
Domain/Hims.Domian.Helpers/ISalucroHelper.cs
+44
-0
IShaHelper.cs
Domain/Hims.Domian.Helpers/IShaHelper.cs
+23
-0
ITemplateHelper.cs
Domain/Hims.Domian.Helpers/ITemplateHelper.cs
+20
-0
IURLShortnerHelper.cs
Domain/Hims.Domian.Helpers/IURLShortnerHelper.cs
+22
-0
Hims.Domain.Services.csproj
Domain/Hims.Domian.Services/Hims.Domain.Services.csproj
+29
-0
IAccountCredentialService.cs
Domain/Hims.Domian.Services/IAccountCredentialService.cs
+67
-0
IAccountService.cs
Domain/Hims.Domian.Services/IAccountService.cs
+380
-0
IAccountSessionService.cs
Domain/Hims.Domian.Services/IAccountSessionService.cs
+127
-0
IAdmissionService.cs
Domain/Hims.Domian.Services/IAdmissionService.cs
+138
-0
IAmbulanceRecieptService.cs
Domain/Hims.Domian.Services/IAmbulanceRecieptService.cs
+27
-0
IAmbulanceService.cs
Domain/Hims.Domian.Services/IAmbulanceService.cs
+28
-0
IAppointmentCheckService.cs
Domain/Hims.Domian.Services/IAppointmentCheckService.cs
+35
-0
IAppointmentExceptionLogService.cs
...n/Hims.Domian.Services/IAppointmentExceptionLogService.cs
+22
-0
IAppointmentLogService.cs
Domain/Hims.Domian.Services/IAppointmentLogService.cs
+45
-0
IAppointmentService.cs
Domain/Hims.Domian.Services/IAppointmentService.cs
+501
-0
IAppointmentTransactionService.cs
...in/Hims.Domian.Services/IAppointmentTransactionService.cs
+186
-0
IAppointmentTypesService .cs
Domain/Hims.Domian.Services/IAppointmentTypesService .cs
+41
-0
IAssessmentTypeService.cs
Domain/Hims.Domian.Services/IAssessmentTypeService.cs
+70
-0
IAuditLogService.cs
Domain/Hims.Domian.Services/IAuditLogService.cs
+35
-0
IAuthorityMasterService.cs
Domain/Hims.Domian.Services/IAuthorityMasterService.cs
+47
-0
IBedBoardListViewService.cs
Domain/Hims.Domian.Services/IBedBoardListViewService.cs
+14
-0
IBedManagementService.cs
Domain/Hims.Domian.Services/IBedManagementService.cs
+79
-0
IBedService.cs
Domain/Hims.Domian.Services/IBedService.cs
+88
-0
IBehavioralHealthService.cs
Domain/Hims.Domian.Services/IBehavioralHealthService.cs
+86
-0
IBirthCertificateService.cs
Domain/Hims.Domian.Services/IBirthCertificateService.cs
+27
-0
IBookScanAppointmentService.cs
Domain/Hims.Domian.Services/IBookScanAppointmentService.cs
+169
-0
ICallHistoryDataService.cs
Domain/Hims.Domian.Services/ICallHistoryDataService.cs
+68
-0
ICaseTypeService.cs
Domain/Hims.Domian.Services/ICaseTypeService.cs
+45
-0
IChargeCategoryService.cs
Domain/Hims.Domian.Services/IChargeCategoryService.cs
+113
-0
IChargeGroupService.cs
Domain/Hims.Domian.Services/IChargeGroupService.cs
+81
-0
IChargeManagementService.cs
Domain/Hims.Domian.Services/IChargeManagementService.cs
+39
-0
IChargeModuleService.cs
Domain/Hims.Domian.Services/IChargeModuleService.cs
+44
-0
IChargeService.cs
Domain/Hims.Domian.Services/IChargeService.cs
+81
-0
IChargeTypesService.cs
Domain/Hims.Domian.Services/IChargeTypesService.cs
+83
-0
IChatService.cs
Domain/Hims.Domian.Services/IChatService.cs
+34
-0
ICompanyService.cs
Domain/Hims.Domian.Services/ICompanyService.cs
+68
-0
IComponentService.cs
Domain/Hims.Domian.Services/IComponentService.cs
+42
-0
IComponentTypeService.cs
Domain/Hims.Domian.Services/IComponentTypeService.cs
+42
-0
IConsultationTypeService.cs
Domain/Hims.Domian.Services/IConsultationTypeService.cs
+59
-0
IContactDetailsService.cs
Domain/Hims.Domian.Services/IContactDetailsService.cs
+70
-0
ICounsellingService.cs
Domain/Hims.Domian.Services/ICounsellingService.cs
+36
-0
ICountryService.cs
Domain/Hims.Domian.Services/ICountryService.cs
+85
-0
ICouponService.cs
Domain/Hims.Domian.Services/ICouponService.cs
+118
-0
ICubicleService.cs
Domain/Hims.Domian.Services/ICubicleService.cs
+73
-0
IDashboardWidgetService.cs
Domain/Hims.Domian.Services/IDashboardWidgetService.cs
+68
-0
IDemandBookservice.cs
Domain/Hims.Domian.Services/IDemandBookservice.cs
+46
-0
IDentalEncounterService.cs
Domain/Hims.Domian.Services/IDentalEncounterService.cs
+119
-0
IDenverchartService.cs
Domain/Hims.Domian.Services/IDenverchartService.cs
+39
-0
IDepartmentService.cs
Domain/Hims.Domian.Services/IDepartmentService.cs
+65
-0
IDietConditionHeaderService.cs
Domain/Hims.Domian.Services/IDietConditionHeaderService.cs
+29
-0
IDietEncounterService.cs
Domain/Hims.Domian.Services/IDietEncounterService.cs
+69
-0
IDietGuidLinesService.cs
Domain/Hims.Domian.Services/IDietGuidLinesService.cs
+73
-0
IDietItemsService.cs
Domain/Hims.Domian.Services/IDietItemsService.cs
+23
-0
IDietSlotsMasterService.cs
Domain/Hims.Domian.Services/IDietSlotsMasterService.cs
+33
-0
IDischargeInstruction.cs
Domain/Hims.Domian.Services/IDischargeInstruction.cs
+81
-0
IDischargeService.cs
Domain/Hims.Domian.Services/IDischargeService.cs
+87
-0
IDiscountManagementService.cs
Domain/Hims.Domian.Services/IDiscountManagementService.cs
+100
-0
IDoctorAppointmentNoticeService.cs
...n/Hims.Domian.Services/IDoctorAppointmentNoticeService.cs
+54
-0
IDoctorDeviceDetailsService.cs
Domain/Hims.Domian.Services/IDoctorDeviceDetailsService.cs
+35
-0
IDoctorScheduleVisitsService.cs
Domain/Hims.Domian.Services/IDoctorScheduleVisitsService.cs
+62
-0
IDoctorUnitService.cs
Domain/Hims.Domian.Services/IDoctorUnitService.cs
+42
-0
IDriverDetailService.cs
Domain/Hims.Domian.Services/IDriverDetailService.cs
+40
-0
IDynamicDashboardService.cs
Domain/Hims.Domian.Services/IDynamicDashboardService.cs
+46
-0
IDynamicReportService.cs
Domain/Hims.Domian.Services/IDynamicReportService.cs
+86
-0
IDynamicTemplateConfigService.cs
Domain/Hims.Domian.Services/IDynamicTemplateConfigService.cs
+48
-0
IDynamicTemplateService.cs
Domain/Hims.Domian.Services/IDynamicTemplateService.cs
+40
-0
IEmergencyEncounterService.cs
Domain/Hims.Domian.Services/IEmergencyEncounterService.cs
+63
-0
IEmployeeShiftService.cs
Domain/Hims.Domian.Services/IEmployeeShiftService.cs
+57
-0
IEncounterService.cs
Domain/Hims.Domian.Services/IEncounterService.cs
+250
-0
IEncounterTemplateService.cs
Domain/Hims.Domian.Services/IEncounterTemplateService.cs
+28
-0
IEncounterTypeService.cs
Domain/Hims.Domian.Services/IEncounterTypeService.cs
+72
-0
IEncountersLogService.cs
Domain/Hims.Domian.Services/IEncountersLogService.cs
+46
-0
IEnumerate.cs
Domain/Hims.Domian.Services/IEnumerate.cs
+7
-0
IExcelUploadHistoryService.cs
Domain/Hims.Domian.Services/IExcelUploadHistoryService.cs
+47
-0
IExceptionLogService.cs
Domain/Hims.Domian.Services/IExceptionLogService.cs
+61
-0
IExportService.cs
Domain/Hims.Domian.Services/IExportService.cs
+36
-0
IFeedbackDetailsService.cs
Domain/Hims.Domian.Services/IFeedbackDetailsService.cs
+67
-0
IFeedbackService.cs
Domain/Hims.Domian.Services/IFeedbackService.cs
+81
-0
IFinalBillService.cs
Domain/Hims.Domian.Services/IFinalBillService.cs
+63
-0
IFloorService.cs
Domain/Hims.Domian.Services/IFloorService.cs
+93
-0
IGatePassService.cs
Domain/Hims.Domian.Services/IGatePassService.cs
+39
-0
IGeneralAdviceService.cs
Domain/Hims.Domian.Services/IGeneralAdviceService.cs
+69
-0
IGeneralNotificationService.cs
Domain/Hims.Domian.Services/IGeneralNotificationService.cs
+19
-0
IGeneticSpecialityEncounterService.cs
...ims.Domian.Services/IGeneticSpecialityEncounterService.cs
+52
-0
IGynEncounterService.cs
Domain/Hims.Domian.Services/IGynEncounterService.cs
+155
-0
IHealthCardService.cs
Domain/Hims.Domian.Services/IHealthCardService.cs
+71
-0
IHomeopathyService.cs
Domain/Hims.Domian.Services/IHomeopathyService.cs
+98
-0
IHwcPatientService.cs
Domain/Hims.Domian.Services/IHwcPatientService.cs
+41
-0
IIcdService.cs
Domain/Hims.Domian.Services/IIcdService.cs
+63
-0
IIconService.cs
Domain/Hims.Domian.Services/IIconService.cs
+46
-0
IIdProofService.cs
Domain/Hims.Domian.Services/IIdProofService.cs
+55
-0
IInPatientsViewService.cs
Domain/Hims.Domian.Services/IInPatientsViewService.cs
+20
-0
IIndentService.cs
Domain/Hims.Domian.Services/IIndentService.cs
+91
-0
IInitialVendorService.cs
Domain/Hims.Domian.Services/IInitialVendorService.cs
+211
-0
IInsuranceAdmissionService.cs
Domain/Hims.Domian.Services/IInsuranceAdmissionService.cs
+174
-0
IInsuranceCompanyService.cs
Domain/Hims.Domian.Services/IInsuranceCompanyService.cs
+86
-0
IInsuranceTemplateService.cs
Domain/Hims.Domian.Services/IInsuranceTemplateService.cs
+99
-0
No files found.
Domain/Hims.Domian.Entities/Vaccine/VaccineType.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vaccine
{
using
Hims.Shared.Dapper.Attributes
;
using
System.ComponentModel.DataAnnotations
;
/// <summary>
/// The vaccine type.
/// </summary>
public
class
VaccineType
{
/// <summary>
/// Gets or sets the vaccine type identifier.
/// </summary>
/// <value>
/// The vaaccine type identifier.
/// </value>
[
Key
,
Identity
]
public
int
VaccineTypeId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the name of the type.
/// </summary>
/// <value>
/// The name of the type.
/// </value>
public
string
TypeName
{
get
;
set
;
}
/// <summary>
/// Gets or sets the color of the row.
/// </summary>
/// <value>
/// The color of the row.
/// </value>
public
string
RowColor
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/IncomingQuotationDetail.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The incoming quoatation detail.
/// </summary>
[
Table
(
"IncomingQuotationDetail"
,
Schema
=
"vendors"
)]
public
class
IncomingQuotationDetail
{
/// <summary>
/// Gets or sets the incoming quotation detail identifier.
/// </summary>
/// <value>
/// The incoming quotation detail identifier.
/// </value>
[
Key
,
Identity
]
public
long
IncomingQuotationDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public
long
PharmacyProductApprovalId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
public
long
IncomingQuotationHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the product for quotation detail identifier.
/// </summary>
/// <value>
/// The product for quotation detail identifier.
/// </value>
public
long
ProductForQuotationDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public
int
PharmacyProductId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tax.
/// </summary>
/// <value>
/// The tax.
/// </value>
public
int
Tax
{
get
;
set
;
}
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public
double
PurchaseRate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public
double
MRP
{
get
;
set
;
}
/// <summary>
/// Gets or sets the amount.
/// </summary>
/// <value>
/// The amount.
/// </value>
public
double
Amount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tax amount.
/// </summary>
/// <value>
/// The tax amount.
/// </value>
public
double
TaxAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the discount percentage.
/// </summary>
/// <value>
/// The discount percentage.
/// </value>
public
double
DiscountPercentage
{
get
;
set
;
}
/// <summary>
/// Gets or sets the discount amount.
/// </summary>
/// <value>
/// The discount amount.
/// </value>
public
double
DiscountAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the net amount.
/// </summary>
/// <value>
/// The net amount.
/// </value>
public
double
NetAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public
int
Quantity
{
get
;
set
;
}
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public
int
?
Free
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/IncomingQuotationHeader.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The incoming quoatation header.
/// </summary>
[
Table
(
"IncomingQuotationHeader"
,
Schema
=
"vendors"
)]
public
class
IncomingQuotationHeader
{
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
[
Key
,
Identity
]
public
long
IncomingQuotationHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
public
long
ProductForQuotationHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public
int
SupplierId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public
int
?
ModifiedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public
DateTime
?
ModifiedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets a value indicating whether this instance is finalized.
/// </summary>
/// <value>
/// <c>true</c> if this instance is finalized; otherwise, <c>false</c>.
/// </value>
public
bool
IsFinalized
{
get
;
set
;
}
/// <summary>
/// Gets or sets the finalized by.
/// </summary>
/// <value>
/// The finalized by.
/// </value>
public
int
?
FinalizedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the finalized date.
/// </summary>
/// <value>
/// The finalized date.
/// </value>
public
DateTime
?
FinalizedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the delivery date.
/// </summary>
/// <value>
/// The delivery date.
/// </value>
public
DateTime
?
DeliveryDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total amount.
/// </summary>
/// <value>
/// The total amount.
/// </value>
public
double
TotalAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total tax.
/// </summary>
/// <value>
/// The total tax.
/// </value>
public
double
TotalTax
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total net amount.
/// </summary>
/// <value>
/// The total net amount.
/// </value>
public
double
TotalNetAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total discount.
/// </summary>
/// <value>
/// The total discount.
/// </value>
public
double
TotalDiscount
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/InventoryProductRequest.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The inventory product request.
/// </summary>
[
Table
(
"InventoryProductRequest"
,
Schema
=
"vendors"
)]
public
class
InventoryProductRequest
{
/// <summary>
/// Gets or sets the inventory product request identifier.
/// </summary>
/// <value>
/// The inventory product request identifier.
/// </value>
[
Key
,
Identity
]
public
int
InventoryProductRequestId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public
int
?
PharmacyProductId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the name of the request product.
/// </summary>
/// <value>
/// The name of the request product.
/// </value>
public
string
RequestProductName
{
get
;
set
;
}
/// <summary>
/// Gets or sets the reason for request.
/// </summary>
/// <value>
/// The reason for request.
/// </value>
public
string
ReasonForRequest
{
get
;
set
;
}
/// <summary>
/// Gets or sets the requested quantity.
/// </summary>
/// <value>
/// The requested quantity.
/// </value>
public
int
RequestedQuantity
{
get
;
set
;
}
/// <summary>
/// Gets or sets the type of the request.
/// </summary>
/// <value>
/// The type of the request.
/// </value>
public
string
RequestType
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
public
long
?
PharmacyProductRequestId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the rejected by.
/// </summary>
/// <value>
/// The rejected by.
/// </value>
public
int
?
RejectedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the rejected date.
/// </summary>
/// <value>
/// The rejected date.
/// </value>
public
DateTime
?
RejectedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the reject reason.
/// </summary>
/// <value>
/// The reject reason.
/// </value>
public
string
RejectReason
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public
int
?
ModifiedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public
DateTime
?
ModifiedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the document URL.
/// </summary>
/// <value>
/// The document URL.
/// </value>
public
string
DocumentUrl
{
get
;
set
;
}
/// <summary>
/// Gets or sets the location identifier.
/// </summary>
/// <value>
/// The location identifier.
/// </value>
public
int
?
LocationId
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/PharmacyProductApproval.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The pharmacy product approval.
/// </summary>
[
Table
(
"PharmacyProductApproval"
,
Schema
=
"vendors"
)]
public
class
PharmacyProductApproval
{
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
[
Key
,
Identity
]
public
long
PharmacyProductApprovalId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public
int
PharmacyProductId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy ware house identifier.
/// </summary>
/// <value>
/// The pharmacy stock identifier.
/// </value>
public
int
PharmacyWareHouseId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public
double
?
PurchaseRate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public
double
?
Mrp
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public
int
?
SupplierId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public
int
TenderStatusId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
public
int
PharmacyProductRequestId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public
int
Quantity
{
get
;
set
;
}
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public
int
?
Free
{
get
;
set
;
}
/// <summary>
/// Gets or sets the incoming quotation header identifier.
/// </summary>
/// <value>
/// The incoming quotation header identifier.
/// </value>
public
long
?
ProductForQuotationHeaderId
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/PharmacyProductRequest.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The component.
/// </summary>
[
Table
(
"PharmacyProductRequest"
,
Schema
=
"vendors"
)]
public
class
PharmacyProductRequest
{
/// <summary>
/// Gets or sets the pharmacy product request identifier.
/// </summary>
/// <value>
/// The pharmacy product request identifier.
/// </value>
[
Key
,
Identity
]
public
long
PharmacyProductRequestId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public
int
PharmacyProductId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy warehouse identifier.
/// </summary>
/// <value>
/// The pharmacy stock identifier.
/// </value>
public
int
PharmacyWareHouseId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public
int
TenderStatusId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the raised by.
/// </summary>
/// <value>
/// The raised by.
/// </value>
public
int
RaisedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the raised date.
/// </summary>
/// <value>
/// The raised date.
/// </value>
public
DateTime
RaisedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the approved by.
/// </summary>
/// <value>
/// The approved by.
/// </value>
public
int
?
ApprovedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the approved date.
/// </summary>
/// <value>
/// The approved date.
/// </value>
public
DateTime
?
ApprovedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the approval given by.
/// </summary>
/// <value>
/// The approval given by.
/// </value>
public
int
?
ApprovalGivenBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the approval given date.
/// </summary>
/// <value>
/// The approved date.
/// </value>
public
DateTime
?
ApprovalGivenDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the requested quantity.
/// </summary>
/// <value>
/// The requested quantity.
/// </value>
public
int
?
RequestedQuantity
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/ProductForQuotationDetail.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Dapper.Attributes
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Hims.Domain.Entities.Vendors
{
/// <summary>
/// The product for quotation detail.
/// </summary>
[
Table
(
"ProductForQuotationDetail"
,
Schema
=
"vendors"
)]
public
class
ProductForQuotationDetail
{
/// <summary>
/// Gets or sets the product for quotation detail identifier.
/// </summary>
/// <value>
/// The product for quotation detail identifier.
/// </value>
[
Key
,
Identity
]
public
long
ProductForQuotationDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public
long
PharmacyProductApprovalId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
public
long
ProductForQuotationHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public
int
TenderStatusId
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/ProductForQuotationHeader.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Dapper.Attributes
;
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Hims.Domain.Entities.Vendors
{
/// <summary>
/// The product for quotation header.
/// </summary>
[
Table
(
"ProductForQuotationHeader"
,
Schema
=
"vendors"
)]
public
class
ProductForQuotationHeader
{
/// <summary>
/// Gets or sets the product for quotation header identifier.
/// </summary>
/// <value>
/// The product for quotation header identifier.
/// </value>
[
Key
,
Identity
]
public
long
ProductForQuotationHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the quotation number.
/// </summary>
/// <value>
/// The quotation number.
/// </value>
public
string
QuotationNumber
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public
int
TenderStatusId
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/PurchaseOrderDetail.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The purchase order detail.
/// </summary>
[
Table
(
"PurchaseOrderDetail"
,
Schema
=
"vendors"
)]
public
class
PurchaseOrderDetail
{
/// <summary>
/// Gets or sets the purchase order detail identifier.
/// </summary>
/// <value>
/// The purchase order detail identifier.
/// </value>
[
Key
,
Identity
]
public
long
PurchaseOrderDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the purchase order header identifier.
/// </summary>
/// <value>
/// The purchase order header identifier.
/// </value>
public
long
PurchaseOrderHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product approval identifier.
/// </summary>
/// <value>
/// The pharmacy product approval identifier.
/// </value>
public
long
PharmacyProductApprovalId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the quantity.
/// </summary>
/// <value>
/// The quantity.
/// </value>
public
int
Quantity
{
get
;
set
;
}
/// <summary>
/// Gets or sets the free.
/// </summary>
/// <value>
/// The free.
/// </value>
public
int
Free
{
get
;
set
;
}
/// <summary>
/// Gets or sets the amount.
/// </summary>
/// <value>
/// The amount.
/// </value>
public
double
Amount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tax amount.
/// </summary>
/// <value>
/// The tax amount.
/// </value>
public
double
TaxAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the net amount.
/// </summary>
/// <value>
/// The net amount.
/// </value>
public
double
NetAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets a value indicating whether this instance is added by GRN.
/// </summary>
/// <value>
/// <c>true</c> if this instance is added by GRN; otherwise, <c>false</c>.
/// </value>
public
bool
IsAddedByGrn
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/PurchaseOrderHeader.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The purchase order header.
/// </summary>
[
Table
(
"PurchaseOrderHeader"
,
Schema
=
"vendors"
)]
public
class
PurchaseOrderHeader
{
/// <summary>
/// Gets or sets the purchase order header identifier.
/// </summary>
/// <value>
/// The purchase order header identifier.
/// </value>
[
Key
,
Identity
]
public
long
PurchaseOrderHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the po number.
/// </summary>
/// <value>
/// The po number.
/// </value>
public
string
PONumber
{
get
;
set
;
}
/// <summary>
/// Gets or sets the po raise date.
/// </summary>
/// <value>
/// The po raise date.
/// </value>
public
DateTime
PORaiseDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the estimated delivery date.
/// </summary>
/// <value>
/// The estimated delivery date.
/// </value>
public
DateTime
?
EstimatedDeliveryDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
public
int
TenderStatusId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total amount.
/// </summary>
/// <value>
/// The total amount.
/// </value>
public
double
TotalAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total tax.
/// </summary>
/// <value>
/// The total tax.
/// </value>
public
double
TotalTax
{
get
;
set
;
}
/// <summary>
/// Gets or sets the total net amount.
/// </summary>
/// <value>
/// The total net amount.
/// </value>
public
double
TotalNetAmount
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public
int
SupplierId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy ware house identifier.
/// </summary>
/// <value>
/// The pharmacy ware house identifier.
/// </value>
public
int
PharmacyWareHouseId
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/SupplierProductDetail.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Dapper.Attributes
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product detail.
/// </summary>
[
Table
(
"SupplierProductDetail"
,
Schema
=
"vendors"
)]
public
class
SupplierProductDetail
{
/// <summary>
/// Gets or sets the supplier product detail identifier.
/// </summary>
/// <value>
/// The supplier product detail identifier.
/// </value>
[
Key
,
Identity
]
public
int
SupplierProductDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier product header identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
public
int
SupplierProductHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the pharmacy product identifier.
/// </summary>
/// <value>
/// The pharmacy product identifier.
/// </value>
public
int
PharmacyProductId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the purchase rate.
/// </summary>
/// <value>
/// The purchase rate.
/// </value>
public
double
PurchaseRate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the MRP.
/// </summary>
/// <value>
/// The MRP.
/// </value>
public
double
Mrp
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/SupplierProductFormulation.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Dapper.Attributes
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product formulation.
/// </summary>
[
Table
(
"SupplierProductFormulation"
,
Schema
=
"vendors"
)]
public
class
SupplierProductFormulation
{
/// <summary>
/// Gets or sets the supplier product formulation identifier.
/// </summary>
/// <value>
/// The supplier product formulation identifier.
/// </value>
[
Key
,
Identity
]
public
int
SupplierProductFormulationId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier product detail identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
public
int
SupplierProductDetailId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the operator.
/// </summary>
/// <value>
/// The operator.
/// </value>
public
string
Operator
{
get
;
set
;
}
/// <summary>
/// Gets or sets the condition.
/// </summary>
/// <value>
/// The condition.
/// </value>
public
int
Condition
{
get
;
set
;
}
/// <summary>
/// Gets or sets the foc quantity.
/// </summary>
/// <value>
/// The foc quantity.
/// </value>
public
int
FOCQuantity
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/SupplierProductHeader.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Dapper.Attributes
;
using
System
;
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
namespace
Hims.Domain.Entities.Vendors
{
/// <summary>
/// The supplier product header.
/// </summary>
[
Table
(
"SupplierProductHeader"
,
Schema
=
"vendors"
)]
public
class
SupplierProductHeader
{
/// <summary>
/// Gets or sets the supplier product header identifier.
/// </summary>
/// <value>
/// The supplier product header identifier.
/// </value>
[
Key
,
Identity
]
public
int
SupplierProductHeaderId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the supplier identifier.
/// </summary>
/// <value>
/// The supplier identifier.
/// </value>
public
int
SupplierId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the start date.
/// </summary>
/// <value>
/// The start date.
/// </value>
public
DateTime
StartDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the end date.
/// </summary>
/// <value>
/// The end date.
/// </value>
public
DateTime
EndDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created by.
/// </summary>
/// <value>
/// The created by.
/// </value>
public
int
CreatedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the created date.
/// </summary>
/// <value>
/// The created date.
/// </value>
public
DateTime
CreatedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified by.
/// </summary>
/// <value>
/// The modified by.
/// </value>
public
int
?
ModifiedBy
{
get
;
set
;
}
/// <summary>
/// Gets or sets the modified date.
/// </summary>
/// <value>
/// The modified date.
/// </value>
public
DateTime
?
ModifiedDate
{
get
;
set
;
}
/// <summary>
/// Gets or sets the rate card URL.
/// </summary>
/// <value>
/// The rate card URL.
/// </value>
public
string
RateCardUrl
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Entities/Vendors/TendorStatus.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Entities.Vendors
{
using
System.ComponentModel.DataAnnotations
;
using
System.ComponentModel.DataAnnotations.Schema
;
using
Shared.Dapper.Attributes
;
/// <summary>
/// The tendor status.
/// </summary>
[
Table
(
"TendorStatus"
,
Schema
=
"vendors"
)]
public
class
TendorStatus
{
/// <summary>
/// Gets or sets the tender status identifier.
/// </summary>
/// <value>
/// The tender status identifier.
/// </value>
[
Key
,
Identity
]
public
int
TenderStatusId
{
get
;
set
;
}
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>
/// The status.
/// </value>
public
string
Status
{
get
;
set
;
}
}
}
Domain/Hims.Domian.Helpers/Hims.Domain.Helpers.csproj
0 → 100644
View file @
d66408ab
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Helpers.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Helpers.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="IdentityModel" Version="4.4.0" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Features" Version="3.1.9" />
<PackageReference Include="Microsoft.VisualStudio.TaskRunnerExplorer.14.0" Version="14.0.0" />
<PackageReference Include="RestSharp" Version="106.11.7" />
<PackageReference Include="TaskRunner" Version="1.0.0" />
<PackageReference Include="Webpack" Version="4.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Shared\Hims.Shared.EntityModels\Hims.Shared.EntityModels.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.Library\Hims.Shared.Library.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.UserModels\Hims.Shared.UserModels.csproj" />
</ItemGroup>
</Project>
Domain/Hims.Domian.Helpers/IAESHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
/// <summary>
/// The AES Factory interface.
/// </summary>
public
interface
IAESHelper
{
/// <summary>
/// The decrypt.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
Decrypt
(
string
value
);
/// <summary>
/// The encrypt.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
Encrypt
(
string
value
);
/// <summary>
/// The decode.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
Decode
(
string
value
);
/// <summary>
/// The encode.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
Encode
(
string
value
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IAuthHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
IdentityModel.Client
;
using
Shared.Library.Enums
;
/// <summary>
/// The AuthHelper interface.
/// </summary>
public
interface
IAuthHelper
{
/// <summary>
/// The get auth server async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DiscoveryDocumentResponse
>
GetIdentityServerAsync
();
/// <summary>
/// The sign in async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="userName">
/// The user name.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// <param name="accountId">
/// The account Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
TokenResponse
>
SignInAsync
(
DiscoveryDocumentResponse
identityServer
,
string
userName
,
string
password
,
IEnumerable
<
AccountType
>
accountTypes
,
int
?
accountId
);
/// <summary>
/// Signs the in alt asynchronous.
/// </summary>
/// <param name="identityServer">The identity server.</param>
/// <param name="userName">Name of the user.</param>
/// <param name="password">The password.</param>
/// <param name="roles">The roles.</param>
/// <param name="accountId">The account identifier.</param>
/// <returns></returns>
Task
<
TokenResponse
>
SignInAltAsync
(
DiscoveryDocumentResponse
identityServer
,
string
userName
,
string
password
,
List
<
int
>
roles
,
int
?
accountId
);
Task
<
TokenResponse
>
PatientSignInAsync
(
DiscoveryDocumentResponse
identityServer
,
string
userName
,
string
password
,
int
?
accountId
);
/// <summary>
/// The refresh sign in async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="refreshToken">
/// The refresh token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
TokenResponse
>
RefreshSignInAsync
(
DiscoveryDocumentResponse
identityServer
,
string
refreshToken
);
/// <summary>
/// The fetch user info async.
/// </summary>
/// <param name="identityServer">
/// The identity Server.
/// </param>
/// <param name="accessToken">
/// The access token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
UserInfoResponse
>
FetchUserInfoAsync
(
DiscoveryDocumentResponse
identityServer
,
string
accessToken
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/ICookieHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
/// <summary>
/// The CookiesFactory interface.
/// </summary>
public
interface
ICookieHelper
{
/// <summary>
/// The create.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
/// <param name="value">
/// The value.
/// </param>
/// <param name="expiryTime">
/// The expiry time.
/// </param>
void
Create
(
string
key
,
string
value
,
int
?
expiryTime
);
/// <summary>
/// The get.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
Get
(
string
key
);
/// <summary>
/// The remove.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
void
Remove
(
string
key
);
/// <summary>
/// The delete all.
/// </summary>
/// <param name="key">
/// The key.
/// </param>
void
DeleteAll
(
string
key
);
/// <summary>
/// The delete all.
/// </summary>
void
DeleteAll
();
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IDocumentHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
Microsoft.AspNetCore.Http
;
/// <summary>
/// The Document helper interface.
/// </summary>
public
interface
IDocumentHelper
{
/// <summary>
/// The get url.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileName">
/// The file name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
GetUrl
(
Guid
guid
,
string
fileName
);
/// <summary>
/// The get DB url.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileName">
/// The file name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
GetDbUrl
(
Guid
guid
,
string
fileName
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="fileUrl">
/// The file URL.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
bool
>
DeleteAsync
(
Guid
guid
,
string
fileUrl
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadAsync
(
IFormFile
file
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload document async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadDocumentAsync
(
IFormFile
file
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadThumbnailAsync
(
IFormFile
file
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadProfileImageAsync
(
IFormFile
file
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload thumbnail async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadThumbnailImageAsync
(
IFormFile
file
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload attachments async.
/// </summary>
/// <param name="file">
/// The file.
/// </param>
/// <param name="basePath">
/// The base path.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadAttachmentsAsync
(
IFormFile
file
,
string
basePath
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload attachments async.
/// </summary>
/// <param name="base64Image">
/// The file.
/// </param>
/// <param name="basePath">
/// The base path.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadImageAsync
(
string
base64Image
,
string
basePath
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
string
,
string
>>
UploadAsync
(
string
base64Image
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadProfileImageAsync
(
string
base64Image
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64ThumnailImage">
/// The base 64 Image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder Name.
/// </param>
/// <param name="filName">
/// The fil Name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadThumbnailImageAsync
(
string
base64ThumnailImage
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The upload encounter images async.
/// </summary>
/// <param name="base64Image">
/// The base 64 image.
/// </param>
/// <param name="guid">
/// The guid.
/// </param>
/// <param name="folderName">
/// The folder name.
/// </param>
/// <param name="filName">
/// The fil name.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
UploadEncounterImagesAsync
(
string
base64Image
,
Guid
guid
,
string
folderName
,
string
filName
);
/// <summary>
/// The delete attachments async.
/// </summary>
/// <param name="fileUrl">
/// The file url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
bool
>
DeleteAttachmentsAsync
(
string
fileUrl
);
/// <summary>
/// Get document thumbnail.
/// </summary>
/// <param name="contentType">
/// The content type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
string
GetThumbnail
(
string
contentType
);
/// <summary>
/// The fetch content types.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
IEnumerable
<
string
>
FetchContentTypes
();
/// <summary>
/// The fetch image content types.
/// </summary>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
IEnumerable
<
string
>
FetchImageContentTypes
();
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IEmailHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Threading.Tasks
;
using
Shared.Library.MailKit
;
/// <summary>
/// The Email Service.
/// </summary>
public
interface
IEmailHelper
{
/// <summary>
/// The send.
/// </summary>
/// <param name="emailMessage">
/// The email message.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
SendAsync
(
EmailMessage
emailMessage
);
/// <summary>
/// The send email async.
/// </summary>
/// <param name="emailMessage">
/// The email message.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
SendEmailAsync
(
EmailMessage
emailMessage
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IFtpHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Threading.Tasks
;
using
Microsoft.AspNetCore.Http
;
using
Shared.Library.MailKit
;
/// <summary>
/// The FTP Service.
/// </summary>
public
interface
IFtpHelper
{
/// <summary>
///to get a ftp url..
/// </summary>
/// <param name="category">
/// to get a ftp category type.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
GetFtpUrl
(
string
category
);
/// <summary>
///to Fetch Image or Thumbnail Base64.
/// </summary>
/// <param name="id">
/// The id.
/// </param>
/// <param name="url">
/// The url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FetchImageBase64
(
int
id
,
string
url
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="base64Image">
/// Base64.
/// </param>
/// <param name="url">
/// The ftp url.
/// </param>
/// /// <param name="fileName">
/// The file Name.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
FtpUploadProfileImage
(
string
base64Image
,
string
url
,
string
fileName
);
/// <summary>
///to delete a profile image or decument..
/// </summary>
/// <param name="url">
/// The url.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
DeleteFtpFile
(
string
url
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="patientDocumentId">
/// The Fetches Document Base64.
/// </param>
/// /// <param name="url">
/// The Fetches Document p url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FetchDocumentBase64
(
int
patientDocumentId
,
string
url
);
/// <summary>
/// The upload async.
/// </summary>
/// <param name="patientId">
/// The patientId.
/// </param>
/// <param name="file">
/// The file information.
/// </param>
/// /// <param name="url">
/// The ftp url.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FtpUploadDocument
(
int
patientId
,
IFormFile
file
,
string
url
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IFtpUploadHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
Microsoft.AspNetCore.Http
;
using
System
;
using
System.IO
;
using
System.Threading.Tasks
;
/// <summary>
/// The FTP upload helper.
/// </summary>
public
interface
IFtpUploadHelper
{
/// <summary>
/// Creates the directory.
/// </summary>
/// <param name="folderNameWithCompletePath">The folder name with complete path.</param>
/// <returns></returns>
Task
<
int
>
CreateDirectory
(
string
folderNameWithCompletePath
);
/// <summary>
/// Uploads the profile image asynchronous.
/// </summary>
/// <param name="base64Image">The base64 image.</param>
/// <param name="filePath">The file path.</param>
/// <returns></returns>
Task
<
int
>
UploadProfileImageAsync
(
string
base64Image
,
string
filePath
);
/// <summary>
/// Deletes the file.
/// </summary>
/// <param name="fileNameWithDestinationPath">The file name with destination path.</param>
/// <returns></returns>
Task
<
int
>
DeleteFile
(
string
fileNameWithDestinationPath
);
/// <summary>
/// Downloads the small files asynchronous.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task
<
byte
[
]>
DownloadSmallFilesAsync
(
string
fileNameWithPath
);
/// <summary>
/// Downloads the large file.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task
<
Stream
>
DownloadLargeFile
(
string
fileNameWithPath
);
/// <summary>
/// Uploads the file with byte array asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="source">The source.</param>
/// <returns></returns>
Task
<
int
>
UploadFileWithByteArrayAsync
(
string
fileName
,
byte
[]
source
);
/// <summary>
/// Uploads the file with stream asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="stream">The stream.</param>
/// <returns></returns>
Task
<
int
>
UploadFileWithStreamAsync
(
string
fileName
,
Stream
stream
);
/// <summary>
/// Uploads from file asynchronous.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="fileInfo">The file information.</param>
/// <returns></returns>
Task
<
int
>
UploadFromFileAsync
(
string
fileName
,
IFormFile
fileInfo
);
/// <summary>
/// Downloads the base64 data asynchronous.
/// </summary>
/// <param name="fileNameWithPath">The file name with path.</param>
/// <returns></returns>
Task
<
string
>
DownloadBase64DataAsync
(
string
fileNameWithPath
);
/// <summary>
/// Checks if file exists on server.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <returns></returns>
bool
CheckIfFileExistsOnServer
(
string
fileName
);
Task
<
int
>
DeleteDirectory
(
string
folder
);
Task
<
bool
>
Rename
(
string
source
,
string
destination
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IKaleyraSMSHelper.cs
0 → 100644
View file @
d66408ab
#
nullable
enable
namespace
Hims.Domain.Helpers
{
using
System
;
using
System.Threading.Tasks
;
using
RestSharp
;
using
Shared.EntityModels
;
/// <summary>
/// The sinch interface.
/// </summary>
public
interface
IKaleyraSMSHelper
{
/// <summary>
/// The send SMS async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="countryModel">
/// The country Model.
/// </param>
/// <param name="templateId">
/// The country Model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
?>
SendSMSAsync
(
string
mobile
,
string
body
,
CountryModel
countryModel
,
string
templateId
);
/// <summary>
/// Sends the report SMS asynchronous.
/// </summary>
/// <param name="mobile">The mobile.</param>
/// <param name="body">The body.</param>
/// <param name="countryModel">The country model.</param>
/// <param name="templateId">The template identifier.</param>
/// <param name="url">The URL.</param>
/// <returns></returns>
Task
<
Tuple
<
IRestResponse
?,
string
>>
SendReportSMSAsync
(
string
mobile
,
string
body
,
CountryModel
countryModel
,
string
templateId
,
string
url
);
Task
<
Tuple
<
IRestResponse
?,
string
>>
SendPdfLinkSMSAsync
(
string
patientMobile
,
string
messageBody
,
CountryModel
countryModel
,
string
v
,
string
createPdfLink
);
}
}
Domain/Hims.Domian.Helpers/IPayUHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Threading.Tasks
;
using
RestSharp
;
using
Shared.UserModels.PayU
;
/// <summary>
/// The PayU interface.
/// </summary>
public
interface
IPayUHelper
{
/// <summary>
/// The fetch status async.
/// </summary>
/// <param name="merchantTransactionIds">
/// The merchant transaction ids.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
FetchStatusAsync
(
string
merchantTransactionIds
);
/// <summary>
/// The refund async.
/// </summary>
/// <param name="paymentId">
/// The payment id.
/// </param>
/// <param name="amount">
/// The amount.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
RefundAsync
(
long
paymentId
,
decimal
amount
);
/// <summary>
/// The fetch refund status async.
/// </summary>
/// <param name="paymentId">
/// The transaction paymentId.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
FetchRefundStatusAsync
(
int
paymentId
);
/// <summary>
/// The payout authentication async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
PayoutAuthentication
();
/// <summary>
/// The payout account details.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
PayoutAccountDetails
(
PayoutModel
model
);
/// <summary>
/// The payout smart send.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
PayoutSmartSendAsync
(
PayoutModel
model
);
/// <summary>
/// The payout smart send.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
PayoutPaymentAsync
(
PayoutModel
model
);
/// <summary>
/// The add web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
AddWebHook
(
PayoutModel
model
);
/// <summary>
/// The delete web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
DeleteWebHook
(
PayoutModel
model
);
/// <summary>
/// The add web hook.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
FetchPayoutTransfers
(
PayoutModel
model
);
}
}
Domain/Hims.Domian.Helpers/IPushNotificationHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
RestSharp
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.Library.Enums
;
/// <summary>
/// The Push Notification Factory interface.
/// </summary>
public
interface
IPushNotificationHelper
{
/// <summary> The send async.</summary>
/// <param name="title"> The title.</param>
/// <param name="body"> The body.</param>
/// <param name="message"> The message.</param>
/// <param name="deviceTokensForAndroid"> The device tokens for android.</param>
/// <param name="deviceTokensForIOS"> The device tokens for ios.</param>
/// <param name="type"> The type.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IRestResponse
>
SendAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokensForAndroid
,
IEnumerable
<
string
>
deviceTokensForIOS
,
NotificationType
?
type
);
/// <summary> The send async.</summary>
/// <param name="title"> The title.</param>
/// <param name="body"> The body.</param>
/// <param name="message"> The message.</param>
/// <param name="deviceTokensForAndroid"> The device tokens for android.</param>
/// <param name="deviceTokensForIOS"> The device tokens for ios.</param>
/// <param name="doctorName"> The doctor name.</param>
/// <param name="date"> The date.</param>
/// <param name="prevDate"> The prevous date.</param>
/// <param name="type"> The type.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IRestResponse
>
SendAltAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokensForAndroid
,
IEnumerable
<
string
>
deviceTokensForIOS
,
string
doctorName
,
string
date
,
string
prevDate
=
null
,
NotificationType
?
type
=
null
);
/// <summary>
/// The intimate async.
/// </summary>
/// <param name="title">
/// The title.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <param name="deviceTokensForAndroid">
/// The device tokens for android.
/// </param>
/// <param name="deviceTokensForIOS">
/// The device tokens for ios.
/// </param>
/// <param name="id">
/// The id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
IntimateAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokensForAndroid
,
IEnumerable
<
string
>
deviceTokensForIOS
,
string
id
,
NotificationType
?
type
=
null
);
/// <summary>
/// The intimate async.
/// </summary>
/// <param name="title">
/// The title.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <param name="deviceTokensForAndroid">
/// The device tokens for android.
/// </param>
/// <param name="id">
/// The id.
/// </param>
/// <param name="type">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
IntimateAndroidAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokensForAndroid
,
string
id
,
NotificationType
?
type
=
null
);
/// <summary>
/// The intimate async.
/// </summary>
/// <param name="title">
/// The title.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <param name="deviceTokensForIOS">
/// The device tokens for ios.
/// </param>
/// <param name="id">
/// The id.
/// </param>
/// <param name="type">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
IntimateIOSAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokensForIOS
,
string
id
,
NotificationType
?
type
=
null
);
/// <summary> The send single async.</summary>
/// <param name="title"> The title.</param>
/// <param name="body"> The body.</param>
/// <param name="message"> The message.</param>
/// <param name="deviceTokens"> The device tokens.</param>
/// <param name="deviceType"> The device type.</param>
/// <param name="type"> The type.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IRestResponse
>
SendSingleAsync
(
string
title
,
string
body
,
string
message
,
string
deviceTokens
,
int
deviceType
,
NotificationType
?
type
=
null
);
/// <summary>
/// The send video call notifications async.
/// </summary>
/// <param name="title">
/// The title.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <param name="deviceTokens">
/// The device tokens.
/// </param>
/// <param name="doctorName">
/// The doctor name.
/// </param>
/// <param name="doctorEmail">
/// The doctor email.
/// </param>
/// <param name="deviceId">
/// The device id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
SendVideoCallNotificationsAsync
(
string
title
,
string
body
,
string
message
,
string
deviceTokens
,
string
doctorName
,
string
doctorEmail
,
string
deviceId
,
NotificationType
?
type
=
null
);
/// <summary> The send chat notifications async.</summary>
/// <param name="title"> The title.</param>
/// <param name="body"> The body.</param>
/// <param name="payload"> The payload.</param>
/// <param name="deviceTokensAndroid"> The device tokens android.</param>
/// <param name="deviceTokensIOS"> The device tokens ios.</param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IRestResponse
>
SendChatNotificationsAsync
(
string
title
,
string
body
,
string
payload
,
IEnumerable
<
string
>
deviceTokensAndroid
,
IEnumerable
<
string
>
deviceTokensIOS
,
NotificationType
?
type
=
null
);
/// <summary>The send video call notifications to all devices async.</summary>
/// <param name="title">The title.</param>
/// <param name="body">The body.</param>
/// <param name="message">The message.</param>
/// <param name="deviceTokens">The device tokens.</param>
/// <param name="doctorName">The doctor name.</param>
/// <param name="doctorEmail">The doctor email.</param>
/// <param name="deviceId">The device id.</param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IRestResponse
>
SendVideoCallNotificationsToAllDevicesAsync
(
string
title
,
string
body
,
string
message
,
IEnumerable
<
string
>
deviceTokens
,
string
doctorName
,
string
doctorEmail
,
string
deviceId
,
NotificationType
?
type
=
null
);
/// <summary>
/// The telemedicine call notification.
/// </summary>
/// <param name="source">
/// The source.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <param name="deviceTokens">
/// The device tokens.
/// </param>
/// <param name="doctorName">
/// The doctor name.
/// </param>
/// <param name="telemedicineId">
/// The telemedicine id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
TelemedicineCallNotification
(
string
source
,
string
message
,
List
<
string
>
deviceTokens
,
string
doctorName
,
int
telemedicineId
,
NotificationType
?
type
=
null
);
/// <summary>
/// Customs the notification.
/// </summary>
/// <param name="payload">The payload.</param>
/// <returns></returns>
Task
<
IRestResponse
>
CustomNotification
(
string
payload
);
/// <summary>
/// The telemedicine call notification.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <param name="type">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
TelemedicineCallNotification
(
NotificationIntimateModel
model
,
NotificationType
?
type
=
null
);
/// <summary>
/// Tests the notification.
/// </summary>
/// <param name="deviceToken">The device token.</param>
/// <param name="type">The type.</param>
/// <returns></returns>
Task
<
IRestResponse
>
TestNotification
(
string
deviceToken
,
NotificationType
?
type
=
null
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/ISMSHelper.cs
0 → 100644
View file @
d66408ab
#
nullable
enable
namespace
Hims.Domain.Helpers
{
using
System
;
using
System.Threading.Tasks
;
using
RestSharp
;
using
Shared.EntityModels
;
/// <summary>
/// The sinch interface.
/// </summary>
public
interface
ISMSHelper
{
/// <summary>
/// The send SMS async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="body">
/// The body.
/// </param>
/// <param name="countryModel">
/// The country Model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
?>
SendSMSAsync
(
string
mobile
,
string
body
,
CountryModel
countryModel
);
/// <summary>
/// Sends the lab report SMS asynchronous.
/// </summary>
/// <param name="mobile">The mobile.</param>
/// <param name="body">The body.</param>
/// <param name="countryModel">The country model.</param>
/// <param name="url">The URL.</param>
/// <returns></returns>
Task
<
Tuple
<
IRestResponse
,
string
>>
SendLabReportSMSAsync
(
string
mobile
,
string
body
,
CountryModel
countryModel
,
string
url
);
Task
<
Tuple
<
IRestResponse
,
string
>>
SendPdfLinkSMSAsync
(
string
patientMobile
,
string
messageBody
,
CountryModel
countryModel
,
string
createPdfLink
);
}
}
Domain/Hims.Domian.Helpers/ISalucroHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Threading.Tasks
;
using
RestSharp
;
/// <summary>
/// The salucro interface.
/// </summary>
public
interface
ISalucroHelper
{
/// <summary>
/// The refund async.
/// </summary>
/// <param name="processingId">
/// The payment id.
/// </param>
/// <param name="paymode"></param>
/// <param name="patientName"></param>
/// <param name="accountNumber"></param>
/// <param name="amount">
/// The amount.
/// </param>
/// <param name="email"></param>
/// <param name="transactionId"></param>
/// <param name="check_sum_hash"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
RefundAsync
(
string
processingId
,
string
paymode
,
string
patientName
,
string
accountNumber
,
decimal
amount
,
string
email
,
string
transactionId
,
string
check_sum_hash
);
/// <summary>
/// The refund async.
/// </summary>
/// <param name="processingId">
/// The payment id.
/// </param>
/// <param name="check_sum_hash"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IRestResponse
>
StatusCheckAsync
(
string
processingId
,
string
check_sum_hash
);
}
}
Domain/Hims.Domian.Helpers/IShaHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
/// <summary>
/// The Sha Factory interface.
/// </summary>
public
interface
IShaHelper
{
/// <summary>
/// The Generate Hash.
/// </summary>
/// <param name="value">
/// The value.
/// </param>
/// <param name="saltKey">
/// The salt Key.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
string
GenerateHash
(
string
value
,
string
saltKey
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/ITemplateHelper.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Helpers
{
using
System.Threading.Tasks
;
/// <summary>
/// Renders email content based on razor templates
/// </summary>
public
interface
ITemplateHelper
{
/// <summary>
/// Renders a template given the provided view model
/// </summary>
/// <typeparam name="TViewModel">The entity.</typeparam>
/// <param name="filename">Filename of the template to render</param>
/// <param name="viewModel">View model to use for rendering the template</param>
/// <returns>Returns the rendered template content</returns>
Task
<
string
>
RenderTemplateAsync
<
TViewModel
>(
string
filename
,
TViewModel
viewModel
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Helpers/IURLShortnerHelper.cs
0 → 100644
View file @
d66408ab
using
System.Threading.Tasks
;
namespace
Hims.Domain.Helpers
{
/// <summary>
/// The AES Factory interface.
/// </summary>
public
interface
IURLShortnerHelper
{
/// <summary>
/// The encode.
/// </summary>
/// <param name="strURL">
/// The value.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
Task
<
string
>
MakeShorterUrl
(
string
strURL
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/Hims.Domain.Services.csproj
0 → 100644
View file @
d66408ab
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Services.xml</DocumentationFile>
<OutputPath>bin\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Hims.Domain.Services.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="..\..\Shared\Hims.Shared.EntityModels\Hims.Shared.EntityModels.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.Library\Hims.Shared.Library.csproj" />
<ProjectReference Include="..\..\Shared\Hims.Shared.UserModels\Hims.Shared.UserModels.csproj" />
</ItemGroup>
</Project>
Domain/Hims.Domian.Services/IAccountCredentialService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
/// <summary>
/// The AccountCredential interface.
/// </summary>
public
interface
IAccountCredentialService
{
/// <summary>
/// The check account credentials async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CheckAsync
(
int
accountId
);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CreateAsync
(
int
accountId
,
string
password
);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="userName">
/// The userName.
/// </param>
/// <param name="roleId">
/// The roleId.
/// /// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
PatientPasswordCreateAsync
(
string
userName
,
int
?
roleId
,
string
password
);
/// <summary>
/// The create credential async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CreatePasswordAsync
(
int
accountId
,
string
password
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IAccountService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Hims.Shared.UserModels.Filters
;
using
Menu
=
Hims
.
Shared
.
UserModels
.
Menu
;
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels.Common
;
/// <summary>
/// The AccountService interface.
/// </summary>
public
interface
IAccountService
{
Task
<
bool
>
GetIsNurse
(
IdRequest
model
);
Task
<
IEnumerable
<
string
>>
GetMenuButtonCodesAsync
(
int
roleId
);
/// <summary>
/// Updates the last login date asynchronous.
/// </summary>
/// <param name="accountId">The account identifier.</param>
/// <returns></returns>
Task
<
int
>
UpdateLastLoginDateAsync
(
int
accountId
);
/// <summary>
/// Gets the default menu asynchronous.
/// </summary>
/// <param name="menuId">The menu identifier.</param>
/// <returns></returns>
Task
<
Menu
.
ViewModel
>
GetDefaultMenuAsync
(
int
?
menuId
);
/// <summary>
/// Fetches the menu asynchronous.
/// </summary>
/// <param name="accountId">The account identifier.</param>
/// <param name="isFullAccess">if set to <c>true</c> [is full access].</param>
/// <returns></returns>
Task
<
IEnumerable
<
Menu
.
ViewModel
>>
FetchMenuAsync
(
int
accountId
,
bool
isFullAccess
);
/// <summary>
/// Determines whether [is menu full access asynchronous] [the specified role identifier].
/// </summary>
/// <param name="roleId">The role identifier.</param>
/// <returns></returns>
Task
<
Menu
.
MenuAccessModel
>
IsMenuFullAccessAsync
(
int
roleId
);
/// <summary>
/// Gets all roles asynchronous.
/// </summary>
/// <returns></returns>
Task
<
List
<
int
>>
GetAllRolesAsync
();
/// <summary>
/// Gets all roles asynchronous.
/// </summary>
/// <returns></returns>
Task
<
Role
>
GetPatientRolesAsync
();
/// <summary>
/// The validate async.
/// </summary>
/// <param name="userName">
/// The user name.
/// </param>
/// <param name="password">
/// The password.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
UserAccountStatus
,
int
>>
ValidateAsync
(
string
userName
,
string
password
);
/// <summary>
/// The validate async.
/// </summary>
/// <param name="email">
/// The user name.
/// </param>
/// <param name="accountTypes">
/// The password.
/// </param>
/// <param name="accountId">
/// The account Types.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
UserAccountStatus
,
AccountModel
>>
ValidatePatientAsync
(
string
email
,
IEnumerable
<
AccountType
>
accountTypes
,
int
?
accountId
);
/// <summary>
/// The validate async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="countryId">
/// The country id.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
UserAccountStatus
,
AccountModel
>>
ValidateAsync
(
string
mobile
,
int
countryId
,
IEnumerable
<
AccountType
>
accountTypes
);
/// <summary>
/// The validate async.
/// </summary>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="countryId">
/// The country id.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// /// <param name="accountId">
/// The account Types.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
UserAccountStatus
,
AccountModel
>>
ValidatePatientAsync
(
string
mobile
,
int
countryId
,
IEnumerable
<
AccountType
>
accountTypes
,
int
?
accountId
);
/// <summary>
/// The validate async.
/// </summary>
/// <param name="email">
/// The email.
/// </param>
/// <param name="accountTypes">
/// The account Types.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
UserAccountStatus
,
AccountModel
>>
ValidateAsync
(
string
email
,
IEnumerable
<
AccountType
>
accountTypes
);
/// <summary>
/// The get async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
UserAccount
>
FindAsync
(
int
accountId
);
/// <summary>
/// Finds the by location identifier asynchronous.
/// </summary>
/// <param name="accountId">The account identifier.</param>
/// <param name="locationId">The location identifier.</param>
/// <returns></returns>
Task
<
UserAccount
>
FindByLocationIdAsync
(
int
accountId
,
int
locationId
);
/// <summary> The find account id async.</summary>
/// <param name="referenceIds"> The reference ids.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IEnumerable
<
int
>>
FindAccountIdAsync
(
string
referenceIds
);
/// <summary>
/// The get role async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
RoleModel
>
GetRoleAsync
(
int
accountId
);
/// <summary>
/// The update login successful async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
UpdateLoginSuccessfulAsync
(
int
accountId
);
/// <summary>
/// The update failed login attempts async.
/// </summary>
/// <param name="email">
/// The email.
/// </param>
/// <param name="mobile">
/// The mobile.
/// </param>
/// <param name="countryId">
/// The country id.
/// </param>
/// <param name="failedLoginAttempts">
/// The failed login attempts.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
UpdateFailedLoginAttemptsAsync
(
string
email
,
string
mobile
,
int
countryId
,
short
failedLoginAttempts
);
/// <summary>
/// The update agreement status async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAgreementStatusAsync
(
int
accountId
);
/// <summary>
/// Find Guid
/// </summary>
/// <param name="referenceId">
/// The reference id.
/// </param>
/// <param name="role">
/// The role.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Guid
>
FindGuidAsync
(
int
referenceId
,
Roles
role
);
/// <summary>
/// The find guid async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Guid
>
FindGuidAsync
(
int
accountId
);
/// <summary>
/// Find Guid
/// </summary>
/// <param name="umrNumber">
/// The umrNumber.
/// </param>
/// <param name="role">
/// The role.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AccountModel
>
FindGuidAsync
(
string
umrNumber
,
Roles
role
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AccountModel
>>
FetchAsync
(
UserFilterModel
model
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="userId">
/// The user id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AccountModel
>
FindUserAsync
(
int
userId
);
/// <summary>
/// The modify status async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="modifiedBy">
/// The modified by.
/// </param>
/// <param name="status">
/// The status.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
int
accountId
,
int
modifiedBy
,
bool
status
);
/// <summary>
/// The locked status async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="modifiedBy">
/// The modified by.
/// </param>
/// <param name="status">
/// The status.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
LockedStatusAsync
(
int
accountId
,
int
modifiedBy
,
bool
status
);
/// <summary>
/// The insert login async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertLoginAsync
(
LoginModel
model
);
/// <summary>
/// Gets the account detail asynchronous.
/// </summary>
/// <param name="userName">Name of the user.</param>
/// <param name="roles">The roles.</param>
/// <returns></returns>
Task
<
AccountModel
>
GetAccountDetailAsync
(
string
userName
,
string
roles
);
Task
<
IEnumerable
<
AccountModel
>>
GetPatientAccountDetailListAsync
(
string
mobile
,
string
roles
,
string
userName
);
/// <summary>
/// Gets the account detail asynchronous.
/// </summary>
/// <param name="mobile">the mobile.</param>
/// <param name="roles">the mobile.</param>
/// <param name="userName">the mobile.</param>
/// <returns></returns>
Task
<
IEnumerable
<
AccountModel
>>
GetAccountDetailListAsync
(
string
mobile
,
string
roles
,
string
userName
);
/// <summary>
/// The get account detail async.
/// </summary>
/// <param name="mobile"></param>
/// The user name.
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AccountModel
>
FindPatientByMobileAsync
(
string
mobile
);
/// <summary>
/// Modifies the accounts location.
/// </summary>
/// <param name="locationIds">The location ids.</param>
/// <param name="accountId">The account identifier.</param>
/// <returns></returns>
Task
<
int
>
ModifyAccountsLocation
(
int
[]
locationIds
,
int
accountId
);
Task
<
int
>
GetReferenceAsync
(
int
accountId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
PatientModel
>>
FetchCallerUserDetailsAsync
(
IdRequest
model
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IAccountSessionService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.Common
;
using
Shared.EntityModels
;
using
Shared.Library.Enums
;
/// <summary>
/// The AccountSessionService interface.
/// </summary>
public
interface
IAccountSessionService
{
/// <summary>
/// The fetch sessions async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AccountSessionModel
>>
FetchAsync
(
int
accountId
);
/// <summary> The fetch device token async.</summary>
/// <param name="referenceId"> The reference id.</param>
/// <param name="role"> The role.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IEnumerable
<
AccountSessionModel
>>
FetchDeviceTokenAsync
(
int
referenceId
,
Roles
role
);
/// <summary>
/// The get session async.
/// </summary>
/// <param name="accountSessionId">
/// The account session id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AccountSessionModel
>
FindAsync
(
int
accountSessionId
);
/// <summary>
/// The create async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CreateAsync
(
AccountSessionModel
model
);
/// <summary>
/// The delete session async.
/// </summary>
/// <param name="accountSessionId">
/// The account session id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
accountSessionId
);
/// <summary>
/// The delete session async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="deviceType">
/// The device type.
/// </param>
/// <param name="deviceId">
/// The device id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
accountId
,
DeviceType
deviceType
,
string
deviceId
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <param name="deviceToken">
/// The device token.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
accountId
,
string
deviceToken
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="accountId">
/// The account id
/// </param>
/// <param name="deviceType">
/// The device type
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
WebLogoutAsync
(
int
accountId
,
DeviceType
deviceType
);
/// <summary>
/// The delete all sessions async.
/// </summary>
/// <param name="accountId">
/// The account id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAllAsync
(
int
accountId
);
/// <summary> The delete others async.</summary>
/// <param name="accountId"> The account id.</param>
/// <param name="deviceId"> The device id.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
int
>
DeleteOthersAsync
(
int
accountId
,
string
deviceId
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IAdmissionService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
using
Shared.UserModels.Admission
;
using
Hims.Shared.UserModels
;
using
Hims.Domain.Entities
;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public
interface
IAdmissionService
{
/// <summary>
/// Fetches the priorities asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
PriorityViewModel
>>
FetchPrioritiesAsync
();
/// <summary>
/// Cancels the asynchronous.
/// </summary>
/// <param name="admissionId">The admission identifier.</param>
/// <returns></returns>
Task
<
int
>
CancelAsync
(
int
admissionId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AdmissionModel
>>
FetchAsync
(
AdmissionFilterModel
model
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="admissionId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AdmissionModel
>
FindAsync
(
int
admissionId
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="admissionId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
FinalBillModel
>
FindFinalBillAsync
(
int
finalBillId
);
/// <summary>
/// The add admission async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAdmissionAsync
(
ModifyAdmissionModel
model
);
/// <summary>
/// The fetch wards async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
BedManagementModel
>>
FetchWardsAsync
(
int
locationId
);
/// <summary>
/// The fetch admission for audit log async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AdmissionModel
>
FetchAdmissionInfo
(
int
admissionId
);
/// <summary>
/// The fetch rooms async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
BedManagementModel
>>
FetchRoomsAsync
(
int
?
wardId
,
int
?
chargeCategoryId
,
int
?
locationId
);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
BedManagementModel
>>
FetchBedsAsync
(
BedManagementModel
model
);
/// <summary>
/// Raises the bed change request asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
RaiseBedChangeRequestAsync
(
AdmissionBedChangeRequestModel
model
);
/// <summary>
/// The add admission async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAdmissionTransferRequest
(
AdmissionTransferRequestModel
model
);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AdmissionTransferRequestModel
>>
FetchAdmissionTransferRequest
(
AdmissionTransferRequestModel
model
);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AcceptTransferRequest
(
AdmissionTransferRequestModel
model
);
/// <summary>
/// The fetch beds async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
RejectAdmissionTransferRequest
(
AdmissionTransferRequestModel
model
);
}
}
Domain/Hims.Domian.Services/IAmbulanceRecieptService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IAmbulanceRecieptService
{
// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
AmbulanceRecieptModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
AmbulanceRecieptModel
>>
FetchAllAsync
(
AmbulanceRecieptModel
model
);
Task
<
int
>
UpdateAsync
(
AmbulanceRecieptModel
model
);
}
}
Domain/Hims.Domian.Services/IAmbulanceService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IAmbulanceService
{
Task
<
int
>
AddAsync
(
AmbulanceModel
model
);
Task
<
IEnumerable
<
AmbulanceModel
>>
FetchAsync
(
AmbulanceModel
model
);
Task
<
int
>
UpdateAsync
(
AmbulanceModel
model
);
Task
<
int
>
ModifyStatusAsync
(
int
ambulanceModelId
,
int
modifiedBy
,
bool
status
);
//Task<int> DeleteAsync(int ambulanceModelId);
Task
<
string
>
FindNameByAmbulanceId
(
int
ambulanceModelId
);
}
}
Domain/Hims.Domian.Services/IAppointmentCheckService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.UserModels.AppointmentCheck
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IAppointmentCheckService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FetchModel
>>
FetchAsync
(
FetchPayload
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
}
}
Domain/Hims.Domian.Services/IAppointmentExceptionLogService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary>
/// The Appointment Exception Log Service interface.
/// </summary>
public
interface
IAppointmentExceptionLogService
{
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
LogAsync
(
AppointmentExceptionLogModel
model
);
}
}
Domain/Hims.Domian.Services/IAppointmentLogService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary>
/// The Appointment log Service interface.
/// </summary>
public
interface
IAppointmentLogService
{
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentLogId">
/// The appointment log id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AppointmentLogModel
>
FindAsync
(
int
appointmentLogId
);
/// <summary>
/// The modify async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
AppointmentLogModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="appointmentLogId">
/// The appointment log Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
appointmentLogId
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IAppointmentService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public
interface
IAppointmentService
{
Task
<
int
>
GetLatestIdAsync
(
int
id
);
Task
<
Appointment
>
GetRawAsync
(
int
id
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FetchAsync
(
AppointmentFilterModel
model
);
/// <summary>
/// The fetch new async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentNewModel
>>
FetchNewAsync
(
AppointmentFilterModel
model
);
/// <summary>
/// The fetch all async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FetchAllAsync
(
AppointmentFilterModel
model
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AppointmentModel
>
FindAsync
(
int
appointmentId
);
/// <summary> The find by date async.</summary>
/// <param name="appointmentDate"> The appointment date.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FindByDateAsync
(
string
appointmentDate
);
/// <summary>
/// Finds the appointment asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
AppointmentDashboardModel
>
FindAppointmentAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// Fetches the appointment symptoms asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
AppointmentSymptomModel
>
FetchAppointmentSymptomsAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// The find by patient async.
/// </summary>
/// <param name="patientId">
/// The patient id.
/// </param>
/// <param name="providerId">
/// The provider Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FindByPatientAsync
(
int
patientId
,
int
providerId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
AppointmentModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="appointmentLogId">
/// The appointment Log Id.
/// </param>
/// <param name="transactionId">
/// The transaction Id.
/// </param>
/// <param name="transactionDetails">
/// The transaction Details.
/// </param>
/// <param name="bankReference">
/// The bank Reference.
/// </param>
/// <param name="bankCode">
/// The bank Code.
/// </param>
/// <param name="paymentId">
/// The payment Id.
/// </param>
/// <param name="salucroStatusCode"></param>
/// <param name="salucroTransactionId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Tuple
<
int
,
bool
,
string
>>
AddAsync
(
int
appointmentLogId
,
string
transactionId
,
string
transactionDetails
,
string
bankReference
,
string
bankCode
,
long
paymentId
,
int
salucroStatusCode
,
string
salucroTransactionId
);
/// <summary>
/// The reschedule async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="appointmentDate">
/// The appointment date.
/// </param>
/// <param name="appointmentTime">
/// The appointment time.
/// </param>
/// <param name="appointmentNotes">
/// The appointment Notes.
/// </param>
/// <param name="modifiedBy">
/// The modified by.
/// </param>
/// <param name="providerId">
/// The provider id.
/// </param>
/// <param name="providerLocationId">
/// The provider location id.
/// </param>
/// <param name="departmentId">
/// The department id.
/// </param>
/// <param name="locationId"></param>
/// <param name="tokenNumber"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
RescheduleAsync
(
int
appointmentId
,
DateTime
appointmentDate
,
TimeSpan
appointmentTime
,
TimeSpan
appointmentEndTime
,
string
appointmentNotes
,
int
modifiedBy
,
int
providerId
,
int
providerAvailabilityId
,
int
consultationTypeId
,
int
?
departmentId
,
int
locationId
,
int
tokenNumber
,
int
?
specializationId
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="appointmentId">
/// The appointment Id.
/// </param>
/// <param name="modifiedBy">
/// The modified By.
/// </param>
/// /// <param name="reason">
/// The reason.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CancelAsync
(
int
appointmentId
,
int
?
modifiedBy
,
string
reason
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="appointmentId">
/// The appointment Id.
/// </param>
/// <param name="modifiedBy">
/// The modified By.
/// </param>
/// /// <param name="patientType">
/// The patient type.
/// </param>
/// <param name="visitTypeId"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdatePatientTypeAsync
(
int
appointmentId
,
int
modifiedBy
,
char
?
patientType
,
int
visitTypeId
);
/// <summary>
/// The update async.
/// </summary>
/// /// <param name="model">
/// The appointment model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdatePaymentStatusAsync
(
PatientPaymentModel
model
);
/// <summary>
/// Adds the symptoms asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="symptoms">The symptoms.</param>
/// <param name="createdBy">The created by.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
int
>
AddSymptomsAsync
(
int
appointmentId
,
string
symptoms
,
int
createdBy
,
bool
isAdmission
);
/// <summary>
/// Update Relation id async.
/// </summary>
/// <param name="appointmentId">
/// The patient family id.
/// </param>
/// <param name="patientFamilyId">
/// The symptoms.
/// </param>
/// /// <param name="userId">
/// The created by.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateRelationIdAsync
(
int
appointmentId
,
int
userId
,
int
?
patientFamilyId
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
appointmentId
);
/// <summary>
/// Updates the encounter type asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="encounterType">Type of the encounter.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
int
>
UpdateEncounterTypeAsync
(
int
appointmentId
,
int
encounterType
,
bool
isAdmission
);
/// <summary>
/// Updates the encounter type asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isEmergency">Type of the encounter.</param>
/// <returns></returns>
Task
<
int
>
UpdateEmergencyTypeAsync
(
int
appointmentId
);
/// <summary>
/// The fetch support log async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentSupportLogModel
>>
FetchSupportLogAsync
(
AppointmentSupportLogModel
model
);
/// <summary>
/// The update log.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateLog
(
AppointmentSupportLogModel
model
);
/// <summary>
/// The assign appointment to support.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AssignAppointmentToSupport
(
AppointmentSupportLogModel
model
);
/// <summary>
/// The find by appointment no async.
/// </summary>
/// <param name="appointmentNo">
/// The appointment no.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AppointmentModel
>
FindByAppointmentNoAsync
(
string
appointmentNo
);
/// <summary>
/// The find previous appointment async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
PreviousAppointmentModel
>
FindPreviousAppointmentAsync
(
int
appointmentId
);
/// <summary>
/// The fetch appointment log count.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
long
>
FetchAppointmentLogCount
();
/// <summary>
/// The find previous appointment async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
FindReceiptByAppointmentId
(
int
appointmentId
);
/// <summary>
/// The approve async.
/// </summary>
/// /// <param name="appointmentId">
/// The model.
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Appointment
>
CheckInAsync
(
int
appointmentId
);
/// <summary>
/// The approve async.
/// </summary>
/// /// <param name="appointmentId">
/// The model.
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
Appointment
>
CheckOutAsync
(
int
appointmentId
,
DateTime
?
checkedIn
);
/// <summary>
/// The Appointment Log to sen messages and Emails through Hangfire
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
Task
<
int
>
AddAppointmentHangfireAsync
(
AppointmentHangfireMapModel
model
);
/// <summary>
/// The fetch salucro pending transactions
/// </summary>
/// <returns></returns>
public
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchPendingSalucroTransactions
();
/// <summary>
/// The update salucro payment status
/// </summary>
/// <returns></returns>
public
Task
<
int
>
UpadateSalucroPaymentStatusAsync
(
int
respectiveId
);
/// <summary>
/// The update salucro status check progress
/// </summary>
/// <returns></returns>
public
Task
<
int
>
UpdateSalucroStatusCheckProgress
(
int
respectiveId
,
bool
statusCheckInProgress
);
/// <summary>
/// The Appointment Log to sen messages and Emails through Hangfire
/// </summary>
/// <param name="appointmentId"></param>
/// <returns></returns>
public
Task
<
AppointmentModel
>
FetchForInvoiceAsync
(
int
appointmentId
,
string
status
);
public
Task
<
int
>
CancelAppointmentAsync
(
AppointmentModel
model
,
string
type
,
string
transaction
,
string
transactionId
,
int
?
salucroStatusCode
,
string
salucroTransactionId
,
int
?
modifiedBy
,
string
reason
);
/// <summary>
/// The Appointment Log to sen messages and Emails through Hangfire
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
Task
<
int
>
RefundAppointmentCancelAmountAsync
(
AppointmentModel
model
);
/// <summary>
/// The find patient appointment
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
Task
<
IEnumerable
<
AppointmentModel
>>
FindPatientAppointmentAsync
(
PatientAppointmentFilterModel
model
);
/// <summary>
/// The find patient appointment
/// </summary>
/// <returns></returns>
public
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchTransactionDataAsync
(
int
logId
);
/// <summary>
/// The find patient appointment
/// </summary>
/// <returns></returns>
public
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchTransactionAsync
(
int
appointmentId
,
int
type
);
/// <summary>
/// The find patient appointment
/// </summary>
/// <returns></returns>
public
Task
<
int
>
CompletePartialPaymentAsync
(
AppointmentModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FetchViewAsync
(
AppointmentFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="appointmentIds">The appointmentIds.</param>
/// <param name="reason">The reason.</param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CancelAllAsync
(
string
appointmentIds
,
string
reason
);
/// <summary>
/// The reschedule async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="appointmentDate">
/// The appointment date.
/// </param>
/// <param name="appointmentTime">
/// The appointment time.
/// </param>
/// <param name="appointmentNotes">
/// The appointment Notes.
/// </param>
/// <param name="modifiedBy">
/// The modified by.
/// </param>
/// <param name="providerId">
/// The provider id.
/// </param>
/// <param name="providerLocationId">
/// The provider location id.
/// </param>
/// <param name="departmentId">
/// The department id.
/// </param>
/// <param name="locationId"></param>
/// <param name="tokenNumber"></param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
RescheduleAllAsync
(
string
appointmentIds
,
DateTime
appointmentDate
,
TimeSpan
appointmentTime
,
TimeSpan
appointmentEndTime
,
string
appointmentNotes
,
int
modifiedBy
,
int
providerId
,
int
providerAvailabilityId
,
int
consultationTypeId
,
int
?
departmentId
,
int
locationId
,
string
?
tokenNumbers
,
int
?
specializationId
,
string
?
appointmentTimings
,
string
?
AppointmentEndTimings
,
int
?
visitTypeId
,
int
?
chargeTypesId
,
decimal
amount
,
decimal
total
,
decimal
discount
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="id">
/// The patient id.
/// </param>
/// <returns>
/// The no. of appointment count for today <see cref="Task"/>.
/// </returns>
Task
<
int
>
GetAppointmentCountForTodayAsync
(
int
id
);
}
}
Domain/Hims.Domian.Services/IAppointmentTransactionService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The AppointmentTransactionService interface.
/// </summary>
public
interface
IAppointmentTransactionService
{
/// <summary>
/// The fetch async.
/// </summary>
/// /// <param name="appointmentId">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AppointmentTransactionModel
>
FetchAsync
(
int
appointmentId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The fetch provider transactions async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchProviderTransactionsAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
RefundModel
>>
FetchRefundAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The find transaction details async.
/// </summary>
/// <param name="appointmentTransactionId">
/// The appointment transaction id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindTransactionDetailsAsync
(
int
appointmentTransactionId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ProviderBankAccountModel
>>
FetchPayoutAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchPayoutDetailsAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The find settlement details async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
SettlementDetailModel
>>
FindSettlementDetailsAsync
(
SettlementFilterModel
model
);
/// <summary>
/// The fetch appointments details async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentTransactionModel
>>
FetchAppointmentsDetailsAsync
(
AppointmentTransactionFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
int
>>
AddAsync
(
IEnumerable
<
PaymentDocumentModel
>
model
);
/// <summary>
/// The fetch payment async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
PaymentDocumentModel
>>
FetchPaymentAsync
(
PaymentDocumentFilterModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
PaymentDocumentModel
model
);
/// <summary>
/// The get async.
/// </summary>
/// <param name="id">
/// The id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
PaymentDocumentModel
>
GetAsync
(
int
id
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
PaymentDocumentModel
model
);
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
GetPreviousVoucherNumberAsync
();
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
GetVoucherNumber
();
/// <summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
GetATransactionId
();
}
}
Domain/Hims.Domian.Services/IAppointmentTypesService .cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The hwc patient Service interface.
/// </summary>
public
interface
IAppointmentTypesService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
AppointmentTypesModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
AppointmentTypesModel
>>
FetchAllAsync
(
AppointmentTypesModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
AppointmentTypesModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
AppointmentTypesModel
model
);
}
}
Domain/Hims.Domian.Services/IAssessmentTypeService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.AssessmentType
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IAssessmentTypeService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ViewModel
>>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsertModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
UpdateModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="id">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
DeleteModel
id
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="id">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByAssessmentTypeId
(
int
id
);
}
}
Domain/Hims.Domian.Services/IAuditLogService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The AuditLogService interface.
/// </summary>
public
interface
IAuditLogService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AuditLogModel
>>
FetchAsync
(
AuditLogFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
LogAsync
(
AuditLogModel
model
);
}
}
Domain/Hims.Domian.Services/IAuthorityMasterService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IAuthorityMasterService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
AuthorityMasterModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
AuthorityMasterModel
>>
FetchAllAsync
(
AuthorityMasterModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
AuthorityMasterModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
AuthorityMasterModel
model
);
/// <summary>
/// Activates the or deactivate authority.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateTest
(
AuthorityMasterModel
model
);
}
}
Domain/Hims.Domian.Services/IBedBoardListViewService.cs
0 → 100644
View file @
d66408ab
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Hims.Domain.Services
{
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
using
System.Threading.Tasks
;
public
interface
IBedBoardListViewService
{
Task
<
IEnumerable
<
ListViewModel
>>
FetchAsync
(
ListViewFilterModel
model
);
}
}
Domain/Hims.Domian.Services/IBedManagementService.cs
0 → 100644
View file @
d66408ab
using
System.Collections.Generic
;
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Ward
=
Shared
.
UserModels
.
BedManagement
.
Ward
;
using
Room
=
Shared
.
UserModels
.
BedManagement
.
Room
;
using
Status
=
Shared
.
UserModels
.
BedManagement
.
Status
;
using
Bed
=
Shared
.
UserModels
.
BedManagement
.
Bed
;
using
Hims.Shared.UserModels
;
using
System
;
/// <summary>
/// The Bed Management Service
/// </summary>
public
interface
IBedManagementService
{
/// <summary>
/// Fetches the wards asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
Ward
.
ViewModel
>>
FetchWardsAsync
(
int
locationId
);
/// <summary>
/// Fetches the rooms asynchronous.
/// </summary>
/// <param name="wardId">The ward identifier.</param>
/// <returns></returns>
Task
<
IEnumerable
<
Room
.
ViewModel
>>
FetchRoomsAsync
(
int
wardId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <param name="roomId">The room identifier.</param>
/// <returns></returns>
Task
<
IEnumerable
<
Bed
.
ViewModel
>>
FetchBedsAsync
(
int
roomId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
string
>
FetchBedsAvailabilityAsync
(
BedManagementFilterModel
model
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
BedPatientDetailsModel
>
FindPatientDetailsByBedIdAsync
(
int
bedId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
int
>
FetchAvailableBedsCountAsync
(
int
locaionId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
int
>
FetchBookedBedsCountAsync
(
int
locationId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
int
>
FetchUnderCleaningBedsCountAsync
(
int
locationId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
int
>
FetchTotalBedsCountAsync
(
int
locationId
);
/// <summary>
/// Fetches the beds asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
Status
.
ViewModel
>>
FetchBedStatusItemsAsync
(
int
locationId
);
}
}
Domain/Hims.Domian.Services/IBedService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IBedService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
BedModel
>>
FetchAsync
(
BedFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
BedModel
>>
FetchBedAsync
(
BedFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
BedModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
BedModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
bedId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNumberByBedId
(
int
bedId
);
/// <summary>
/// Changes the status asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ChangeStatusAsync
(
BedModel
model
);
}
}
Domain/Hims.Domian.Services/IBehavioralHealthService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
Hims.Shared.Library.Helpers
;
/// <summary>
/// The Behavioral Health Service interface.
/// </summary>
public
interface
IBehavioralHealthService
{
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAltAsync
(
BehavioralModifyModel
model
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
BehavioralHealthModel
>
FindAsync
(
int
appointmentId
);
/// <summary>
/// The find internal medicine async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="type">
/// The encounter type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
BehavioralHealthResource
>
FindDashboardAsync
(
int
appointmentId
,
BehavioralHealthType
type
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
BehavioralModifyModel
model
);
/// <summary>
/// The find prescription async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
BehavioralPrescriptionModel
>
FindPrescriptionAsync
(
int
appointmentId
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
BehavioralHealthFullTranscriptModel
>
FindFullTranscriptAsync
(
int
appointmentId
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IBirthCertificateService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary>
/// The birth certificate Service interface.
/// </summary>
public
interface
IBirthCertificateService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
BirthCertificateModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
BirthCertificateModel
>>
FetchAllAsync
(
BirthCertificateModel
model
);
Task
<
BirthCertificateModel
>
FetchBirthReportAsync
(
BirthCertificateModel
model
);
}
}
Domain/Hims.Domian.Services/IBookScanAppointmentService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.Scan.BookAppointment
;
using
Hims.Shared.UserModels.Scan.ScanAppointment
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The id proof Service interface.
/// </summary>
public
interface
IBookScanAppointmentService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertBookScanAppointment
model
);
/// <summary>
/// Update of Patient appointment Payment and patient details.
/// </summary>
/// <param name="model">The model.</param>
/// <param name="request">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdatePatientDetailsPaymentAsync
(
InsertBookScanAppointment
model
,
ModifyPatientDetails
request
);
/// <summary>
/// fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// reschedule the appointment.
/// </summary>
/// <param name="bookScanAppointmentId">The model.</param>
/// <param name="modifiedBy">Modified By Name.</param>
/// <param name="appointmentDate">Appointment Date.</param>
/// <param name="appointmentTime">Appointment Start Time.</param>
/// <param name="appointmentEndTime">Appointment End Time.</param>
/// <returns></returns>
Task
<
int
>
RescheduleAsync
(
int
bookScanAppointmentId
,
int
modifiedBy
,
DateTime
appointmentDate
,
TimeSpan
appointmentTime
,
TimeSpan
appointmentEndTime
,
int
scanMachineMasterId
);
/// <summary>
/// Bulk reschedule the scan appointmenta.
/// </summary>
/// <param name="model">The RescheduleScanAppointmentRequest model.</param>
/// <returns></returns>
Task
<
int
>
BulkRescheduleAsync
(
RescheduleScanAppointmentRequest
model
);
/// <summary>
/// update the appointment.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateDetailsAsync
(
InsertBookScanAppointment
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="BookScanAppointmentId">
/// The filter model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
RescheduleScanAppointmentDetails
>
FetchScanAppointmentDetails
(
int
BookScanAppointmentId
);
/// <summary>
/// The update async.
/// </summary>
/// /// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CancelAsync
(
InsertBookScanAppointment
model
);
/// <summary>
/// The cancel async.
/// </summary>
/// <param name="appointmentIds">The scan appointmentIds.</param>
/// <param name="reason">The cancel reason.</param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CancelAllAsync
(
string
appointmentIds
,
string
reason
);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchFilterEvent
(
FilterModel
model
);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchFilterEventPatients
(
FilterModel
model
);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchScanReport
(
FetchBookScanAppointment
model
);
/// <summary>
/// fetches Patient Future Appointment asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchPatientFutureAppointment
>>
FetchPatientFutureAppointments
(
FetchPatientFutureAppointment
model
);
/// <summary>
/// fetches scan scroll reports.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchScanScroll
(
FetchBookScanAppointment
model
);
/// <summary>
/// fetches pndt reports.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchPndtReportAsync
(
FetchBookScanAppointment
model
);
/// <summary>
/// fetches event the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchBookScanAppointment
>>
FetchScanOutPatients
(
FetchBookScanAppointment
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
int
>>
AddScanDocumentAsync
(
IEnumerable
<
ScanDocumentModel
>
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="BookScanAppointmentId">
/// The filter model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ScanDocumentModel
>>
FetchScanDocumentAsync
(
int
BookScanAppointmentId
);
Task
<
IEnumerable
<
ScanDocumentModel
>>
FetchPacsImagesAsync
(
int
patientId
);
}
}
Domain/Hims.Domian.Services/ICallHistoryDataService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
ICallHistoryDataService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
Call_HistoryModel
>>
FetchAsync
(
Call_HistoryModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
CallHistory
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
CallHistory
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
problemId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
Call_HistoryModel
>>
FindByMobileNum
(
Call_HistoryModel
model
);
}
}
Domain/Hims.Domian.Services/ICaseTypeService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
/// <summary>
///
/// </summary>
public
interface
ICaseTypeService
{
// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
CaseTypeModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
CaseTypeModel
>>
FetchAllAsync
(
CaseTypeModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
CaseTypeModel
model
);
/// <summary>
/// Activates the or deactivate case type.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateTest
(
CaseTypeModel
model
);
}
}
Domain/Hims.Domian.Services/IChargeCategoryService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
Hims.Domain.EntityModels
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IChargeCategoryService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeCategoryModel
>>
FetchAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
Task
<
int
>
UpdateAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
chargeCategoryId
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// Fetches the charge category masters asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
ChargeCategoryModel
>>
FetchChargeCategoryMastersAsync
();
/// <summary>
/// Fetches the Room charges category masters wise asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
ChargeCategoryModel
>>
FetchRoomChargeAsync
(
ChargeCategoryModel
model
);
/// <summary>
///insert entry for charges according to category.
/// </summary>
/// <returns></returns>
Task
<
int
>
InsertChargetoCategoryAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// update for cost of charge category.
/// </summary>
/// <returns></returns>
Task
<
int
>
UpdateChargetoCategoryAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// Makes the default charge category asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
MakeDefaultChargeCategoryAsync
(
ChargeCategoryModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusRoomAsync
(
ChargeCategoryModel
model
);
}
}
Domain/Hims.Domian.Services/IChargeGroupService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IChargeGroupService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeGroupModel
>>
FetchAsync
(
ChargeGroupFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ChargeGroupModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
ChargeGroupModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
chargeGroupId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeGroupModel
>>
FetchChargeGroupAsync
(
ChargeGroupFilterModel
model
);
}
}
Domain/Hims.Domian.Services/IChargeManagementService.cs
0 → 100644
View file @
d66408ab
using
System.Collections.Generic
;
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.UserModels.ChargeManagement
;
/// <summary>
/// The Bed Management Service
/// </summary>
public
interface
IChargeManagementService
{
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
UpdateModel
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
ViewModel
>>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// Fetches the masters asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
MastersViewModel
>>
FetchMastersAsync
();
}
}
Domain/Hims.Domian.Services/IChargeModuleService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
Shared.UserModels.ChargeModule
;
public
interface
IChargeModuleService
{
#
region
Charge
Templates
Task
<
IEnumerable
<
ChargeModuleTemplateModel
>>
FetchChargeTemplatesAsync
(
ChargeTemplateFilterModel
model
);
Task
<
int
>
ModifyChargeTemplateAsync
(
ChargeModuleTemplateModel
model
);
Task
<
bool
>
SetInUseChargeTemplateAsync
(
ChargeModuleTemplateModel
model
);
#
endregion
Task
<
int
>
ModifyChargeAsync
(
ChargeModuleInsertionModel
model
);
Task
<
IEnumerable
<
ChargeModuleDetailsModel
>>
FetchGivenChargesAsync
(
ChargeModuleDetailsModel
model
);
Task
<
int
>
DeleteChargeAsync
(
int
chargeModuleDetailsId
);
Task
<
ChargeModuleDetailsModel
>
GetRequiredDetailForChargeFetchAsync
(
string
moduleName
,
int
locationId
);
Task
<
IEnumerable
<
DoctorSpecializationChargeModuleDetailsModel
>>
FetchDoctorSpecializationGivenChargesAsync
(
DoctorSpecializationChargeModuleDetailsModel
model
);
Task
<
int
>
ModifyDoctorSpecializationChargeAsync
(
DoctorSpecializationChargeModuleInsertionModel
model
);
Task
<
int
>
DeleteDoctorSpecializationChargeAsync
(
int
deleteDoctorSpecializationChargeModuleDetailsId
);
Task
<
DoctorSpecializationMap
>
FetchOrCreateRefrenceId
(
DoctorSpecializationChargeModuleDetailsModel
model
);
#
region
Update
Location
Charges
Task
<
IEnumerable
<
LocationChargePriceModel
>>
FetchLocationChargePricesAsync
(
int
locationId
,
int
chargeModuleTemplateId
,
int
modulesMasterId
,
int
chargeReferenceId
);
Task
<
bool
>
UpdateLocationChargePricesAsync
(
List
<
ChargeModuleDetailsModel
>
model
);
#
endregion
}
}
Domain/Hims.Domian.Services/IChargeService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IChargeService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeModel
>>
FetchAsync
(
ChargeFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeModel
>>
ReeatTypeFetchAsync
(
ChargeFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ChargeModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
ChargeModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
chargeId
);
}
}
Domain/Hims.Domian.Services/IChargeTypesService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IChargeTypesService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ChargeTypesModel
>>
FetchAsync
(
ChargeTypesFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ChargeTypesModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
Task
<
int
>
UpdateAsync
(
ChargeTypesModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
?
chargeTypesId
);
/// <summary>
/// The get charge availability async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByChargeId
(
int
?
chargeTypesId
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
ChargeTypesModel
model
);
}
}
Domain/Hims.Domian.Services/IChatService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary> The ChatService interface.</summary>
public
interface
IChatService
{
/// <summary> The fetch all chat async.</summary>
/// <param name="senderId"> The sender id.</param>
/// <param name="senderType"> The sender type.</param>
/// <param name="receiverId"> The receiver id.</param>
/// <param name="receiverType"> The receiver type.</param>
/// <param name="date"> The date.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
IEnumerable
<
ChatModel
>>
FetchAsync
(
string
senderId
,
string
senderType
,
string
receiverId
,
string
receiverType
,
string
date
);
/// <summary> The save async.</summary>
/// <param name="chatModel"> The chat model.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
int
>
SaveAsync
(
ChatModel
chatModel
);
/// <summary>The delete async.</summary>
/// <param name="chatId">The chat id.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
int
>
DeleteAsync
(
long
chatId
);
/// <summary>The fetch chat async by chat id.</summary>
/// <param name="chatId">The chat id.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
ChatModel
>
FindAsync
(
long
chatId
);
}
}
Domain/Hims.Domian.Services/ICompanyService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The CompanyService interface.
/// </summary>
public
interface
ICompanyService
{
/// <summary>
/// The insert company async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertCompanyAsync
(
CompanyModel
model
);
/// <summary>
/// The update company async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateCompanyAsync
(
CompanyModel
model
);
/// <summary>
/// The delete company async.
/// </summary>
/// <param name="companyId">
/// The company id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteCompanyAsync
(
int
companyId
);
/// <summary>
/// The fetch all async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
CompanyFilterModel
>>
FetchAllAsync
(
CompanyFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CompanyModel
>
FetchAsync
(
CompanyModel
model
);
}
}
Domain/Hims.Domian.Services/IComponentService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.TemplateDesign.Component
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The component Service interface.
/// </summary>
public
interface
IComponentService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchModel
>>
FetchAllAsync
(
FetchModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
UpdateModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
DeleteModel
model
);
}
}
Domain/Hims.Domian.Services/IComponentTypeService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.TemplateDesign.ComponentType
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The component type Service interface.
/// </summary>
public
interface
IComponentTypeService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchModel
>>
FetchAllAsync
(
FetchModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
UpdateModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
DeleteModel
model
);
}
}
Domain/Hims.Domian.Services/IConsultationTypeService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.ConsultationType
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IConsultationTypeService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ViewModel
>>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsertModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="visitTypeId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
visitTypeId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="visitTypeId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByConsultationTypeId
(
int
visitTypeId
);
}
}
Domain/Hims.Domian.Services/IContactDetailsService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
Hims.Domain.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
public
interface
IContactDetailsService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ContactDetails
>>
FetchAsync
(
ContactDetails
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ContactDetails
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
ContactDetails
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
Id
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ContactDetails
>>
FindById
(
int
Id
);
}
}
Domain/Hims.Domian.Services/ICounsellingService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels.Counselling
;
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
ICounsellingService
{
Task
<
IEnumerable
<
CounsellingBasicModel
>>
FetchBasicsAsync
(
PackageTypeModel
model
);
Task
<
IEnumerable
<
CounsellingModel
>>
FetchAsync
(
int
patientId
);
Task
<
CounsellingModel
>
FindAsync
(
int
counsellingId
);
Task
<
IEnumerable
<
CounsellingDetailModel
>>
FetchDetailsAsync
(
int
counsellingId
);
Task
<
CounsellingPatientModel
>
FindPatientInfoAsync
(
int
patientId
);
Task
<
int
>
AddAsync
(
CounsellingModel
model
,
List
<
CounsellingDetailModel
>
counsellingDetails
);
Task
<
int
>
UpdateAsync
(
CounsellingModel
model
,
List
<
CounsellingDetailModel
>
counsellingDetails
);
Task
<
int
>
UpdateSignaturesAsync
(
int
counsellingId
,
string
signaturePath
,
bool
isPatient
);
Task
<
int
>
PublishAsync
(
int
counsellingId
,
int
publishedBy
);
Task
<
int
>
DisableAsync
(
int
counsellingId
,
int
disabledBy
);
Task
<
int
>
EnableAsync
(
int
counsellingId
,
int
enabledBy
);
Task
<
int
>
DeleteAsync
(
int
counsellingId
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/ICountryService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Country Service interface.
/// </summary>
public
interface
ICountryService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
CountryModel
>>
FetchAsync
(
CountryFilterModel
model
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="countryId">
/// The country Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CountryModel
>
FindAsync
(
int
countryId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
CountryModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
CountryModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="countryId">
/// The Country id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
countryId
);
/// <summary>
/// The modify status async.
/// </summary>
/// <param name="countryId">
/// The Country id.
/// </param>
/// <param name="modifiedBy">
/// The modified By.
/// </param>
/// <param name="status">
/// The status.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
int
countryId
,
int
modifiedBy
,
bool
status
);
}
}
Domain/Hims.Domian.Services/ICouponService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
ICouponService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
CouponModel
>>
FetchAsync
(
CouponFilterModel
model
);
/// <summary>
/// The fetch eligible coupons async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
CouponModel
>>
FetchEligibleCouponsAsync
(
CouponFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
CouponModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
CouponModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="couponId">
/// The coupon id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
couponId
);
/// <summary>
/// The modify status async.
/// </summary>
/// <param name="couponId">
/// The coupon id.
/// </param>
/// <param name="modifiedBy">
/// The modified By.
/// </param>
/// <param name="status">
/// The status.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
int
couponId
,
int
modifiedBy
,
bool
status
);
/// <summary>
/// The apply async.
/// </summary>
/// <param name="couponCode">
/// The coupon code.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CouponModel
>
ApplyAsync
(
string
couponCode
);
/// <summary>
/// The fetch active coupon async.
/// </summary>
/// <param name="couponCode">
/// The coupon code.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CouponModel
>
FetchActiveCoupon
(
string
couponCode
);
/// <summary>
/// Fetch total appointments booked by patient.
/// </summary>
/// <param name="patientId">
/// The Patient Id
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AppointmentModel
>>
FetchPatientAppointments
(
int
patientId
);
}
}
Domain/Hims.Domian.Services/ICubicleService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.Library
;
using
Hims.Shared.UserModels
;
using
Hims.Shared.UserModels.Common
;
using
Shared.EntityModels
;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public
interface
ICubicleService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
CubicleModel
>>
FetchAsync
(
CubicleFilterModel
model
);
Task
<
Resource
>
AssignConsultantDoctorAsync
(
CubicleModel
model
);
Task
<
int
>
UnAssignConsultantDoctorAsync
(
CubicleModel
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
InsertAsync
(
CubicleModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
UpdateAsync
(
CubicleModel
model
);
/// <summary>
/// Assigns the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
AssignAsync
(
CubicleModel
model
);
/// <summary>
/// unassign asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UnassignAsync
(
CubicleModel
model
);
/// <summary>
/// Deactivates the widget asynchronous.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpadteStatusAsync
(
int
id
,
int
accountStatusId
,
int
modifiedBy
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="cubicleId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
cubicleId
);
}
}
Domain/Hims.Domian.Services/IDashboardWidgetService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels
;
using
Hims.Shared.UserModels.Common
;
using
Hims.Shared.UserModels.DashboardWidget
;
using
Shared.EntityModels
;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public
interface
IDashboardWidgetService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DashboardWidgetModel
>>
FetchAsync
(
DashboardWidgetFilterModel
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
InsertAsync
(
DashboardWidgetModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
UpdateAsync
(
DashboardWidgetModel
model
);
/// <summary>
/// The fetch widget.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FetchWidgetType
(
int
dashboardWidgetTypeId
);
/// <summary>
/// Deactivates the widget asynchronous.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeactivateWidget
(
int
id
,
int
modifiedBy
,
string
modifiedByName
);
/// <summary>
/// Deactivates the widget asynchronous.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ActivateWidget
(
int
id
,
int
modifiedBy
,
string
modifiedByName
);
/// <summary>
/// Executes the count asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
ExecuteAsync
(
ExecuteInputModel
model
);
}
}
Domain/Hims.Domian.Services/IDemandBookservice.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.DemandBook
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IDemandBookService
{
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsertModel
model
);
/// <summary>
/// The supplier pharmacy product async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
public
Task
<
IEnumerable
<
ViewModel
>>
FetchAsync
(
ViewModel
model
);
/// <summary>
/// The update demand record.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateDemandRecord
(
ViewModel
model
);
}
}
Domain/Hims.Domian.Services/IDentalEncounterService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.Library.Helpers
;
/// <summary>
/// The DentalEncounterService interface.
/// </summary>
public
interface
IDentalEncounterService
{
/// <summary>
/// The add alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
AddAltAsync
(
DentalEncounterModifyModel
model
);
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAltAsync
(
DentalEncounterModifyModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DentalEncounterResource
>
FetchAsync
(
int
appointmentId
,
DentalEncounterType
type
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DentalEncounterModel
>
FindAsync
(
int
appointmentId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
DentalEncounterModifyModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
DentalEncounterModifyModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="dentalEncounterId">
/// The dental encounter id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
dentalEncounterId
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DentalFullTranscriptModel
>
FindFullTranscriptAsync
(
int
appointmentId
);
/// <summary>
/// The find prescription async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DentalPrescriptionModel
>
FindPrescriptionAsync
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IDenverchartService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.PediatricGraphs
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The id proof Service interface.
/// </summary>
public
interface
IDenverChartService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
DenverChartModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
DenverChartModel
>>
FetchAllAsync
(
DenverChartModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
DenverChartModel
>>
FetchByAppointmentIdAsync
(
DenverChartModel
model
);
//Task<int> UpdateAsync(DenverChartModel model);
}
}
Domain/Hims.Domian.Services/IDepartmentService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IDepartmentService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DepartmentModel
>>
FetchAsync
(
DepartmentFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
DepartmentModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DepartmentModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="departmentId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
departmentId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="departmentId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByDepartmentId
(
int
departmentId
);
}
}
Domain/Hims.Domian.Services/IDietConditionHeaderService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels.diet_package
;
using
Hims.Shared.UserModels.PackageModule
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IDietConditionHeaderService
{
Task
<
IEnumerable
<
DietConditionsModel
>>
FetchItemsAsync
(
DietConditionsModel
model
);
Task
<
IEnumerable
<
DietConditionsModel
>>
FetchMeasureAsync
(
DietConditionsModel
model
);
Task
<
int
>
InsertItemsAsync
(
DietSlotsModel
model
,
List
<
DietConditionsDetailModel
>
dietConditionsModel
);
Task
<
int
>
UpdateItemsAsync
(
DietSlotsModel
model
,
List
<
DietConditionsDetailModel
>
dietConditionsModel
);
Task
<
int
>
UpdateAsync
(
DietConditionsModel
model
);
Task
<
int
>
ModifyStatusAsync
(
DietConditionsModel
model
);
Task
<
int
>
ModifyPackageStatusAsync
(
DietConditionsModel
model
);
Task
<
IEnumerable
<
DietConditionsDetailModel
>>
FetchDietPackageAsync
(
DietConditionsDetailModel
model
);
Task
<
DietPackageViewModel
>
ViewAsync
(
int
conditionId
);
}
}
Domain/Hims.Domian.Services/IDietEncounterService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
Hims.Shared.Library.Enums
;
using
Hims.Shared.Library.Helpers
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
using
diet
=
Shared
.
UserModels
.
DietEncounter
;
using
dietEncounter
=
Shared
.
UserModels
.
DietEncounter
;
public
interface
IDietEncounterService
{
/// <summary>
///
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
Task
<
CommonResponse
>
AddAsync
(
diet
.
InsertModel
model
);
/// <summary>
///
/// </summary>
/// <param name="appointmentId"></param>
/// <param name="isAdmission"></param>
/// <returns></returns>
Task
<
DietEncounterModel
>
FindAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// Finds the dashboard asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="type">The type.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
dietEncounter
.
DietEncounterResource
>
FindDashboardAsync
(
int
appointmentId
,
DietEncounterType
type
,
bool
isAdmission
);
/// <summary>
///
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
Task
<
CommonResponse
>
UpdateAsync
(
diet
.
InsertModel
model
);
/// <summary>
///
/// </summary>
/// <param name="patientId"></param>
/// <returns></returns>
Task
<
int
>
FetchVisitNoAsync
(
int
patientId
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DietFullTrascriptModel
>
FindPrescriptionAsync
(
int
appointmentId
);
Task
<
DietFullTrascriptModel
>
FindGpla
(
int
?
appointmentId
);
}
}
Domain/Hims.Domian.Services/IDietGuidLinesService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IDietGuidLinesService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DietGuidLinesModel
>>
FetchAsync
(
DietGuidLinesModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
int
>>
AddAsync
(
IEnumerable
<
DietGuidLinesModel
>
model
);
/// <summary>
/// Gets the patient document on identifier asynchronous.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns></returns>
Task
<
DietGuidLinesModel
>
GetDietDocumentOnIdAsync
(
int
id
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
DietGuidLinesModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="model">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
DietGuidLinesModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
DietGuidLinesModel
model
);
}
}
Domain/Hims.Domian.Services/IDietItemsService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IDietItemsService
{
Task
<
IEnumerable
<
DietItemsModel
>>
FetchItemsAsync
(
DietItemsModel
model
);
Task
<
IEnumerable
<
DietItemsModel
>>
FetchMeasureAsync
(
DietItemsModel
model
);
Task
<
int
>
InsertItemsAsync
(
DietItemsModel
model
);
Task
<
int
>
UpdateAsync
(
DietItemsModel
model
);
Task
<
int
>
ModifyStatusAsync
(
DietItemsModel
model
);
}
}
Domain/Hims.Domian.Services/IDietSlotsMasterService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels.Common
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IDietSlotsMasterService
{
/// <summary>
/// The insert slots async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertSlotsAsync
(
DietSlotsModel
model
);
Task
<
IEnumerable
<
DietSlotsModel
>>
FetchSlotsAsync
(
DietSlotsModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DietSlotsModel
model
);
Task
<
int
>
ModifyStatusAsync
(
DietSlotsModel
model
);
}
}
Domain/Hims.Domian.Services/IDischargeInstruction.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IDischargeInstructionService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DischargeModel
>>
FetchAsync
(
DischargeFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
DischargeModel
model
);
///// <summary>
///// The update async.
///// </summary>
///// <param name="model">
///// The model.
///// </param>
///// <returns>
///// The <see cref="Task"/>.
///// </returns>
//Task<int> UpdateAsync(DischargeModel model);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="dischargeInstructionId">
/// The coupon id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
dischargeInstructionId
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="model">
/// The coupon id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
DischargeModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="model">
/// The coupon id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
DischargeModel
model
);
}
}
Domain/Hims.Domian.Services/IDischargeService.cs
0 → 100644
View file @
d66408ab
using
System.Collections.Generic
;
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.UserModels.Discharge
;
using
Resource
=
Shared
.
UserModels
.
Discharge
.
Resource
;
/// <summary>
/// The CompanyService interface.
/// </summary>
public
interface
IDischargeService
{
/// <summary>
/// Fetches the discharge instructions asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
Resource
.
ViewModel
>>
FetchDischargeInstructionsAsync
();
/// <summary>
/// Fetches the discharge status asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
Resource
.
ViewModel
>>
FetchDischargeStatusAsync
();
/// <summary>
/// The insert company async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// The update bed status async.
/// </summary>
/// <param name="admissionId">
/// The admission Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateBedStatusAsync
(
int
admissionId
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
UpdateModel
model
);
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
ViewModel
>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// The insert discharge async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertDischargeAsync
(
InsertModel
model
);
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
ViewModel
>
FetchDischargeAsync
(
FilterModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateDischargeAsync
(
UpdateModel
model
);
}
}
Domain/Hims.Domian.Services/IDiscountManagementService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Hims.Shared.UserModels.DiscountManagement
;
/// <summary>
/// The discount management service interface.
/// </summary>
public
interface
IDiscountManagementService
{
/// <summary>
/// The add discount module.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
AddDiscountModule
(
DiscountModuleModel
model
);
/// <summary>
/// The update discount module.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
UpdateDiscountModule
(
DiscountModuleModel
model
);
/// <summary>
/// The fetch all discount modules async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
DiscountModuleModel
>>
FetchAllDiscountModulesAsync
(
DiscountModuleModel
model
);
/// <summary>
/// The modify discounts per module async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
AddDiscountsPerModuleAsync
(
DiscountsPerModuleModel
model
);
/// <summary>
/// The update discounts per module async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
UpdateDiscountsPerModuleAsync
(
DiscountsPerModuleModel
model
);
/// <summary>
/// The get module detail async.
/// </summary>
/// <param name="moduleName">
/// The module name.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
DiscountModuleModel
>
GetModuleDetailsAsync
(
string
moduleName
);
/// <summary>
/// The get role based discount on module.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
DiscountsPerModuleModel
>
GetRoleBasedDisocuntOnModule
(
DiscountsPerModuleModel
model
);
/// <summary>
/// Activates the or deactivate role.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivate
(
DiscountModuleModel
model
);
}
}
Domain/Hims.Domian.Services/IDoctorAppointmentNoticeService.cs
0 → 100644
View file @
d66408ab
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels
;
namespace
Hims.Domain.Services
{
public
interface
IDoctorAppointmentNoticeService
{
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <returns></returns>
public
Task
<
IEnumerable
<
DoctorAppointmentNoticeModel
>>
FetchAsync
(
DoctorAppointmentNoticeModel
model
);
/// <summary>
/// The insert company async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
public
Task
<
int
>
InsertAsync
(
DoctorAppointmentNoticeModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
public
Task
<
int
>
UpdateAsync
(
DoctorAppointmentNoticeModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="id">The model.</param>
/// <returns></returns>
public
Task
<
int
>
DeleteAsync
(
int
doctorAppointmentNoticeId
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="chargeTypesId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
DoctorAppointmentNoticeModel
model
);
}
}
Domain/Hims.Domian.Services/IDoctorDeviceDetailsService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary>
/// The DoctorDeviceDetailsService interface.
/// </summary>
public
interface
IDoctorDeviceDetailsService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DoctorDeviceDetailsModel
>>
FetchAsync
(
int
appointmentId
);
/// <summary>
/// The insert async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertAsync
(
DoctorDeviceDetailsModel
model
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IDoctorScheduleVisitsService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.UserModels.DoctorScheduleVisits
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IDoctorScheduleVisitsService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ViewModel
>>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
Task
<
IEnumerable
<
ViewModel
>>
FetchDoctorVisitsAsync
(
FilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsertModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
Task
<
int
>
UpdateAsync
(
InsertModel
model
);
/// <summary>
/// the Modify async
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
Task
<
int
>
ModifyStatusAsync
(
InsertModel
model
);
}
}
Domain/Hims.Domian.Services/IDoctorUnitService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
/// <summary>
/// The doctor unit Service interface.
/// </summary>
public
interface
IDoctorUnitService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
DoctorUnitMasterModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
DoctorUnitMasterModel
>>
FetchAllAsync
(
DoctorUnitMasterModel
model
);
/// <summary>
/// Activates the or deactivate doctor unit.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateTest
(
DoctorUnitMasterModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DoctorUnitMasterModel
model
);
}
}
Domain/Hims.Domian.Services/IDriverDetailService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IDriverDetailService
{
// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
DriverDetailModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
DriverDetailModel
>>
FetchAllAsync
(
DriverDetailModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DriverDetailModel
model
);
//Task<int> DeleteAsync(int driverDetailId);
Task
<
int
>
ModifyStatusAsync
(
int
driverDetailId
,
int
modifiedBy
,
bool
status
);
}
}
Domain/Hims.Domian.Services/IDynamicDashboardService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.Common
;
using
Hims.Shared.UserModels.DynamicDashboard
;
using
Hims.Shared.UserModels.DynamicDashboard.Config
;
using
Shared.EntityModels
;
/// <summary>
/// The Appointment Service interface.
/// </summary>
public
interface
IDynamicDashboardService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DashboardConfigModel
>>
FetchAsync
(
FetchFilterModel
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
GenericResponse
>
InsertAsync
(
InsertModel
model
);
///// <summary>
///// Updates the asynchronous.
///// </summary>
///// <param name="model">The model.</param>
///// <returns></returns>
//Task<int> UpdateAsync(DashboardConfigModel model);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
bool
>
DeleteAsync
(
int
id
);
}
}
Domain/Hims.Domian.Services/IDynamicReportService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
// using Shared.UserModels.Filters;
/// <summary>
/// The DynamicReportService interface.
/// </summary>
public
interface
IDynamicReportService
{
///// <summary>
///// The Query Execute async.
///// </summary>
///// <param name="model">
///// The model.
///// </param>
///// <returns>
///// The <see cref="Task"/>.
///// </returns>
//Task<IEnumerable<object>> ExecuteQueryAsync(DynamicReportModel model);
/// <summary>
/// Insert/Save the Recoed Query.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
DynamicReportModel
model
);
/// <summary>
/// The Query Execute async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
DynamicReportModel
>>
FetchAsync
(
DynamicReportFilterModel
model
);
/// <summary>
/// Deletes the package charge asynchronous.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeactivateAsync
(
int
?
id
,
int
?
modifiedBy
);
/// <summary>
/// update the Query
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DynamicReportModel
model
);
/// <summary>
/// to Fetch Verified Reports Query Entry
/// </summary>
Task
<
IEnumerable
<
DynamicReportModel
>>
GetReportMenuAsync
();
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
FetchModuleTemplatesModel
>>
FetchModuleTemplatesAsync
();
/// <summary>
/// The Query Execute async.
/// </summary>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
DynamicReportModel
>
FetchReportAsync
(
int
reportId
);
Task
<
int
>
InsertImages
(
DynamicReportImagesModel
model
);
Task
<
int
>
UpdateImages
(
string
path
,
int
id
);
Task
<
IEnumerable
<
DynamicReportImagesModel
>>
FetchImagePath
();
}
}
Domain/Hims.Domian.Services/IDynamicTemplateConfigService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.Library
;
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IDynamicTemplateConfigService
{
Task
<
IEnumerable
<
Resource
>>
FetchTemplateConfigs
(
GetTemplateConfigs
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
DynamicTemplateConfigModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
DynamicTemplateConfigModel
>>
FetchAllAsync
(
DynamicTemplateConfigModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
Task
<
IEnumerable
<
Resource
>>
FetchDynamicTemplate
();
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
DynamicTemplateConfigModel
model
);
/// <summary>
/// Activates the or deactivate ware house.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateTest
(
DynamicTemplateConfigModel
model
);
}
}
Domain/Hims.Domian.Services/IDynamicTemplateService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Shared.UserModels.DynamicTemplate
;
/// <summary>
/// The dynamic template Service interface.
/// </summary>
public
interface
IDynamicTemplateService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
InsertModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
InsertModel
model
);
/// <summary>
/// fetch the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
FetchModel
>>
FetchAsync
(
FetchModel
model
);
}
}
Domain/Hims.Domian.Services/IEmergencyEncounterService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
Hims.Shared.Library.Helpers
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
/// <summary>
/// The emergencyEncounterService interface.
/// </summary>
public
interface
IEmergencyEncounterService
{
/// <summary>
/// Finds the asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
EmergencyEncounterModel
>
FindAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// Finds the asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
IEnumerable
<
EmergencyEncounterModel
>>
FindAllAsync
(
int
ProviderId
);
/// <summary>
/// The add internal medicine async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
AddAsync
(
EmergencyEncounterModifyModel
model
);
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAsync
(
EmergencyEncounterModifyModel
model
);
/// <summary>
/// Finds the dashboard asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="type">The type.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
EmergencyEncounterResource
>
FindDashboardAsync
(
int
appointmentId
,
EmergencyEncounterType
type
,
bool
isAdmission
);
}
}
Domain/Hims.Domian.Services/IEmployeeShiftService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.EntityModels
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
/// <summary>
/// The employee shifts Service interface.
/// </summary>
public
interface
IEmployeeShiftService
{
/// <summary>
/// The add employee shifts async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
EmployeeShiftModel
model
);
/// <summary>
/// The update employee shifts async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
EmployeeShiftModel
model
);
/// <summary>
/// The change employee shifts status async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ChangeStatusAsync
(
EmployeeShiftModel
model
);
/// <summary>
/// The fetch employee shifts async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
EmployeeShiftModel
>>
FetchAsync
(
EmployeeShiftFilterModel
model
);
}
}
Domain/Hims.Domian.Services/IEncounterService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.UserModels.Filters
;
using
Hims.Shared.UserModels.Medications
;
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
Hims.Shared.Library.Helpers
;
/// <summary>
/// The Encounter Service interface.
/// </summary>
public
interface
IEncounterService
{
/// <summary>
/// The get latest appointment.
/// </summary>
/// <param name="patientId">
/// The patient id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
BasicAppointmentModel
>
GetLatestAppointment
(
int
patientId
);
/// <summary>
/// The get uploader role.
/// </summary>
/// <param name="uploadedBy">
/// The uploaded by.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
UploaderModel
>
GetUploaderRole
(
int
uploadedBy
);
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAltAsync
(
EncounterModel
model
);
/// <summary>
/// Gets the basic appointment details.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
BasicAppointmentModel
>
GetBasicAppointmentDetails
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// The get patient device tokens.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AccountSessionModel
>>
GetPatientDeviceTokens
(
int
appointmentId
);
/// <summary>
/// The get doctor device tokens.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
AccountSessionModel
>>
GetDoctorDeviceTokens
(
int
appointmentId
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="appointmentId">
/// The encounter id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
EncounterModel
>
FindAsync
(
int
appointmentId
);
/// <summary>
/// The find by appointment async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
EncounterModel
>
FindByAppointmentAsync
(
int
appointmentId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
EncounterModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
EncounterModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="encounterId">
/// The encounter id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
encounterId
);
/// <summary>
/// The find patient async.
/// </summary>
/// <param name="encounterId">
/// The encounter id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
AppointmentModel
>
FindPatientAsync
(
int
encounterId
);
/// <summary>
/// The find encounter.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <param name="type">
/// The type.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
EncounterResource
>
FindEncounterAsync
(
int
appointmentId
,
InternalMedicine
type
);
/// <summary>
/// The add encounter async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddEncounterAsync
(
EncounterModifyModel
model
);
/// <summary>
/// The add encounter alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
AddEncounterAltAsync
(
EncounterModifyModel
model
);
/// <summary>
/// The update encounter async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateEncounterAsync
(
EncounterModifyModel
model
);
/// <summary>
/// The update encounter alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateEncounterAltAsync
(
EncounterModifyModel
model
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
InternalMedicineFullTranscriptModel
>
FindFullTranscriptAsync
(
int
appointmentId
);
/// <summary>
/// The fetch active medications.
/// </summary>
/// <param name="patientId">
/// The patient id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
MedicationsModel
>
FetchActiveMedications
(
int
patientId
);
/// <summary>
/// The fetch vitals.
/// </summary>
/// <param name="model">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
VitalsModel
>>
FetchVitals
(
EncounterFilterModel
model
);
/// <summary>
/// The get additional provider data async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
InternalMedicinePrescriptionModel
>
GetAdditionalProviderDataAsync
(
int
appointmentId
);
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IEncounterTemplateService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.EncounterTemplates
;
/// <summary>
/// The encounter template interface.
/// </summary>
public
interface
IEncounterTemplateService
{
/// <summary>
/// Inserts the or edit template asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertOrEditTemplateAsync
(
EncounterTemplateModel
model
);
/// <summary>
/// Fetches the templates asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
EncounterTemplateModel
>>
FetchTemplatesAsync
(
EncounterTemplateModel
model
);
}
}
Domain/Hims.Domian.Services/IEncounterTypeService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IEncounterTypeService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
EncounterTypeModel
>>
FetchAsync
(
EncounterTypeFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
EncounterTypeModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
Task
<
int
>
UpdateAsync
(
EncounterTypeModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="encounterTypeId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
encounterTypeId
);
/// <summary>
/// The get charge availability async.
/// </summary>
/// <param name="encounterTypeId">
/// The charge id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByEncounterTypeId
(
int
encounterTypeId
);
}
}
Domain/Hims.Domian.Services/IEncountersLogService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels
;
using
Hims.Shared.UserModels.Filters
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IEncountersLogService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
EncountersLogModel
>>
FetchAsync
(
EncountersLogModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
LogAsync
(
EncountersLogModel
model
);
/// <summary>
/// The get patient details.
/// </summary>
/// <param name="appointmentId">
/// The appointmentId.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
PatientModel
>
GetPatientDetails
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IEnumerate.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
internal
interface
IEnumerate
<
T
>
{
}
}
\ No newline at end of file
Domain/Hims.Domian.Services/IExcelUploadHistoryService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The excel upload history service interface.
/// </summary>
public
interface
IExcelUploadHistoryService
{
/// <summary>
/// The modify excel upload async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
ModifyExcelUploadAsync
(
ExcelUploadHistoryModel
model
);
/// <summary>
/// The fetch all async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
ExcelUploadHistoryModel
>>
FetchAllAsync
(
ExcelUploadHistoryModel
model
);
/// <summary>
/// The get single excel history.
/// </summary>
/// <param name="excelUploadHistoryId">
/// The excel upload history id.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
ExcelUploadHistoryModel
>
GetSingleExcelHistory
(
int
excelUploadHistoryId
);
}
}
Domain/Hims.Domian.Services/IExceptionLogService.cs
0 → 100644
View file @
d66408ab
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels.Filters
;
namespace
Hims.Domain.Services
{
/// <summary>
/// The Exception Log Service interface.
/// </summary>
public
interface
IExceptionLogService
{
/// <summary>
/// The invoke.
/// </summary>
/// <param name="userId">
/// The log From.
/// </param>
/// <param name="logRoute">
/// The log Route.
/// </param>
/// <param name="errorMessage">
/// The error Message.
/// </param>
/// <param name="errorDescription">
/// The error Description.
/// </param>
void
Invoke
(
string
userId
,
string
logRoute
,
string
errorMessage
,
string
errorDescription
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
Task
<
IEnumerable
<
ExceptionLogModel
>>
FetchAsync
(
ExceptionLogFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="exceptionLogId">
/// The model.
/// </param>
Task
<
int
>
ResolveAsync
(
int
exceptionLogId
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="exceptionLogId">
/// The model.
/// </param>
Task
<
IEnumerable
<
ExceptionLogModel
>>
GetMethodAsync
(
string
LogPath
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="exceptionLogId">
/// The model.
/// </param>
Task
<
IEnumerable
<
ExceptionLogModel
>>
GetLogRouteAsync
();
}
}
Domain/Hims.Domian.Services/IExportService.cs
0 → 100644
View file @
d66408ab
#
nullable
enable
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.UserModels.Exports
;
/// <summary>
/// The ExportService interface.
/// </summary>
public
interface
IExportService
{
/// <summary>
/// The fetch payments.
/// </summary>
/// <param name="fromDate">
/// The from Date.
/// </param>
/// <param name="toDate">
/// The to Date.
/// </param>
/// <param name="providerId">
/// The provider Id.
/// </param>
/// <param name="pageIndex">
/// The page Index.
/// </param>
/// <param name="pageSize">
/// The page Size.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
PaymentExportModel
>>
FetchPaymentsAsync
(
string
?
fromDate
,
string
?
toDate
,
int
?
providerId
,
int
pageIndex
,
int
pageSize
);
}
}
Domain/Hims.Domian.Services/IFeedbackDetailsService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IFeedbackDetailsService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FeedbackDetailsModel
>>
FetchAsync
(
FeedbackDetailsModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
FeedbackDetails
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
FeedbackDetails
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="bedId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
Id
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="bedId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FeedbackDetailsModel
>>
FindById
(
string
Id
);
}
}
Domain/Hims.Domian.Services/IFeedbackService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Feedback Service interface.
/// </summary>
public
interface
IFeedbackService
{
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="questionFeedbackId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
questionFeedbackId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
FeedbackModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddFeedbackQuestionAsync
(
FeedbackModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FeedbackModel
>>
FetchAsync
(
FeedbackFilterModel
model
);
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FeedbackModel
>>
FetchQuestionAsync
(
FeedbackFilterModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
FeedbackModel
model
);
}
}
Domain/Hims.Domian.Services/IFinalBillService.cs
0 → 100644
View file @
d66408ab
using
System
;
namespace
Hims.Domain.Services
{
using
System.ComponentModel.Design
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels.Common
;
using
Shared.UserModels.FinalBill
;
/// <summary> The ChatService interface.</summary>
public
interface
IFinalBillService
{
Task
<
int
>
UpdatePackageCompleteness
(
int
id
,
bool
isAdmission
,
bool
active
);
/// <summary>
///
/// </summary>
/// <returns></returns>
Task
<
int
>
GetDefaultChargeId
();
/// <summary>
/// Determines whether [is discharged asynchronous] [the specified model].
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
DateTime
?>
IsDischargedAsync
(
FilterModel
model
);
/// <summary>
/// Gets the basic asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
BasicViewModel
>
GetBasicAsync
(
FilterModel
model
);
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
ViewModel
>
FetchAsync
(
FilterModel
model
);
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Cancels the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
CancelAsync
(
FilterModel
model
);
/// <summary>
/// FetchFinalBillDetails Async
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
BasicModel
>
FetchFinalBillDetailsAsync
(
IdModel
model
);
Task
<
int
>
UpdatePackageActivity
(
int
id
,
bool
isAdmission
,
bool
active
);
}
}
Domain/Hims.Domian.Services/IFloorService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.Library
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IFloorService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
FloorModel
>>
FetchAsync
(
FloorFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
FloorModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
FloorModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="floorId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
floorId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="floorId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByFloorId
(
int
floorId
);
/// <summary>
/// to Fetch Verified Reports Query Entry
/// </summary>
Task
<
IEnumerable
<
Resource
>>
FetchFloorAsync
();
/// <summary>
/// Changes the status asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ChangeStatusAsync
(
FloorModel
model
);
}
}
Domain/Hims.Domian.Services/IGatePassService.cs
0 → 100644
View file @
d66408ab
using
System.Collections.Generic
;
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.UserModels.GataPass
;
/// <summary>
/// The CompanyService interface.
/// </summary>
public
interface
IGatePassService
{
/// <summary>
/// The insert company async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
InsertAsync
(
InsertModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
InsertModel
model
);
/// <summary>
/// Fetches the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
InsertModel
>
FetchAsync
(
InsertModel
model
);
}
}
Domain/Hims.Domian.Services/IGeneralAdviceService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Hims.Shared.UserModels.Filters
;
/// <summary>
/// The generalAdvice Service interface.
/// </summary>
public
interface
IGeneralAdviceService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
GeneralAdviceModel
>>
FetchAsync
(
GeneralAdviceFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
GeneralAdviceModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
GeneralAdviceModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="generalAdviceId">
/// The generalAdvice id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
generalAdviceId
);
/// <summary>
/// The get delete async in provider encounter.
/// </summary>
/// <param name="generalAdviceId">
/// The generalAdvice id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
updateProviderEncounterAsync
(
int
generalAdviceId
);
}
}
Domain/Hims.Domian.Services/IGeneralNotificationService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.UserModels
;
/// <summary>
/// The general notification service interface.
/// </summary>
public
interface
IGeneralNotificationService
{
/// <summary>
/// Adds the general notification asynchronous.
/// </summary>
/// <param name="generalNotification">The general notification.</param>
/// <returns></returns>
Task
<
int
>
AddGeneralNotificationAsync
(
GeneralNotificationModel
generalNotification
);
}
}
Domain/Hims.Domian.Services/IGeneticSpecialityEncounterService.cs
0 → 100644
View file @
d66408ab
using
Hims.Domain.Entities
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.Library.Enums
;
using
Hims.Shared.Library.Helpers
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
public
interface
IGeneticSpecialityEncounterService
{
/// <summary>
/// The add genetic speciality encounter async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
public
Task
<
int
>
AddAsync
(
GeneticSpecialityEncounterModel
model
);
/// <summary>
/// The update genetic speciality encounter async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
public
Task
<
int
>
UpdateAsync
(
GeneticSpecialityEncounterModel
model
);
/// <summary>
/// Finds the dashboard asynchronous.
/// </summary>
public
Task
<
GeneticSpecialityEncounterModel
>
FindDashboardAsync
(
GeneticSpecialityEncounterModel
model
);
/// <summary>
/// The update genetic speciality encounter async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
public
Task
<
int
>
CheckExisted
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IGynEncounterService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
Hims.Shared.Library.Helpers
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
/// <summary>
/// The InternalMedicineService interface.
/// </summary>
public
interface
IGynEncounterService
{
/// <summary>
/// Finds the asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
GynEncounterModel
>
FindAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// Finds the asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
GynEncounterModel
>
FindEncounterDataAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// The add internal medicine async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
AddAltAsync
(
GynEncounterModifyModel
model
);
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAltAsync
(
GynEncounterModifyModel
model
);
/// <summary>
/// Finds the dashboard asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="type">The type.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
GynEncounterResource
>
FindDashboardAsync
(
int
appointmentId
,
GynEncounterType
type
,
bool
isAdmission
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
GynEncounterFullTranscriptModel
>
FindFullTranscriptAsync
(
int
appointmentId
,
bool
isAdmission
);
/// <summary>
/// Gets the account based on appointment identifier.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
AppointmentModel
>
GetAccountBasedOnAppointmentId
(
long
appointmentId
,
bool
isAdmission
);
/// <summary>
/// The add anc card.
/// </summary>
/// <param name="model">
/// The anc model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddGYNCardAsync
(
GYNCardGenerationModel
model
,
string
locationId
);
/// <summary>
/// The fetch anc card.
/// </summary>
/// <param name="patientId">
/// The patient id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
GYNCardGenerationModel
>
FetchGynCardAsync
(
int
patientId
);
/// <summary>
/// Finds the asynchronous.
/// </summary>
/// <param name="appointmentId">The appointment identifier.</param>
/// <param name="isAdmission">if set to <c>true</c> [is admission].</param>
/// <returns></returns>
Task
<
GynEncounterResource
>
FindGyn
(
int
appointmentId
,
GynEncounterType
type
,
bool
isAdmission
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
FetchVisitNoAsync
(
int
patientId
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
getApppointmentId
(
int
appointmentId
,
bool
admission
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
getAptId
(
int
aptId
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
InsertCommonEncounter
(
CommonEncounterModel
model
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
UpdateCommonEncounter
(
CommonEncounterModel
model
);
Task
<
GynEncounterResource
>
FetchCommonEncounter
(
OBEncounterType
type
,
GynEncounterType
gynEncounterType
,
int
appointmentId
,
bool
isAdmission
);
Task
<
IEnumerable
<
Trial
>>
FetchCreatedDateNurseNoteReport
(
int
AdmissionId
);
Task
<
List
<
Trial
>>
FetchNurseNoteReport
(
int
AdmissionId
);
/// <summary>
/// The modify status.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
Task
<
int
>
ModifyGynEncounterStatus
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IHealthCardService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.UserModels
;
using
Shared.EntityModels
;
/// <summary>
/// The health card Service interface.
/// </summary>
public
interface
IHealthCardService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
HealthCardModel
model
);
/// <summary>
/// update asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
HealthCardModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
HealthCardModel
>>
FetchAllAsync
(
HealthCardModel
model
);
/// <summary>
/// Activates the or deactivate card.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateCard
(
HealthCardModel
model
);
/// <summary>
/// fetch all issued card.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
HealthCardHolderModel
>>
FetchAllIssuedCard
(
HealthCardHolderModel
model
);
/// <summary>
/// add new card.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
AddNewCardAsync
(
HealthCardHolderModel
model
);
/// <summary>
/// fetch card beneficiary.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PatientModel
>>
FetchCardBeneficiariesAsync
(
HealthCardHolderModel
model
);
/// <summary>
/// check health card.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
HealthCardHolderModel
>>
CheckHealthCardForPatient
(
HealthCardHolderModel
model
);
Task
<
IEnumerable
<
HealthCardHolderModel
>>
FetchPatientIssuedCard
(
int
PatientId
);
}
}
Domain/Hims.Domian.Services/IHomeopathyService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.Library
;
using
Shared.Library.Enums
;
using
Shared.UserModels
;
using
Hims.Shared.Library.Helpers
;
/// <summary>
/// The Homeopathy Service interface.
/// </summary>
public
interface
IHomeopathyService
{
/// <summary>
/// The add alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
AddAltAsync
(
HomeopathyEncounterModifyModel
model
);
/// <summary>
/// The update alt async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
CommonResponse
>
UpdateAltAsync
(
HomeopathyEncounterModifyModel
model
);
/// <summary> The fetch async.</summary>
/// <param name="appointmentId"> The appointment id.</param>
/// <param name="type"> The type.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
HomeopathyResource
>
FetchAsync
(
int
appointmentId
,
HomeopathyType
type
);
/// <summary>
/// The find async.
/// </summary>
/// <param name="homeopathyId">
/// The Homeopathy Id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
HomeopathyModel
>
FindAsync
(
int
homeopathyId
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
HomeopathyEncounterModifyModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
HomeopathyEncounterModifyModel
model
);
/// <summary>
/// The delete async.
/// </summary>
/// <param name="homeopathyId">
/// The homeopathy id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
homeopathyId
);
/// <summary>
/// The find full transcript async.
/// </summary>
/// <param name="appointmentId">
/// The appointment id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
HomeopathyFullTranscriptModel
>
FindFullTranscriptAsync
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IHwcPatientService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The hwc patient Service interface.
/// </summary>
public
interface
IHwcPatientService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
HwcPatientModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
HwcPatientModel
>>
FetchAllAsync
(
HwcPatientModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
HwcPatientModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
HwcPatientModel
model
);
}
}
Domain/Hims.Domian.Services/IIcdService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Hims.Shared.UserModels.Filters
;
/// <summary>
/// The ICDCode Service interface.
/// </summary>
public
interface
IIcdService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
ICDCodeModel
>>
FetchAsync
(
IcdCodeFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
ICDCodeModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
ICDCodeModel
model
);
/// <summary>The get delete async.</summary>
/// <param name="icdCodeId">The icd Code Id.</param>
/// <returns>The <see cref="Task"/>.</returns>
Task
<
int
>
DeleteAsync
(
int
icdCodeId
);
/// <summary>
/// The get delete async in provider encounter.
/// </summary>
/// <param name="icdCodeId">
/// The generalAdvice id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
updateProviderEncounterAsync
(
int
icdCodeId
);
}
}
Domain/Hims.Domian.Services/IIconService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
/// <summary> The ChatService interface.</summary>
public
interface
IIconService
{
/// <summary>
/// The add icons.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddIcons
(
IconsModel
model
);
/// <summary>
/// The fetch icons.
/// </summary>
/// <param name="pageSize">
/// The page size.
/// </param>
/// <param name="pageIndex">
/// The page index.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
IconsModel
>>
FetchIcons
(
int
pageSize
,
int
pageIndex
);
/// <summary>
/// The delete icons async.
/// </summary>
/// <param name="iconId">
/// The icon id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteIconsAsync
(
int
iconId
);
}
}
Domain/Hims.Domian.Services/IIdProofService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels
;
/// <summary>
/// The id proof Service interface.
/// </summary>
public
interface
IIdProofService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertAsync
(
IdProofModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
IdProofModel
>>
FetchAllAsync
(
IdProofModel
model
);
/// <summary>
/// Fetches all asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
IdProofModel
>>
FetchActiveAllAsync
(
IdProofModel
model
);
/// <summary>
/// Updates the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
UpdateAsync
(
IdProofModel
model
);
/// <summary>
/// Deletes the asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
DeleteAsync
(
IdProofModel
model
);
/// <summary>
/// Activates the or deactivate ware house.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ActivateOrDeactivateTest
(
IdProofModel
model
);
}
}
Domain/Hims.Domian.Services/IInPatientsViewService.cs
0 → 100644
View file @
d66408ab
using
Hims.Shared.UserModels.InPatientsView
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
namespace
Hims.Domain.Services
{
/// <summary>
/// The id proof Service interface.
/// </summary>
public
interface
IInPatientsViewService
{
/// <summary>
/// Inserts the asynchronous.
/// </summary>
/// <returns></returns>
Task
<
IEnumerable
<
FetchModel
>>
FetchAsync
(
PayloadModel
model
);
Task
<
IEnumerable
<
FetchBedsModel
>>
FetchBeds
(
PayloadBedsModel
model
);
}
}
Domain/Hims.Domian.Services/IIndentService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.EntityModels
;
using
Hims.Shared.UserModels
;
using
Hims.Shared.UserModels.OperationTheater
;
using
Hims.Shared.UserModels.PharmacyIndent
;
/// <summary>
/// The IndentService interface.
/// </summary>
public
interface
IIndentService
{
/// <summary>
/// The create indent request async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
CreateIndentRequestAsync
(
IndentRequestModel
model
);
/// <summary>
/// The delete indent request async.
/// </summary>
/// <param name="indentHeaderId">
/// The indent header id.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
DeleteIndentRequestAsync
(
int
indentHeaderId
);
/// <summary>
/// The delete indent request async.
/// </summary>
/// <param name="indentHeaderId">
/// The indent header id.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IndentFetchModel
>
FindProductNameAsyn
(
int
indentHeaderId
);
/// <summary>
/// Fetches the inventory indent asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
OTIndentModel
>>
FetchInventoryIndentAsync
(
OTIndentModel
model
);
/// <summary>
/// Fetches the inventory indent detail asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
ProductModel
>>
FetchInventoryIndentDetailAsync
(
OTIndentModel
model
);
/// <summary>
/// Adds the pharmacy department indent asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
long
>
AddPharmacyDepartmentIndentAsync
(
PharmacyDepartmentIndentHeaderModel
model
);
/// <summary>
/// Fetches the pharmacy department indent asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PharmacyDepartmentIndentHeaderModel
>>
FetchPharmacyDepartmentIndentAsync
(
PharmacyDepartmentIndentHeaderModel
model
);
/// <summary>
/// Fetches the indent details asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PharmacyDepartmentIndentDetailModel
>>
FetchIndentDetailsAsync
(
PharmacyDepartmentIndentDetailModel
model
);
/// <summary>
/// Approves the pharmacy department indent asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
long
>
ApprovePharmacyDepartmentIndentAsync
(
PharmacyDepartmentIndentHeaderModel
model
);
}
}
Domain/Hims.Domian.Services/IInitialVendorService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Domain.Entities
;
using
Hims.Shared.UserModels.Pharmacy
;
using
Shared.UserModels.Vendors
;
/// <summary>
/// The initial vendor Service interface.
/// </summary>
public
interface
IInitialVendorService
{
/// <summary>
/// Inserts the product request.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
InsertProductRequest
(
List
<
PharmacyProductRequestModel
>
model
);
/// <summary>
/// Fetches the raised products request.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PharmacyProductRequestModel
>>
FetchRaisedProductsRequest
(
PharmacyProductRequestModel
model
);
/// <summary>
/// Fetches the vendor purchase history asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
VendorPurchaseHistory
>
FetchVendorPurchaseHistoryAsync
(
PharmacyProductRequestModel
model
);
/// <summary>
/// Adds the product for approval asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
AddProductForApprovalAsync
(
VendorProductApprovalInsertModel
model
);
/// <summary>
/// Fetches the pending for final approval asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
VendorProductForApprovalDisplayModel
>>
FetchPendingForFinalApprovalAsync
(
VendorProductForApprovalDisplayModel
model
);
/// <summary>
/// Fetches the sended po asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
VendorViewModel
>>
FetchSendedPOAsync
(
VendorViewModel
model
);
/// <summary>
/// Fetches the vendor product details asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
VendorViewDetailModel
>>
FetchVendorProductDetailsAsync
(
VendorViewDetailModel
model
);
/// <summary>
/// Fetches the approved products for vendor asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
VendorViewDetailModel
>>
FetchApprovedProductsForVendorAsync
(
VendorViewDetailModel
model
);
/// <summary>
/// Adds the direct product asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
AddDirectProductAsync
(
VendorProductForApprovalModel
model
);
/// <summary>
/// Raises the po asynchronous.
/// </summary>
/// <param name="product">The product.</param>
/// <returns></returns>
Task
<
long
>
RaisePOAsync
(
VendorProductApprovalInsertModel
product
);
/// <summary>
/// Fetches the purchase order header asynchronous.
/// </summary>
/// <param name="poHeader">The po header.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PurchaseOrderHeaderModel
>>
FetchPurchaseOrderHeaderAsync
(
PurchaseOrderHeaderModel
poHeader
);
/// <summary>
/// Fetches the purchase order detail asynchronous.
/// </summary>
/// <param name="poDetail">The po detail.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PurchaseOrderDetailModel
>>
FetchPurchaseOrderDetailAsync
(
PurchaseOrderDetailModel
poDetail
);
/// <summary>
/// Fetches the only po number asynchronous.
/// </summary>
/// <param name="poNumber">The po number.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PurchaseOrderHeaderModel
>>
FetchOnlyPONumberAsync
(
string
poNumber
);
/// <summary>
/// Verifies the po complete status asynchronous.
/// </summary>
/// <param name="purchaseBillHeaderId">The purchase bill header identifier.</param>
/// <returns></returns>
Task
<
int
>
VerifyPOCompleteStatusAsync
(
int
purchaseBillHeaderId
);
/// <summary>
/// Approves the or reject requested product.
/// </summary>
/// <param name="pharmacyProductRequestId">The pharmacy product request identifier.</param>
/// <param name="isRejected">if set to <c>true</c> [is rejected].</param>
/// <param name="createdBy">The created by.</param>
/// <returns></returns>
Task
<
int
>
ApproveOrRejectRequestedProduct
(
long
pharmacyProductRequestId
,
bool
isRejected
,
int
createdBy
);
/// <summary>
/// Adds the product for quotation.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
long
>
AddProductForQuotation
(
VendorProductApprovalInsertModel
model
);
/// <summary>
/// Fetches the raised product for quotation asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
ProductForQuotationHeaderModel
>>
FetchRaisedProductForQuotationAsync
(
ProductForQuotationHeaderModel
model
);
/// <summary>
/// Fetches the raised product for quotation detail asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
ProductForQuotationDetailModel
>>
FetchRaisedProductForQuotationDetailAsync
(
ProductForQuotationDetailModel
model
);
/// <summary>
/// Modifies the inventory request asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ModifyInventoryRequestAsync
(
InventoryProductRequestModel
model
);
/// <summary>
/// Updates the document URL for inventory request asynchronous.
/// </summary>
/// <param name="request">The request.</param>
/// <returns></returns>
Task
<
int
>
UpdateDocumentUrlForInventoryRequestAsync
(
InventoryProductRequestModel
request
);
/// <summary>
/// Fetches the requested inventory product asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
IEnumerable
<
InventoryProductRequestModel
>>
FetchRequestedInventoryProductAsync
(
InventoryProductRequestModel
model
);
/// <summary>
/// Fetches the pending request count asynchronous.
/// </summary>
/// <returns></returns>
Task
<
int
>
FetchPendingRequestCountAsync
();
/// <summary>
/// Called when [update product in pending request asynchronous].
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
OnUpdateProductInPendingRequestAsync
(
InventoryProductRequestModel
model
);
/// <summary>
/// Called when [approve requested product asynchronous].
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
OnApproveRequestedProductAsync
(
InventoryProductRequestModel
model
);
/// <summary>
/// Called when [change supplier at final po asynchronous].
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
OnChangeSupplierAtFinalPOAsync
(
VendorProductForApprovalDisplayModel
model
);
/// <summary>
/// Fetches the purchase bill by po asynchronous.
/// </summary>
/// <param name="poDetail">The po detail.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PharmacyPurchaseDetail
>>
FetchPurchaseBillByPOAsync
(
PurchaseOrderDetailModel
poDetail
);
/// <summary>
/// Fetches the purchase header asynchronous.
/// </summary>
/// <param name="purchaseOrderHeaderId">The purchase order header identifier.</param>
/// <returns></returns>
Task
<
PharmacyPurchaseHeader
>
FetchPurchaseHeaderAsync
(
long
purchaseOrderHeaderId
);
/// <summary>
/// Fetches the purchase bill added by GRN asynchronous.
/// </summary>
/// <param name="purchaseOrderHeaderId">The purchase order header identifier.</param>
/// <returns></returns>
Task
<
IEnumerable
<
PurchaseBillHeaderModel
>>
FetchPurchaseBillAddedByGrnAsync
(
long
purchaseOrderHeaderId
);
}
}
Domain/Hims.Domian.Services/IInsuranceAdmissionService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
Domain.Entities
;
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.UserModels.Insurance
;
/// <summary>
/// The Insurance admission Service interface.
/// </summary>
public
interface
IInsuranceAdmissionService
{
/// <summary>
/// The add insurance for admission.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
AddInsuranceForAdmission
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The update insurance for admission.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
UpdateInsuranceForAdmission
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The update insurance for admission.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
UpdateInsuranceApproval
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The get insurance for admission.
/// </summary>
/// <param name="admissionId">
/// The admission id.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
InsuranceForAdmission
>
GetInsuranceForAdmission
(
int
admissionId
);
/// <summary>
/// The fetch all.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchAll
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The fetch all.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchAdmissionInsuranceApprovals
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The fetch all.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchAppointmentInsuranceApprovals
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The insert insurance timeline.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
InsertInsuranceTimeline
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The fetch all insurance timeline async.
/// </summary>
/// <param name="insuranceForAdmissionId">
/// The insurance for admission id.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchAllInsuranceTimelineAsync
(
int
insuranceForAdmissionId
);
/// <summary>
/// The add insurance for approvals.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
int
>
AddInsuranceApproval
(
AdmissionInsuranceModel
model
);
/// <summary>
/// The check insurance for approvals.
/// </summary>
/// <param name="admissionId"></param>
/// <param name="patientInsuranceId"></param>
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
InsuranceApproval
>
GetInsuranceAdmissionApproval
(
int
admissionId
,
int
patientInsuranceId
);
/// <summary>
/// The check insurance for approvals.
/// </summary>
/// <param name="appointmentId"></param>
/// <param name="patientInsuranceId"></param>
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
InsuranceApproval
>
GetInsuranceAppointmentApproval
(
int
appointmentId
,
int
patientInsuranceId
);
/// <summary>
/// The check insurance for approvals.
/// </summary>
/// <param name="admissionId"></param>
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchInsuranceApprovalsByAdmissionIdAysnc
(
int
admissionId
);
/// <summary>
/// The check insurance for approvals.
/// </summary>
/// <param name="appointmentId"></param>
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>
/// </returns>
Task
<
IEnumerable
<
AdmissionInsuranceModel
>>
FetchInsuranceApprovalsByAppointmentIdAysnc
(
int
appointmentId
);
}
}
Domain/Hims.Domian.Services/IInsuranceCompanyService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Insurance Company Service interface.
/// </summary>
public
interface
IInsuranceCompanyService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
InsuranceCompanyModel
>>
FetchAsync
(
InsuranceCompanyFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsuranceCompanyModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
InsuranceCompanyModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="insuranceCompanyId">
/// The insuranceCompany id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
insuranceCompanyId
);
/// <summary>
/// The modify status async.
/// </summary>
/// <param name="insuranceCompanyId">
/// The insuranceCompany id.
/// </param>
/// <param name="modifiedBy">
/// The modified By.
/// </param>
/// <param name="status">
/// The status.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
ModifyStatusAsync
(
int
insuranceCompanyId
,
int
modifiedBy
,
bool
status
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="insurenceCompanyId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByInsuranceId
(
int
insurenceCompanyId
);
}
}
Domain/Hims.Domian.Services/IInsuranceTemplateService.cs
0 → 100644
View file @
d66408ab
namespace
Hims.Domain.Services
{
using
System.Collections.Generic
;
using
System.Threading.Tasks
;
using
Hims.Shared.Library
;
using
Shared.EntityModels
;
using
Shared.UserModels.Filters
;
/// <summary>
/// The Coupon Service interface.
/// </summary>
public
interface
IInsuranceTemplateService
{
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
InsuranceTemplateModel
>>
FetchAsync
(
InsuranceTemplateFilterModel
model
);
/// <summary>
/// The add async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
AddAsync
(
InsuranceTemplateModel
model
);
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
///
/// <summary>
/// The update async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
UpdateAsync
(
InsuranceTemplateModel
model
);
/// <summary>
/// The get delete async.
/// </summary>
/// <param name="insuranceTemplateId">
/// The specialization id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
int
>
DeleteAsync
(
int
insuranceTemplateId
);
/// <summary>
/// The get provider availability async.
/// </summary>
/// <param name="insuranceTemplateId">
/// The provider id.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
string
>
FindNameByInsuranceTemplateId
(
int
insuranceTemplateId
);
// waste - we can use exsistent
/// <summary>
/// The fetch async.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
Task
<
IEnumerable
<
Resource
>>
FetchInsuranceTemplateAsync
(
InsuranceTemplateFilterModel
model
);
/// <summary>
/// Changes the status asynchronous.
/// </summary>
/// <param name="model">The model.</param>
/// <returns></returns>
Task
<
int
>
ChangeStatusAsync
(
InsuranceTemplateModel
model
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment