An OpenEMR api connector
Project description
OpenEMR api connector in python
install
pip install openemr
Example login to the api from your project
import openemr
from os import getenv
# login to OpenEMR and pull in data
try:
emrUsername = str(getenv('EMRUSER'))
emrPassword = str(getenv('EMRPASS'))
baseUrl = str(getenv('BASE_URL'))
emr = openemr.Client(client_user=emrUsername, client_pass=emrPassword, url=str(baseUrl + "/apis/api"))
patients = emr._patient_search()
except:
exit("failed to login to OpenEMR, check the ENV vars")
Stability?
It's really stable it has been running production for about a 6 months on version 0.1.1
I use it to send out SMS appointment reminders to clients.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openemr-0.1.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file openemr-0.1.2.tar.gz
.
File metadata
- Download URL: openemr-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff64f5b4971ed4862b9d0e2ad2a1ed3a562f62de60bca6976a563801bbd11d91 |
|
MD5 | ca4c145510c6428c23c45017ee87fd69 |
|
BLAKE2b-256 | 9f36789b0e3661ebd83749e4560ff347270ae43a7ff6fe0c10919631ac986e6a |
File details
Details for the file openemr-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: openemr-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6d0f8f9b3091d1afe5b90399ca3bfd5c22b7deeece9480ee559185a5dcea3d |
|
MD5 | 9e354ed1844a612d6808ace9a3c072ed |
|
BLAKE2b-256 | 12410855e3b0480ca71b81383b093abff4613812c0f174e3a570b499384b4dfd |