fhir_request | R Documentation |
A Wrapper for fhir_url
fhir_request(url, resource = NULL, parameters = NULL, url_enc = TRUE)
url |
The same as for |
resource |
The same as for |
parameters |
The same as for |
url_enc |
The same as for |
The same as for fhir_url()
.
#provide full FHIR search request
fhir_request(url = "http://hapi.fhir.org/baseR4/Patient?gender=male&_summary=count")
#provide base url and resource type
fhir_request(
url = "http://hapi.fhir.org/baseR4",
resource = "Patient"
)
#parameters in one string
fhir_request(
url = "http://hapi.fhir.org/baseR4",
resource = "Patient",
parameters = "gender=male&_summary=count"
)
#parameters as a named character
fhir_request(
url = "http://hapi.fhir.org/baseR4",
resource = "Patient",
parameters = c("gender" = "male", "_summary" = "count")
)
#parameters as a named list
fhir_request(
url = "http://hapi.fhir.org/baseR4",
resource = "Patient",
parameters = list("gender" = "male", "_summary" = "count")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.