Clinia
API ReferenceREST API

Get resolution report

GET
/v1/patients/{patientId}/resolution

Returns the fact-resolution report for a patient: a paginated list of persisted facts of every fact type with their provenance traces, source contributions, field-level conflict resolutions, and merge confidence scores. Summary counts always cover the full graph, not just the returned page.

Path Parameters

patientId*string

ID of the patient

Match^[A-Za-z0-9._-]{1,128}$

Query Parameters

page?|

Zero-indexed page of facts to return. Defaults to 0.

Default0
Range0 <= value
perPage?integer

Number of facts per page. Defaults to 100; maximum is 1000.

Default100
Range1 <= value <= 1000

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/patients/patient-123/resolution"
{
  "summary": {
    "totalFacts": 0,
    "totalEvents": 0,
    "mergedFacts": 0,
    "warningCount": 0,
    "loadMs": 0
  },
  "meta": {
    "total": 0,
    "page": 0,
    "perPage": 0
  },
  "facts": [
    {
      "id": "string",
      "type": "string",
      "display": "string",
      "provenance": {
        "resolvedBy": "string",
        "confidence": 0,
        "reasoning": "string",
        "sources": [
          {
            "origin": "string",
            "type": "string",
            "reliability": 0
          }
        ],
        "conflicts": [
          {
            "field": "string",
            "values": [
              {
                "value": "string",
                "source": "string",
                "date": "string"
              }
            ],
            "winner": "string",
            "strategy": "string",
            "explanation": "string"
          }
        ]
      }
    }
  ],
  "warnings": [
    {
      "source": "string",
      "id": "string",
      "message": "string",
      "severity": "string"
    }
  ],
  "error": "string"
}
{
  "code": 1,
  "type": "ALREADY_EXISTS",
  "message": "string"
}