hi @jfuenmayor, sure, rough outline:
- add the pubpid to the patient_data table, might have to redo your demo import
- extract the documents into the /tmp directory and make sure webserver can read from there
- create a script that reads the provided document file
- while reading each line in the csv grab the pubpid and filename, modified to point to
/tmp - grab the
pidfrom thepubpidin thepatient_datatable to be used next - use the document class or document service to add the file to the pt’s chart