Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

This library will allow you to interact with CarePoint using Python.

Project Description

[![Build Status](](
[![Coveralls Status](](
[![Codecov Status](](

Python CarePoint Library

This library will allow you to interact with CarePoint using Python.

For the most part, it just provides some convenience wrappers to encapsulate
all of the tables within one object/session for easy use.

Most of the methods return SQLAlchemy ResultProxies.


To install this module, you need to:

* Utilize a system able to access all CarePoint network resources (database, SMB)
* This includes things like DNS entries for the NETBIOS names
* Setup UnixODBC -
* Install UnixODBC development headers - `apt-get install unixodbc-dev`
* Install dependencies - `pip install -r requirements.txt`
* Install library - `pip install .`


* Create an Active Directory user
* Give AD user permissions to CarePoint images and data net shares
* Give AD user read & write permissions on the following databases:
* cph
* grx_master


### Connect to Database server

from carepoint import Carepoint

cp = Carepoint(

### Perform a search for a patient with the last name Smith

res =
{'lname': 'Smith'},
for row in res:
print row.fname

### Perform a patient search, but only return the `mname` column

res =
{'lname': 'Smith'},
for row in res:
print row.mname

### Get patients modified in 2015

res =
'chg_date': {
'<=': '2015-12-31',
'>=': '2015-01-01',
for row in res:
print row.fname

### Get image using SMB path from database

cp = Carepoint(**opts)
img_rec =['FdbImg']).first()
image_file = cp.get_file(img_rec.IMAGE_PATH)
image_data =

Known Issues / Road Map

* More usage samples
* A decent amount of models are missing
* Create documentation of models
* Add some basic validations
* Create a column type that will retrieve file from SMB path in DB
* Better SMB support (allow ftimes, dir list, caching)
* FDB images only serve from store ID 1's net share
* Having to pass the model to the Carepoint object is annoying, objectify the syntax

Bug Tracker

Bugs are tracked on [Github Issues](>).
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, please help us to smash it by providing detailed and welcomed feedback.


* Dave Lasley <>
* Vinnie Corcoran <>


[![LasLabs Inc.]( "LasLabs Inc.")](

This module is maintained by [LasLabs Inc.](


Release History

History Node


History Node


History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(32.0 kB) Copy SHA256 Hash SHA256
Source None Oct 25, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting