-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-count queries? #6
Comments
This is a little late, but hopefully this can help anyone else who runs into this. The filtering should be done using the fda_filter function. The code below recreates that query:
The fda_search() function is used to select which specific field you want. So if you wanted the first 5 results from the patientonsetage field, you would use the following:
|
Hello, Quick question, when I run the following: https://api.fda.gov/device/event.json?search=device.device_report_product_code:CAW&limit=1 in https://open.fda.gov/apis/device/event/example-api-queries/, it gives me the correct result: However, when I formulate the query using the openfda wrapper:
I get the following error: [1] "No operation defined (try fda_count or fda_search)!" Can you please let me know me what I am doing wrong in terms of formulation of query. I am trying to search for device adverse events using a product code "CAW" (which is for Oxygen Concentrater). |
You should just need to add either fda_count or fda_search to the pipe, like so:
|
Hello, Thank you so much, I have the following query running:
|
Hello, I am trying to get all the records/reports reported from a period of 20180101 to 20190101 fro product code CAW (Oxygen Concentrator). Currently I have the following query setup:
The following is reported as fetched: I do see a dataframe, however, my question is how do I simply get all the reports between a time period without hardcoding the fda_limit(100). I have tried removing fda_limit() and simply using fda_search(). But that only returns 1 record/row. Is there a way to get all the reports within a time span. |
I am trying to duplicate one of the non-count examples from the openfda webpage.
However, when I try to do this same query with the R package all I get is
NULL
Did I miss something here?
The text was updated successfully, but these errors were encountered: