I completed the final part of automating a system of forms for UCSF Neurotrauma Department at San Francisco General Hospital. Every patient seen by Neurotrauma requires a Completed Consult form which provides their initial assessment upon entry to the hospital with a head injury.
The electronic form using Filemaker was completed last year and every day or two Consults are printed to PDFs and copied to a folder on the DPH (Dept. Public Health) server for integration with their Hospital Envision system. The entry is now all electronic and paperless and the final part is now automated with Applescript and Filemaker
When printed, one or more PDFs of the Consults are written to specific folder which triggers an AppleScript that:
- Mounts the folder on the DPH server
- Copies the file(s) to the designated folder
- Triggers a system that adds the PDF to their hospital electronic record
- Next, the file(s) are moved to a CompletedConsults folder on the user’s computer leaving the system clear for the next time.
Below are screen grabs of the AppleScript and Filemaker scripts that run the system. Always fun to do a little Applescripting.