Get Hilfsmittel product group details
Usage
hilfsmittel_produktgruppe(
id,
safe = TRUE,
refresh = FALSE,
flatten = FALSE,
flatten_mode = "json"
)Arguments
- id
Produktgruppe id.
- safe
Logical; if
TRUE(default), apply rate-limiting and cache GET responses totools::R_user_dir("bunddev", "cache").- refresh
Logical; if
TRUE, ignore cached responses and re-fetch from the API (defaultFALSE).- flatten
Logical; if
TRUE, simplify nested list columns according toflatten_mode. DefaultFALSEkeeps list columns as-is.- flatten_mode
How to handle list columns when
flatten = TRUE:"drop"Remove list columns entirely. Use when nested data is not needed.
"json"Convert each list element to a JSON string. Preserves all data in a text-queryable format. This is the default.
"unnest"Expand list columns into multiple rows via
tidyr::unnest_longer(). Warning: this can significantly increase the number of rows.
Value
A tibble with one row for the requested product group and columns:
- id
Character. Product group identifier.
- versionId
Character. Internal version identifier.
- bezeichnung
Character. Product group name.
- nummer
Integer. Product group number.
- definition
Character. Description text.
- indikation
Character. Indication text.
- querverweis
Character. Cross-reference to other groups.
- isNnElement
Logical. Internal flag (usage unclear).
- sachbearbeiterGkvId
Character. GKV case-worker identifier.
- sachbearbeiterGkv
Character. Always
NA.- sachbearbeiterMdsId
Character. MDS case-worker identifier.
- sachbearbeiterMds
Character. Always
NA.- aufnahmeDatum
Character. Admission date (ISO-8601).
- aenderungsDatum
Character. Last-modified date (ISO-8601).
- veroeffentlichungsDokumentFileStoreId
Character. Publication document id.
- merkblattFileStoreId
Character. Always
NA.- isCollectionReviewable
Logical. Internal flag (usage unclear).
- aufnahmeDatum_time
POSIXct. Parsed admission date (Europe/Berlin).
- aenderungsDatum_time
POSIXct. Parsed last-modified date (Europe/Berlin).
Details
Returns details for a product group (Produktgruppe). API documentation: https://github.com/bundesAPI/hilfsmittel-api.
Examples
if (FALSE) { # \dontrun{
tree <- hilfsmittel_tree(level = 1)
hilfsmittel_produktgruppe(tree$id[[1]])
} # }