deschel wrote on Sunday, May 11, 2014:
Most EMR providers (both commercial and OpenEMR) talk about receiving faxes for their EMR from an eFAX service. There are two significant problems with this. eFAX services can get expensive if you have high volume Faxing as many physician offices have. And, most important, eFAX services send fax via email in a non-encrypted manner – huge HIPAA issue!
What I would like to do in my office, is something that I think most offices would need/want to do:
I would like to have a linux box with Hylafax installed and connected to a modem to receive Faxes over the telephone line. Then, have this linux box send faxes to and from OpenEMR over the internet hosted in the cloud. And, of course, do this in an encrypted manner.
After review of Rod’s Fax code, it looks like OpenEMR does not really fully support this. It looks like it only fully supports Hylafax if it is on the same server that OpenEMR is on. Let me know if I am wrong!
The current code does allow you to access a remote host with the FAXSTAT command. However, it does not do this with the SENDFAX command. Therefore, you can send to a remote host but not receive. Also, you will need to figure out what ports FAXSTAT uses so that you can open them on your router.
Additionally, the current code accesses the fax images from local directories an not remote ones. I guess that you could create NFS mounts/shared directories to access the directories on a remote server, but then this adds a lot of complicated work that could be avoided if the feature were built in to OpenEMR.
I would like to get feedback about the viability of my proposal on how I would implement this.
There are a couple of possible approaches that I could take. The following one is the easiest:
(1) Communicate with the Fax server via SSH protocol.
(2) Transfer files via sFTP.
This has the advantages of allowing you to directly communicate with the fax server in an encrypted manner and that we would not have to do any big changes to the current code.
(3) If the server is remote, access it using the PHP commend ssh2_exec. (Currently, it uses the PHP command exec.) See: http://php.net/manual/en/function.ssh2-exec.php.
(4) Rather than worrying about creating remote mounts, we can access the remote Hylafax directories (that contain the FAX images) by sending and receiving files using the PHP command ssh2_sftp (See: http://php.net/manual/en/function.ssh2-sftp.php.)
What do people think about this?
Is SSH a realistic option? Are there security issues with allowing SSH access from OpenEMR to the remote linux box? Will it be OK to open the SSH ports to the router? Should SSH be routed via a nonstandard SSH port in case other machines in the office need to be accessed via SSH?
Is sFTP a secure method for transferring files? Or, should FTP with SSL be used?
David Eschelbacher MD