beda-software / fhir-py

FHIR Client for python
MIT License
177 stars 33 forks source link

Add support for reference string along with resource class for client methods #133

Closed ruscoder closed 2 months ago

ruscoder commented 2 months ago

Client methods get/patch/delete should accept reference string along with resource class because using fhir we often operate with reference.

Examples:

client.get('Patient/1000') - returns dict
client.get(Patient, '1000') - returns Patient
client.get(Patient, 'Patient/1000') - returns Patient
client.get(Patient, 'Practitioner/1000') - raises Exception