README.md

fhiRclient

R-CMD-check

R FHIR client based on the python fhirclient library with more features.

Major feature:

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)
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
res <- Search(ct, "observation", "Observation",
              list(code = "http://loinc.org|2339-0"), page = "all")
browseVignettes("fhiRclient")
ShinyDemo()


qhu75/fhiRclient documentation built on Dec. 31, 2020, 2:11 a.m.