Doctorlink has joined HealthHerohealthheroLearn More
doctorlink

Risk Output

Example request

GET /api/v1/{tenantId}/reports/{traversalId}/risks
  ?ages=80&ages=90
  &conclusions=3495&conclusions=3501

Parameters

ParameterDescription
tenantIdThe tenant ID, usually the same as the client_id used for authentication
traversalIdID of a completed HRA traversal
agesAges for which to calculate the risks, e.g. ages=80&ages=90 will calculate risks by the ages of 80 and 90, respectively
conclusionsIDs of conclusions selected from the checkableConclusions array (see below). If present, the API will calculate the risks as if the user had implemented the specified recommendations.

Example response

{
    "age": 38,
    "ageAtDeath": 85,
    "minimumAgeAtDeath": 91,
    "healthAge": 35,
    "minimumHealthAge": 29,
    "averageLifeExpectancy": 82,
    "maximumLifeExpectancy": 91,
    "gender": "F",
    "risks": [
        {
            "name": "Breast cancer",
            "time": 42,
            "current": 9.69,
            "minimum": 6.57
        },
        {
            "name": "Breast cancer",
            "time": 52,
            "current": 14.29,
            "minimum": 9.77
        },
        {
            "name": "Bowel cancer",
            "time": 42,
            "current": 1.84,
            "minimum": 1.21
        },
        {
            "name": "Bowel cancer",
            "time": 52,
            "current": 2.53,
            "minimum": 1.67
        },
        {
            "name": "Death",
            "time": 42,
            "current": 35.35,
            "minimum": 20.5
        },
        {
            "name": "Death",
            "time": 52,
            "current": 72.15,
            "minimum": 48.96
        },
        {
            "name": "Diabetes",
            "time": 42,
            "current": 15.14,
            "minimum": 8.34
        },
        {
            "name": "Diabetes",
            "time": 52,
            "current": 18.39,
            "minimum": 10.22
        },
        {
            "name": "Heart disease",
            "time": 42,
            "current": 6.1,
            "minimum": 3.05
        },
        {
            "name": "Heart disease",
            "time": 52,
            "current": 11.18,
            "minimum": 5.67
        },
        {
            "name": "Lung cancer",
            "time": 42,
            "current": 0.17,
            "minimum": 0.17
        },
        {
            "name": "Lung cancer",
            "time": 52,
            "current": 0.35,
            "minimum": 0.35
        },
        {
            "name": "Stroke",
            "time": 42,
            "current": 2.22,
            "minimum": 1.95
        },
        {
            "name": "Stroke",
            "time": 52,
            "current": 4.06,
            "minimum": 3.57
        }
    ],
    "checkableConclusions": [
        3497,
        10076,
        3505,
        ...
    ]
}

Definitions

RiskOutput

PropertyDescription
ageThe user's actual age
ageAtDeathThe user's predicted age at death
minimumAgeAtDeathThe user's predicted age at death, if all the recommendations are implemented
healthAgeThe user's health age, calculated as age + averageLifeExpectancy - ageAtDeath
minimumHealthAgeThe user's health age, if all the recommendations are implemented
averageLifeExpectancyThe average life expectancy for a person of this age and gender
maximumLifeExpectancyThe maximum life expectancy for a person of this age and gender, if all recommendations are implemented
genderThe user's gender: "M" for male, "F" for female, "U" for other/unknown
risksArray of Risk objects (see below), one for each risk/timescale combination
checkableConclusionsArray of assetIds of conclusions (recommendations) that may affect the calculations if implemented. A list of the conclusions attached to the traversal should be requested from the conclusions endpoint of the Traversal API. See the conclusions documentation for more details.

Risk

PropertyDescription
nameName of the risk
timeThe timescale, in years from now
currentPercentage probability of the risk occurring within the given timescale
minimumPercentage probability of the risk occurring within the given timescale, if all recommendations are implemented