Biomarkers V1.1

Returns the biomarker dictionary and its metadata

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this method to retrieve the biomarker dictionary, including:

  • names
  • synonyms
  • categories
  • biomaterials
  • optional linked content
  • supported units and conversion factors

This method returns only thesaurus data as used in Ornament. It does not return actual digitized lab results. You can use this dictionary to interpret digitized data responses, for example to resolve biomarker IDs and understand their corresponding names, categories, and supported units.

Request body

{
  "lang": "EN"
}

Body parameters

NameTypeRequiredDescription
langstringYesLanguage used for biomarker titles and synonyms. Supported values: EN,DE, ES, PT,RU EN+ES — English title, Spain and English synonyms. EN — English title, English synonyms. Example: EN.

Request example

curl --request POST \
  --url 'https://api.ornament.health/thesaurus-api/public/v1.1/biomarkers' \
  --header 'Content-Type: application/json' \
  --data '{
    "lang": "EN"
  }'

Response

Returns an object with updated metadata and the list of biomarkers.

Top-level response schema

FieldTypeRequiredDescription
needToUpdatebooleanYesIndicates whether the client should refresh its cached dictionary.
digeststringYesDictionary version hash. Can be used to detect changes.
biomarkersarray of objectsYesList of biomarker definitions.

Notes

To check whether the biomarker list has changed, you can use the digest field returned by this method.

On the next request, send the previously received digest in the request body together with lang. If the biomarker dictionary has not changed, the response will contain needToUpdate: false, so you can keep using your cached version. If it has changed, the API will return the updated biomarker list together with a new digest value for future checks. For more details, see the Digest documentation.


Top-level response example

{
  "needToUpdate": true,
  "digest": "968C5841EA26D2E7B38FFE56FC828600ECA8CD27967303FF24BEDF661A8A4F4E",
  "biomarkers": [
    {
      "id": 0,
      "title": "Anion Gap",
      "synonyms": [
        {
          "title": "Agap",
          "language": "EN"
        }
      ],
      "possibleValueMax": 25000000.0,
      "possibleValueMin": 3000000.0,
      "isAllowAutounit": true,
      "biomaterialId": 1,
      "displayCategoryId": 16,
      "pregnancyCorrelation": 0,
      "sortOrder": 3505,
      "isPaid": true,
      "unitsFactors": [
        [27, 1000000.0],
        [30, 1000000.0]
      ],
      "isUnitless": false
    }
  ]
}

Biomarker object schema

Each element in the biomarkers array describes one biomarker.

FieldTypeRequiredDescription
idintegerYesUnique biomarker identifier.
titlestringYesBiomarker display name in the requested language.
synonymsarrayYesAlternative names for matching and display.
possibleValueMaxnumberNoMaximum supported value in the system default unit.
possibleValueMinnumberNoMinimum supported value in the system default unit.
isAllowAutounitbooleanYesWhether automatic unit recognition / conversion is supported.
biomaterialIdintegerYesIdentifier of the biomaterial associated with the biomarker.
substanceIdintegerNoIdentifier of the related substance, when applicable.
displayCategoryIdintegerYesCategory identifier for grouping. Matches category id from /biomarker-categories.
pregnancyCorrelationintegerYesPregnancy-related correlation flag used by the platform.
sortOrderintegerNoSort position for displaying biomarkers.
isPaidbooleanYesWhether the biomarker is treated as premium in the Ornament platform.
articleIdintegerNoIdentifier of an article or content record (Ornament wiki) associated with the biomarker.
unitsFactorsarray of [unitId, factor] pairsYesSupported units and their conversion factors relative to the default system unit.
isUnitlessbooleanYesWhether the biomarker does not require a unit.

synonyms object schema

FieldTypeRequiredDescription
titlestringYesSynonym text.
languagestringYesSynonym language.

unitsFactors schema

unitsFactors is an array of arrays:

[
  [unitId, factor]
] 

Where:

PositionTypeDescription
0integerUnit identifier.
1numberConversion factor for that unit.

Notes on unitsFactors

  • A biomarker may support multiple units.
  • Each supported unit is represented by its unitId.
  • The numeric factor is used to convert between the platform default unit and the target unit.
  • To resolve the unit name, symbol, or metadata, use the corresponding measurement units dictionary endpoint.

Example biomarker

{
  "id": 1,
  "title": "ALT",
  "synonyms": [
    {
      "title": "Alanine aminotransferase",
      "language": "EN"
    },
    {
      "title": "GPT",
      "language": "EN"
    },
    {
      "title": "Glutamic Pyruvate Transaminase",
      "language": "EN"
    }
  ],
  "possibleValueMax": 1500.0,
  "possibleValueMin": 0.0,
  "isAllowAutounit": true,
  "biomaterialId": 2,
  "displayCategoryId": 16,
  "pregnancyCorrelation": 0,
  "sortOrder": 3896,
  "isPaid": true,
  "articleId": 1,
  "unitsFactors": [
    [8, 1.0],
    [10, 60000000.0],
    [13, 60.0],
    [52, 1.0],
    [127, 0.06],
    [128, 0.06],
    [129, 60.0],
    [130, 1000.0],
    [131, 0.0166667],
    [132, 16.6667]
  ],
  "isUnitless": false
}
Body Params

Biomarkers Request data

string
required
length between 2 and 5

Localisation language name (or a combination of languages)

string

Biomarkers hexdigest

boolean
Defaults to false

Return limited biomarkers list (LIMITED_MARKERS_LIST)

Responses

400

Bad request

404

Not found

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json