Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HIMSScannerService
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
HIMSScanner
HIMSScannerService
Commits
e89870e9
Commit
e89870e9
authored
Jun 09, 2025
by
Krishna Reddy Tamatam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FOr v2.0 host
parent
a51e4ea1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
21 deletions
+58
-21
FTPManagementAPIController.cs
Controllers/FTPManagementAPIController.cs
+51
-17
FTPInfo.cs
Models/FTPInfo.cs
+6
-3
Program.cs
Program.cs
+1
-1
FTPDataAdapter.cs
Services/FTPDataAdapter.cs
+0
-0
No files found.
Controllers/FTPManagementAPIController.cs
View file @
e89870e9
...
...
@@ -51,6 +51,23 @@ namespace FTP_Services.Services.Controllers
}
}
[
HttpGet
(
"GetSearchedHistoryPatients"
)]
public
IActionResult
GetSearchedHistoryPatients
(
string
SearchText
,
int
ProviderId
,
int
LocationId
,
int
DateType
,
string
StartDate
,
string
EndDate
)
{
log
.
Debug
(
"GetSearchedPatients ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
// List<SearchPatients>? RequestsList = adapter.SearchedPatientsData(SearchText);
List
<
object
>?
RequestsList
=
adapter
.
SearchedPatientsHistoryData
(
SearchText
,
ProviderId
,
LocationId
,
DateType
,
StartDate
,
EndDate
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
"Fail to get data for search patients - Error:"
+
ex
.
Message
);
return
NotFound
(
"No results"
);
}
}
[
HttpGet
(
"GetSearchedPatients"
)]
public
IActionResult
GetSearchedPatients
(
string
SearchText
,
int
ProviderId
,
int
LocationId
,
int
DateType
,
string
StartDate
,
string
EndDate
,
int
DischType
)
{
...
...
@@ -69,6 +86,23 @@ namespace FTP_Services.Services.Controllers
}
}
[
HttpGet
(
"GetAdmissionDataHistory"
)]
public
IActionResult
GetAdmissionDataHistory
(
int
PatientID
,
int
LocationID
,
int
ProviderID
,
int
DateType
,
string
StartDate
,
string
EndDate
)
{
log
.
Debug
(
"GetAdmissionDataHistory ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
GetAdmissionDataHistory
(
PatientID
,
LocationID
,
ProviderID
,
DateType
,
StartDate
,
EndDate
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
"Fail to get data for GetAdmissionDataHistory - Error:"
+
ex
.
Message
);
return
NotFound
(
"No results"
);
}
}
[
HttpGet
(
"GetAdmissionData"
)]
public
IActionResult
GetAdmissionData
(
int
PatientID
,
int
LocationID
,
int
ProviderID
,
int
DateType
,
string
StartDate
,
string
EndDate
,
int
DischType
)
{
...
...
@@ -86,35 +120,35 @@ namespace FTP_Services.Services.Controllers
}
}
[
HttpGet
(
"LoadPhysicians"
)]
public
IActionResult
GetLoadPhysicians
(
int
LocationId
)
public
IActionResult
GetLoadPhysicians
(
int
LocationId
,
Boolean
IsOldData
)
{
log
.
Debug
(
"LoadPhysicians ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
GeLoadPhysicians
(
LocationId
);
List
<
object
>?
RequestsList
=
adapter
.
GeLoadPhysicians
(
LocationId
,
IsOldData
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
"Fail to get data for
Admissio
ns - Error:"
+
ex
.
Message
);
log
.
Error
(
"Fail to get data for
GetLoadPhysicia
ns - Error:"
+
ex
.
Message
);
return
NotFound
(
"No results"
);
}
}
[
HttpGet
(
"GetLocations"
)]
public
IActionResult
GetLocations
(
Boolean
IsLoadAll
)
//int LocationId,
public
IActionResult
GetLocations
(
Boolean
IsLoadAll
,
Boolean
IsOldData
)
//int LocationId,
{
log
.
Debug
(
"GetLocations ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
LoadLocations
(
IsLoadAll
);
//LocationId,
List
<
object
>?
RequestsList
=
adapter
.
LoadLocations
(
IsLoadAll
,
IsOldData
);
//LocationId,
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
"Fail to get data for
search patient
s - Error:"
+
ex
.
Message
);
log
.
Error
(
"Fail to get data for
GetLocation
s - Error:"
+
ex
.
Message
);
return
NotFound
(
"No results"
);
}
}
...
...
@@ -199,7 +233,7 @@ namespace FTP_Services.Services.Controllers
return
NotFound
(
"No results"
);
}
}
[
HttpGet
(
"GetProcedures"
)]
[
HttpGet
(
"GetProcedures"
)]
public
IActionResult
GetProcedures
()
{
log
.
Debug
(
"GetProcedures ==> "
);
...
...
@@ -272,13 +306,13 @@ namespace FTP_Services.Services.Controllers
}
[
HttpGet
(
"GetPatientDocuments"
)]
public
IActionResult
GetPatientDocuments
(
int
SPatientID
,
int
SLocationID
,
int
SAppointmentID
,
int
SAdmissionID
,
int
SDocID
,
string
SDueFrom
,
string
SDueTO
)
public
IActionResult
GetPatientDocuments
(
int
SPatientID
,
int
SLocationID
,
int
SAppointmentID
,
int
SAdmissionID
,
int
SDocID
,
string
SDueFrom
,
string
SDueTO
)
{
log
.
Debug
(
"GetPatientDocuments ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
PatientDocuments
(
SPatientID
,
SLocationID
,
SAppointmentID
,
SAdmissionID
,
SDocID
,
SDueFrom
,
SDueTO
);
List
<
object
>?
RequestsList
=
adapter
.
PatientDocuments
(
SPatientID
,
SLocationID
,
SAppointmentID
,
SAdmissionID
,
SDocID
,
SDueFrom
,
SDueTO
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
...
...
@@ -305,13 +339,13 @@ namespace FTP_Services.Services.Controllers
}
}
[
HttpGet
(
"GetAdmissionDischargeData"
)]
public
IActionResult
GetAdmissionDischargeData
(
int
SndAdmissionID
)
public
IActionResult
GetAdmissionDischargeData
(
int
SndAdmissionID
,
int
SndIsOldData
)
{
log
.
Debug
(
"GetPatientAdmissions ==> "
);
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
List
<
object
>?
RequestsList
=
adapter
.
AdmissionDischargeData
(
SndAdmissionID
);
List
<
object
>?
RequestsList
=
adapter
.
AdmissionDischargeData
(
SndAdmissionID
,
SndIsOldData
);
return
Ok
(
RequestsList
);
}
catch
(
Exception
ex
)
...
...
@@ -338,13 +372,13 @@ namespace FTP_Services.Services.Controllers
// }
[
HttpPost
(
"UpdateImageCategory"
)]
public
int
UpdateImageCategory
(
int
sndPatDocId
,
int
sndDocTypeId
,
int
sndUserID
)
public
int
UpdateImageCategory
(
int
sndPatDocId
,
int
sndDocTypeId
,
int
sndUserID
)
{
int
savedCount
=
0
;
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
savedCount
=
adapter
.
UpdateImageCategory
(
sndPatDocId
,
sndDocTypeId
,
sndUserID
);
savedCount
=
adapter
.
UpdateImageCategory
(
sndPatDocId
,
sndDocTypeId
,
sndUserID
);
}
catch
(
Exception
ex
)
{
...
...
@@ -354,7 +388,7 @@ namespace FTP_Services.Services.Controllers
}
[
HttpPost
(
"UpdateImageSortNo"
)]
public
int
UpdateImageSortNo
([
FromBody
]
PatientImgDocSort
PatImgDoc
)
public
int
UpdateImageSortNo
([
FromBody
]
PatientImgDocSort
PatImgDoc
)
{
int
savedCount
=
0
;
try
...
...
@@ -418,7 +452,7 @@ namespace FTP_Services.Services.Controllers
return
StatusCode
(
500
,
"Internal server error"
);
}
}
...
...
@@ -567,14 +601,14 @@ namespace FTP_Services.Services.Controllers
// }
[
HttpPost
(
"DeletePatientDocument"
)]
public
string
DeletePatientDocument
(
int
DocumentID
,
int
UserID
)
public
string
DeletePatientDocument
(
int
AdmissionId
,
int
DocumentID
,
int
UserID
,
int
SndIsOldData
)
{
log
.
Debug
(
"DeletePatientDocument ==> "
);
string
DeletePT
=
""
;
try
{
FTPDataAdapter
adapter
=
new
FTPDataAdapter
(
_appSettings
);
DeletePT
=
adapter
.
DeletePatientDocumentData
(
DocumentID
,
UserID
);
DeletePT
=
adapter
.
DeletePatientDocumentData
(
AdmissionId
,
DocumentID
,
UserID
,
SndIsOldData
);
}
catch
(
Exception
ex
)
{
...
...
Models/FTPInfo.cs
View file @
e89870e9
...
...
@@ -16,7 +16,7 @@ namespace FTP_Services.Core.Models
public
string
UploadedDate
{
get
;
set
;
}
public
int
AdmissionID
{
get
;
set
;
}
public
int
SortNo
{
get
;
set
;
}
public
int
IsOldData
{
get
;
set
;
}
public
PatientDocumentDetailsModel
()
{
...
...
@@ -33,7 +33,8 @@ namespace FTP_Services.Core.Models
PatDocId
=
0
;
UploadedDate
=
""
;
AdmissionID
=
0
;
SortNo
=
1
;
SortNo
=
1
;
IsOldData
=
1
;
}
}
...
...
@@ -260,7 +261,7 @@ namespace FTP_Services.Core.Models
public
int
AdmissionTypeId
{
get
;
set
;
}
public
DateTime
?
DischargeDate
{
get
;
set
;
}
//public int DischargeTypeId { get; set; }
public
string
DischargeType
{
get
;
set
;
}
public
string
DischargeType
{
get
;
set
;
}
public
string
Cause
{
get
;
set
;
}
public
int
UserId
{
get
;
set
;
}
public
bool
IsWardChanged
{
get
;
set
;
}
...
...
@@ -271,6 +272,8 @@ namespace FTP_Services.Core.Models
public
List
<
ProcedureModel
>
Procedures
{
get
;
set
;
}
public
string
Diagnosis
{
get
;
set
;
}
public
string
MRD_OtherProcedures
{
get
;
set
;
}
public
int
IsOldData
{
get
;
set
;
}
}
// Supporting Models
...
...
Program.cs
View file @
e89870e9
...
...
@@ -138,7 +138,7 @@ if (app.Environment.IsDevelopment())
}
else
{
app
.
Run
();
//For Test Site
//
app.Run(); //For Test Site
app
.
Run
(
"http://*:4708"
);
// For Production
//app.Run("http://*:4709"); // For Admin
...
...
Services/FTPDataAdapter.cs
View file @
e89870e9
This diff is collapsed.
Click to expand it.
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