Skip to main content

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.

Google Analytics

Project details


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 hashes)

Uploaded source

Built Distribution

openemr-0.1.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page