[#848] How to get the url of the uploaded files to Intake forms.

Migrated from Redmine #848 | Author: Usman Khan
Status: New | Priority: High, I’m very impatient | Created: 2022-03-03


We want to send documents to the EMR solutions with patient’s information.
This is how the API provides information about the uploaded documents in the google drive:

,
{
“field_name”: “Upload or Take Photo of Insurance (Front)”,
“field_type”: “cloud”,
“values”: [
“”
],
“field”: “3ba1130631da5b19dfcd1b5e6560a723”,
“value”: “Image.png”,
“file_hash”: “c3efb------****b3e”,
“id”: 13
},

Usman Khan wrote:

We have managed to use Google’s API to find the documents by name within a folder.
Now the problem is that in most of the cases the they upload documents with same name because google drive allows so.

when multiple documents are uploaded with the same name for a patient, then how to identify which document was uploaded against what question?

Redmine Admin wrote:

Unfortunately we do not offer API for this

Usman Khan wrote:

can file_hash help us in this case?
if yes, then what hashing type is used to calculate the file hash?

Usman Khan wrote:

Redmine Admin wrote:

Unfortunately we do not offer API for this

Can you let us know how you’re computing file_hash field?
that can really help us.

Redmine Admin wrote:

we are going to add API for this in next few weeks