This function retrieves a list of broken analytes for a given tenant_id. A broken analyte is an analyte that has one or more issues related to aliases, unit groups, default units, unit mismatches, or guideline link mismatches. The function sends a GET request to the specified API endpoint, processes the response, and returns a formatted list of broken analytes.

get_broken_analytes(tenant_id)

Arguments

tenant_id

The tenant identifier (ID) for which broken analytes should be retrieved.

Value

A list with 5 named elements, each containing a list of broken analytes for a specific issue:

  • AnalyteNoAlias- A list of analytes without an alias.

  • AnalyteNoApplicableUnitGroup- A list of analytes without an applicable unit group.

  • AnalyteNoDefaultUnit- A list of analytes without a default unit.

  • AnalyteUnitNotMatchUnitGroup- A list of analytes with units not matching their unit group.

  • AnalyteGuidelineLinkHaveMismatchedUnitGroup- A list of analytes with guideline links having mismatched unit groups.

Examples

  # Retrieve broken analytes for a tenant with ID 12345
  result <- get_broken_analytes(12345)