fhiRclient
R interface to the FHIR standards for healthcare data
fhiRclient
R FHIR client based on the python fhirclient
library with more features.
Major feature:
- All CRUD function.
- Constructor for Resource data models.
- Search and bundle sets in tidy.
Installation
Install the latest python library fhirclient
first.
pip install git+https://github.com/smart-on-fhir/client-py.git
You can install the released version of fhiRclient from github with:
## install.packages("fhiRclient")
devtools::install_github("qhu75/fhiRclient")
Example
library(fhiRclient)
- Read
ct <- Client(app_id = "my_app", api_base = "https://r4.smarthealthit.org") pt <- Patient(list(id = "326b4675-0bc8-4dbd-b406-a5564c282401")) ct %>% Read(pt) %>% as_json %>% as_json_tbl
- Search
res <- Search(ct, "observation", "Observation", list(code = "http://loinc.org|2339-0"), page = "all")
- More examples
browseVignettes("fhiRclient")
- Shiny demo
ShinyDemo()