API ReferenceapiclinicalPOST /v1/health-engine/score

POST /v1/health-engine/score

Service: clinical · operationId: (none)

Required scopes

(no scope declared — review service config)

Request body

{
  "type": "object",
  "properties": {
    "patient_id": {
      "type": "string",
      "minLength": 1
    },
    "brand_id": {
      "type": "string",
      "minLength": 1
    },
    "biomarker_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "patient_id",
    "brand_id"
  ]
}

Responses

200 Health score computed

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "patient_id": {
      "type": "string"
    },
    "brand_id": {
      "type": "string"
    },
    "overall_score": {
      "type": "number"
    },
    "domain_scores": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "biomarker_count": {
      "type": "number"
    },
    "computed_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "patient_id",
    "brand_id",
    "overall_score",
    "domain_scores",
    "biomarker_count",
    "computed_at"
  ]
}

412 Precondition failed (no biomarkers for patient)

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://clinical.platform.loop.health/v1/health-engine/score \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'