connect_smart | R Documentation |
use pyAnVIL/SMART python infrastructure to connect to FHIR server, producing instance of 'anvil.fhir.client.FHIRClient' (basilisk/reticulate python.builtin.object instance)
connect_smart(fhirclient, fhirurls = list(anvurl()), app_id = "my_app")
fhirclient |
from pyAnVIL and/or https://github.com/smart-on-fhir/client-py, assumed to be generated via 'abfhir_demo()' in anvil we use '$anvil$fhir$client$FHIRClient', populating the 'settings' field |
dem = abfhir_demo() sm = connect_smart(dem$anvil$fhir$client$DispatchingFHIRClient) # can handle list of stores sm$ready avail_resch = dem$fhirclient$models$researchstudy res = avail_resch$ResearchStudy$where(reticulate::py_dict("", ""))$perform_resources(sm$server) length(res) unlist(lapply(res[1:5], function(x) x$id))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.