Orion Health · Capability

Orion Health Population Health API — Risk Stratification

Orion Health Population Health API — Risk Stratification. 2 operations. Lead operation: Orion Health List patient risk scores. Self-contained Naftiko capability covering one Orion business surface.

Run with Naftiko OrionRisk Stratification

What You Can Do

GET
Listriskscores — Orion Health List patient risk scores
/v1/risk-stratification/scores
GET
Getpatientriskscore — Orion Health Get risk score for a patient
/v1/risk-stratification/scores/{patientid}

MCP Tools

orion-health-list-patient-risk

Orion Health List patient risk scores

read-only idempotent
orion-health-get-risk-score

Orion Health Get risk score for a patient

read-only idempotent

Capability Spec

population-health-risk-stratification.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Orion Health Population Health API — Risk Stratification
  description: 'Orion Health Population Health API — Risk Stratification. 2 operations. Lead operation: Orion Health List
    patient risk scores. Self-contained Naftiko capability covering one Orion business surface.'
  tags:
  - Orion
  - Risk Stratification
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ORION_API_KEY: ORION_API_KEY
capability:
  consumes:
  - type: http
    namespace: population-health-risk-stratification
    baseUri: https://api.orionhealth.com/population-health
    description: Orion Health Population Health API — Risk Stratification business capability. Self-contained, no shared references.
    resources:
    - name: risk-stratification-scores
      path: /risk-stratification/scores
      operations:
      - name: listriskscores
        method: GET
        description: Orion Health List patient risk scores
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: patientId
          in: query
          type: string
          description: Filter by patient identifier
        - name: model
          in: query
          type: string
          description: Risk model used for scoring
        - name: riskLevel
          in: query
          type: string
          description: Filter by risk level
        - name: calculatedAfter
          in: query
          type: string
          description: Only return scores calculated after this date
    - name: risk-stratification-scores-patientId
      path: /risk-stratification/scores/{patientId}
      operations:
      - name: getpatientriskscore
        method: GET
        description: Orion Health Get risk score for a patient
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: patientId
          in: path
          type: string
          required: true
        - name: model
          in: query
          type: string
          description: Risk model to use
    authentication:
      type: bearer
      token: '{{env.ORION_API_KEY}}'
  exposes:
  - type: rest
    namespace: population-health-risk-stratification-rest
    port: 8080
    description: REST adapter for Orion Health Population Health API — Risk Stratification. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/risk-stratification/scores
      name: risk-stratification-scores
      description: REST surface for risk-stratification-scores.
      operations:
      - method: GET
        name: listriskscores
        description: Orion Health List patient risk scores
        call: population-health-risk-stratification.listriskscores
        with:
          patientId: rest.patientId
          model: rest.model
          riskLevel: rest.riskLevel
          calculatedAfter: rest.calculatedAfter
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/risk-stratification/scores/{patientid}
      name: risk-stratification-scores-patientid
      description: REST surface for risk-stratification-scores-patientId.
      operations:
      - method: GET
        name: getpatientriskscore
        description: Orion Health Get risk score for a patient
        call: population-health-risk-stratification.getpatientriskscore
        with:
          patientId: rest.patientId
          model: rest.model
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: population-health-risk-stratification-mcp
    port: 9090
    transport: http
    description: MCP adapter for Orion Health Population Health API — Risk Stratification. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: orion-health-list-patient-risk
      description: Orion Health List patient risk scores
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: population-health-risk-stratification.listriskscores
      with:
        patientId: tools.patientId
        model: tools.model
        riskLevel: tools.riskLevel
        calculatedAfter: tools.calculatedAfter
      outputParameters:
      - type: object
        mapping: $.
    - name: orion-health-get-risk-score
      description: Orion Health Get risk score for a patient
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: population-health-risk-stratification.getpatientriskscore
      with:
        patientId: tools.patientId
        model: tools.model
      outputParameters:
      - type: object
        mapping: $.