anv_fhir_test_list_patients: retrieve patients in a ResearchStudy [current limit 1000,...

View source: R/tests.R

anv_fhir_test_list_patientsR Documentation

retrieve patients in a ResearchStudy [current limit 1000, needs pagination]

Description

retrieve patients in a ResearchStudy [current limit 1000, needs pagination]

Usage

anv_fhir_test_list_patients(
  url = anvurl(),
  count_str = "1000",
  pyrefs = abfhir_demo(),
  as.json = FALSE
)

Arguments

url

character(1) URL for a store

count_str

character(1) '_count' value for 'where' in ResearchStudy

pyrefs

list of Module references (anvil, fhirclient)

as.json

logical(1) convert patient references to JSON before returning

Value

a list with two elements: first the title of the associated study, then the list of patients

Examples

xx = anv_fhir_test_list_patients(anvurl("public"))
names(xx)
xx$title
length(xx$pats)

vjcitn/AnvBiocFHIR documentation built on May 31, 2022, 10:39 a.m.