I have an invoicing software developed in Python, I would like to save the receipt in the patients emr file. Is it as simple as saving the file in the patients directory in the /documents/ {patient_pid} folder?
Is there a better solution for this?
I have an invoicing software developed in Python, I would like to save the receipt in the patients emr file. Is it as simple as saving the file in the patients directory in the /documents/ {patient_pid} folder?
Is there a better solution for this?
No. I don’t think it’s that simple. You need to create a category in Admin/Practice/Practice Settings/Documents Categories. Then you should see the categories, categories_seq, categories_to_documents, and documents tables. That gives you an idea.
Regards.
Luis.
I see, would you happen to know how to generate the Hash in the documents table?
Hi @amrit_padda, you could use the API or make a call to the document class and look at some examples in the codebase for how to save them.