patient forms
-
beacondental
- Posts: 141
- Joined: Wed Mar 15, 2023 8:43 am
patient forms
I would like to get patient forms that the patient has attached to his account (under Forms). How can I do this thru the API? Is there a GET function or short query that can pull the PDF document.
Re: patient forms
Use this workflow to download PDFs for a patient based on forms they filled out.
- Use Sheets GET with the PatNum of the desired patient.
- Results that have a DocNum > 0 have a document associated with them.
- Use Documents POST DownloadSftp to download each document.
-
beacondental
- Posts: 141
- Joined: Wed Mar 15, 2023 8:43 am
Re: patient forms
Using Documents POST DownloadSftp to download each document.
POST /sheets/DownloadSftp
{
"SheetNum": 50,
"SftpAddress": "MySftpSite/myUsername/Sheets/ExamSheetJones.pdf",
"SftpUsername": "myUsername",
"SftpPassword": "myPassword"
}
The error shows is :
400 Bad Request: ""Unable to save file. Connecting to MySftpSite has failed with user: myUsername\r\nNo connection could be made because the target machine actively refused it""
Note : Deliberately not written original credentials.
Can you help us with this ?
Thank you
POST /sheets/DownloadSftp
{
"SheetNum": 50,
"SftpAddress": "MySftpSite/myUsername/Sheets/ExamSheetJones.pdf",
"SftpUsername": "myUsername",
"SftpPassword": "myPassword"
}
The error shows is :
400 Bad Request: ""Unable to save file. Connecting to MySftpSite has failed with user: myUsername\r\nNo connection could be made because the target machine actively refused it""
Note : Deliberately not written original credentials.
Can you help us with this ?
Thank you
Re: patient forms
Hello beacondental,beacondental wrote: Tue Dec 09, 2025 4:12 am Using Documents POST DownloadSftp to download each document.
POST /sheets/DownloadSftp
{
"SheetNum": 50,
"SftpAddress": "MySftpSite/myUsername/Sheets/ExamSheetJones.pdf",
"SftpUsername": "myUsername",
"SftpPassword": "myPassword"
}
The error shows is :
400 Bad Request: ""Unable to save file. Connecting to MySftpSite has failed with user: myUsername\r\nNo connection could be made because the target machine actively refused it""
Note : Deliberately not written original credentials.
Can you help us with this ?
Thank you
The error means your SFTP server is refusing the connection. The API reached the host, but nothing is listening or accepting connections on the port you're using. Please verify the correct SFTP host, port, and that the SFTP service is running and reachable from your network.
Thanks!
-
beacondental
- Posts: 141
- Joined: Wed Mar 15, 2023 8:43 am
Re: patient forms
Okay. This helped.
Thank You Very Much
Thank You Very Much