client-py icon indicating copy to clipboard operation
client-py copied to clipboard

Demo example in the README doesn't work

Open bioteamMichael opened this issue 5 years ago • 4 comments

I just installed fhirclient for python3, and when I run the demo code and try to connect to https://fhir-open-api-dstu2.smarthealthit.org, it throws an error when I try to do the call to p.Patient.read():

ConnectionError: HTTPSConnectionPool(host='fhir-open-api-dstu2.smarthealthit.org', port=443): Max retries exceeded with url: /Patient/hca-pat-1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10b7458d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))

bioteamMichael avatar Jul 02 '20 13:07 bioteamMichael

Probably fixed by https://github.com/smart-on-fhir/client-py/pull/83

palfrey avatar Aug 04 '20 09:08 palfrey

Same problem, with pip install 17/Oct/2020. #83 not merged yet.

t2ac32 avatar Oct 17 '20 13:10 t2ac32

I tried and have same problem. Anyone can get demo example to work?

jeremyxia avatar Apr 15 '21 22:04 jeremyxia

I've just started working on https://github.com/pete88b/smart-on-fhir-client-py-demo to hopefully help people get started with the python FHIR client

pete88b avatar Apr 29 '21 15:04 pete88b