I’m uploading documents using the
/api/patient/99185485-1eb9-4154-8f09-cbc468fb024c/document?path=test endpoint. Storing the Document works. At least i get a 200 response with ‘true’ back.
My problem is however twofold:
- The files does not show up in the UI under the test category (the test category is present).
- When i use
/api/patient/99185485-1eb9-4154-8f09-cbc468fb024c/document?path=testendpoint to retrieve the patient documents again, i get a 404.
The query that is being used is
" SELECT doc.url, doc.id, doc.mimetype, doc.docdate FROM documents doc JOIN categories_to_documents ctd on ctd.document_id = doc.id WHERE ctd.category_id = ? and doc.foreign_id = ? and doc.deleted = 0". Where categoryId is the categoryID and foreignID is the $pid. However if i look in the database, this foreignId is not stored.
Is this a bug or am i doing something wrong?
I’m using OpenEMR version latest
I’m using postman
I’m using macOS
Did you search the forum for similar questions?
Did you check the logs? Yes
Was there anything pertinent in them? no