naftiko: 1.0.0-alpha2 info: label: Orion Health Population Health API — Alerts description: 'Orion Health Population Health API — Alerts. 2 operations. Lead operation: Orion Health List population health alerts. Self-contained Naftiko capability covering one Orion business surface.' tags: - Orion - Alerts 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-alerts baseUri: https://api.orionhealth.com/population-health description: Orion Health Population Health API — Alerts business capability. Self-contained, no shared references. resources: - name: alerts path: /alerts operations: - name: listalerts method: GET description: Orion Health List population health alerts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: patientId in: query type: string - name: type in: query type: string - name: priority in: query type: string - name: status in: query type: string - name: alerts-alertId path: /alerts/{alertId} operations: - name: updatealert method: PUT description: Orion Health Update an alert outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: alertId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ORION_API_KEY}}' exposes: - type: rest namespace: population-health-alerts-rest port: 8080 description: REST adapter for Orion Health Population Health API — Alerts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/alerts name: alerts description: REST surface for alerts. operations: - method: GET name: listalerts description: Orion Health List population health alerts call: population-health-alerts.listalerts with: patientId: rest.patientId type: rest.type priority: rest.priority status: rest.status outputParameters: - type: object mapping: $. - path: /v1/alerts/{alertid} name: alerts-alertid description: REST surface for alerts-alertId. operations: - method: PUT name: updatealert description: Orion Health Update an alert call: population-health-alerts.updatealert with: alertId: rest.alertId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: population-health-alerts-mcp port: 9090 transport: http description: MCP adapter for Orion Health Population Health API — Alerts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: orion-health-list-population-health description: Orion Health List population health alerts hints: readOnly: true destructive: false idempotent: true call: population-health-alerts.listalerts with: patientId: tools.patientId type: tools.type priority: tools.priority status: tools.status outputParameters: - type: object mapping: $. - name: orion-health-update-alert description: Orion Health Update an alert hints: readOnly: false destructive: false idempotent: true call: population-health-alerts.updatealert with: alertId: tools.alertId body: tools.body outputParameters: - type: object mapping: $.