Package: nhsbsa 0.1.0

nhsbsa: Client for the NHS Business Services Authority Open Data Portal

A low-level client for the National Health Service Business Services Authority (NHSBSA) Open Data Portal <https://opendata.nhsbsa.net>, a 'CKAN' data catalogue. Provides thin wrappers around the portal's API actions for listing datasets, retrieving metadata, querying the datastore and downloading resource files. Results are returned as plain data (tibbles and lists) for the caller to interpret.

Authors:Alasdair Warwick [aut, cre, cph]

nhsbsa_0.1.0.tar.gz
nhsbsa_0.1.0.zip(r-4.7-any)nhsbsa_0.1.0.zip(r-4.6-any)nhsbsa_0.1.0.zip(r-4.5-any)
nhsbsa_0.1.0.tgz(r-4.6-any)nhsbsa_0.1.0.tgz(r-4.5-any)
nhsbsa_0.1.0.tar.gz(r-4.7-any)nhsbsa_0.1.0.tar.gz(r-4.6-any)
nhsbsa_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nhsbsa/json (API)

# Install 'nhsbsa' in R:
install.packages('nhsbsa', repos = c('https://rmgpanw.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rmgpanw/nhsbsa/issues

Pkgdown/docs site:https://rmgpanw.github.io

On CRAN:

Conda:

4.60 score 4 scripts 287 downloads 11 exports 24 dependencies

Last updated from:eba21be983. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK123
source / vignettesOK172
linux-releaseOK119
macos-releaseOK132
macos-oldrelOK169
windows-develOK79
windows-releaseOK87
windows-oldrelOK72
wasm-releaseOK96

Exports:nhsbsa_datastore_searchnhsbsa_datastore_search_sqlnhsbsa_download_resourcenhsbsa_group_listnhsbsa_list_resourcesnhsbsa_organization_listnhsbsa_package_listnhsbsa_package_searchnhsbsa_package_shownhsbsa_resource_shownhsbsa_tag_list

Dependencies:askpassclicurldplyrgenericsgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangstringistringrsystibbletidyselectutf8vctrswithr

Getting started with nhsbsa
The NHSBSA Open Data Portal | The API and the response envelope | What the package wraps | Working with the returned objects | From the portal website to the API | A worked example | Find a dataset | Inspect a dataset's resources | Download a resource file | Query rows without downloading the whole file | Ways to query datastore data | Reading rows with nhsbsa_datastore_search() | Filtering and aggregating with SQL

Last update: 2026-07-18
Started: 2026-06-27

Developer guide
Design goals | Architecture | The core request layer (R/core.R) | Conditions (R/conditions.R) | Return-type conventions | Which actions are wrapped | Adding a new endpoint | Testing | Offline tests with recorded fixtures | Offline tests with mocked responses | Live tests | Checks before a pull request

Last update: 2026-06-27
Started: 2026-06-27

Readme and manuals

Help Manual

Help pageTopics
Search a resource's rowsnhsbsa_datastore_search
Query a resource with SQLnhsbsa_datastore_search_sql
Download a resource filenhsbsa_download_resource
List dataset groupsnhsbsa_group_list
List a dataset's resources as a tibblenhsbsa_list_resources
List publishing organisationsnhsbsa_organization_list
List available datasetsnhsbsa_package_list
Search datasetsnhsbsa_package_search
Show a dataset's metadatanhsbsa_package_show
Show a resource's metadatanhsbsa_resource_show
List tagsnhsbsa_tag_list
Methods for nhsbsa objectsas_tibble.nhsbsa_package as_tibble.nhsbsa_package_search nhsbsa-methods print.nhsbsa_package print.nhsbsa_package_search print.nhsbsa_resource