patient forms

For requests or help with our API
Post Reply
beacondental
Posts: 141
Joined: Wed Mar 15, 2023 8:43 am

patient forms

Post by beacondental »

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.
SLeon
Posts: 603
Joined: Mon Mar 01, 2021 10:00 am

Re: patient forms

Post by SLeon »

Use this workflow to download PDFs for a patient based on forms they filled out.
You could also use Documents GET (multiple) to get all the docnums for the desired patient. These would include forms, as well as other files, you could download.
beacondental
Posts: 141
Joined: Wed Mar 15, 2023 8:43 am

Re: patient forms

Post by beacondental »

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
justine
Posts: 341
Joined: Tue Dec 28, 2021 7:59 am

Re: patient forms

Post by justine »

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
Hello beacondental,

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

Post by beacondental »

Okay. This helped.

Thank You Very Much
Post Reply