允许与canary轻松集成的python客户端库
canarymd的Python项目详细描述
python库为canary health提供了一个接口 API地址canary.md。
tl;dr
安装:
$ pip install canarymd
使用:
importcanarymdclient=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()forpatientinpatients],'provider':provider.toHL7(),'type':'new','reason':'us/namcs:5035.0','policy':policy.toHL7(),},},timeout=30,).content# now do something with the HTML messages!
TOdo:添加文档