Scoring systems
The scoringSystems field lives under result and houses one or more scoring models for the identified pathology. These models come into play when the likelihood of the most probable conclusion surpasses a certain threshold, and they are used to estimate the severity of that condition.
"scoringSystems": [
{
"scoringSystem": {
"name": "Acne lesion estimation grading index",
"code": "alegi"
},
"score": {
"value": 8,
"severity": {
"value": 1,
"interpretations": [
{
"min": 0.0,
"max": 0.0,
"text": "None",
"coding": [
{
"code": 1,
"display": "low"
}
]
},
...
]
}
},
"reduction": null,
"facets": [
{
"facet": {
"name": "Acne lesion density",
"description": ""
},
"value": {
"display": "None (0)",
"raw": 0
}
},
...
],
"explainabilityMedia": {
"url": "https://bucket/diagnostic-report-medias/explainability/aaa.png"
}
}
]
Scoring system identifier​
In each scoring system:
scoringSystemincludes the name and code of the scoring methodology.codeis a camelCase identifier (e.g.alegi,apasiLocal,pasiLocal,scoradLocal,ihs4Local,hiscr,dlqi). Match on the exact camelCase string; do not assume SCREAMING_SNAKE_CASE.
Naming pattern:
Localsuffix: the scoring system runs on a single body-site image.Globalsuffix: the scoring system aggregates across all body sites for the same encounter.a-prefix (e.g.apasiLocal,ascoradLocal,aihs4Local): AI-computed variants of the parent scoring system.
The complete list of supported scoring systems for a given pathology, together with their facet questionnaires, can be fetched from a public, unauthenticated endpoint:
GET https://medical-device-params.legit.health/v2.0/questionnaires?pathology=<ICD-11 code>
Pass the ICD-11 code of the pathology of interest as the pathology query parameter (e.g. EA90 for Psoriasis). The response is an array of objects describing each scoring system applicable to that pathology, with the following fields:
identifier: the camelCase scoring-system code emitted underscoringSystem.code(e.g.apasiLocal,pure4).code: short identifier used internally by the severity-assessment endpoint (e.g.apasi,pure4).mode:"local"or"global".path: the severity-assessment endpoint path.title,description: multilingual objects keyed by locale (en_GB,es_ES, ...).questionnaire: an array of facet objects, each withcode,name(multilingual),description(multilingual), andinput(type, min/max, options). These correspond to the facets emitted underfacets[]in the diagnostic-report response.
Use this endpoint as the source of truth: the catalog of scoring systems can grow over time.
Score, severity and facets​
score.valueindicates the calculated score according to the system's rules. Can benullif the score could not be computed.score.severity.value: integer severity code. One of1(low),2(moderate),3(high), ornullwhen the scoring system has no severity band for this body site or locale. The English string label is exposed underscore.severity.interpretations[].coding[0].display("low","moderate","high"); the localized BAND label (such as"None","Mild","Moderate","Severe","Grade 1","Stage 0") is exposed underscore.severity.interpretations[].text.score.severity.interpretationsis an array describing every severity band defined for this scoring system at the relevant body site and locale. Each entry contains:min: lower bound (inclusive) of the score range that maps to this band.max: upper bound of the score range that maps to this band.text: human-friendly label for the band (translated), e.g."Mild","Moderate","Severe".coding[]: machine-readable severity coding for the band, with each entry exposing acodeanddisplay.
reduction: object (ornull) describing automatic score reductions (for example, lesion-density adjustments). Most scoring systems returnnullhere.facetsis an array of facets used in score calculation, with each object containing the facet's information and the corresponding raw and displayed values.explainabilityMedia: an object with a singleurlfield. The object is always emitted;urlisnullwhen the scoring system did not produce an annotated overlay. When present,urlis a signed S3 URL to a heatmap or bounding-box image explaining how the score was produced.