canarymd 0.1.0
Latest version
Released:
A python client library that allows easy integration with Canary
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT (http://opensource.org/licenses/MIT))
- Author: Philip J Grabner, Canary Health Inc
- Tags canary , health , python , client , library , rest
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
The canarymd python library offers an interface to the Canary Health API at canary.md.
TL;DR
Install:
$ pip install canarymd
Use:
import canarymd
client = canarymd.Client(principal='{USERNAME}', credential='{PASSWORD}')
html = client.select(
context = '{CONTEXT}',
peo = {
'transport' : canarymd.Transport.SITE,
'purpose' : canarymd.Purpose.PREPARE,
'recipient' : recipient.toHL7(),
'appointment' : {
'time' : '2014-12-02T18:20:06Z',
'patients' : [patient.toHL7() for patient in patients],
'provider' : provider.toHL7(),
'type' : 'new',
'reason' : 'us/namcs:5035.0',
'policy' : policy.toHL7(),
},
},
timeout = 30,
).content
# now do something with the HTML messages!
TODO: add documentation
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT (http://opensource.org/licenses/MIT))
- Author: Philip J Grabner, Canary Health Inc
- Tags canary , health , python , client , library , rest
Classifiers
- Development Status
- Environment
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic