Diseases

Returns the dictionary of diseases used in Ornament.

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

Request example

curl --location 'https://api.ornament.health/thesaurus-api/public/v1.0/diseases' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{"lang":"EN"}'

Request body

{
  "lang": "EN"
} 

Body parameters

NameTypeRequiredDescription
langstringYesLanguage used for disease titles. Example: EN.

Supported languages: EN, DE, ES, PT, RU.

Response

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

Top-level response schema

FieldTypeRequiredDescription
needToUpdatebooleanYesIndicates whether the client should refresh its cached diseases dictionary.
diseasesarray of objectsYesList of disease definitions.
digeststringYesDictionary version hash. Can be used to detect changes. For more details, see the Digest documentation.

Disease object schema

Each element in the diseases array describes one disease.

FieldTypeRequiredDescription
diseaseIdintegerYesUnique disease identifier.
titlestringYesDisease title in the requested language.
minProbabilitynumberYesMinimum probability threshold used by the Ornament platform.
minRawScorenumberYesMinimum raw score threshold used by the Ornament platform.
partIdintegerYesIdentifier of the related body part or system.
biomarkersarray of integersYesList of biomarker IDs associated with the disease.
directBiomarkersarray of integersYesList of biomarker IDs directly associated with the disease (used by the Ornament platform).
isPaidintegerYesPaid access flag used by the Ornament platform.
articleIdintegerNoIdentifier of an article or content record (Ornament wiki) associated with the disease.
isDiseaseHealthConditionbooleanYesIndicates whether the entry is treated as a disease health condition in the platform.

Notes

  • This method returns only thesaurus data as used in Ornament.
  • It does not return actual user medical data or diagnosed conditions.
  • Biomarker IDs in biomarkers and directBiomarkers can be resolved using the biomarkers thesaurus method.
  • To check whether the diseases dictionary has changed, you can use the digest field.
  • If you already store a previously received digest, you can use it in the same way as described in the Digest documentation to determine whether a refresh is needed.
Body Params

Diseases Request data

string
required
length between 2 and 2

Localisation language name, 2 letters

string

Biomarkers hexdigest

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