Comments (1)
This is probably too late to help, but your problem was that you were looking at Medication, not MedicationRequest. Medication is not tied to patients, and some EHRs like Cerner don't let you search/bulk-export them, only request them by ID.
MedicationRequest is the patient-oriented version. So if you do:
from fhirclient.models.medicationrequest import MedicationRequest
search = MedicationRequest.where(struct={'patient': patient.id, 'status': 'active'})
medOrders = search.perform_resources(smart.server)
That should work for you.
from client-py.
Related Issues (20)
- auth.py - call to token endpoint still seems to use the deprecated implicit grant flow HOT 2
- server.py:request data always produces 'NoneType' object is not iterable
- Provider Portal Launch Support? HOT 1
- description is not a required field for Conformance HOT 3
- How to make use of meta.lastUpdated to get a list of patients that were updated after a certain timestamp ? HOT 1
- What if elementProperties returns dictionary but not list? HOT 2
- fhirsearch _include reference_field where search parameter is renamed HOT 1
- Bundles are not being posted to the base API path HOT 1
- Question - Any thoughts on using pydantic for models? HOT 2
- error fetching HAPI open FHIR R4 server?
- Is this project dead? HOT 4
- cant run throwing Error HOT 1
- Docs site could use some love HOT 1
- CI should have some sort of linting
- R5 Support
- Handle R4 reference server not returning valid FHIR
- FHIRDateTime does not check expected format of input string properly HOT 4
- package level imports causing failures during pip install HOT 2
- Iterable support in FHIRSearch HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from client-py.