naftiko: 1.0.0-alpha2 info: label: Orion Health Population Health API — Analytics description: 'Orion Health Population Health API — Analytics. 3 operations. Lead operation: Orion Health Get population summary analytics. Self-contained Naftiko capability covering one Orion business surface.' tags: - Orion - Analytics 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-analytics baseUri: https://api.orionhealth.com/population-health description: Orion Health Population Health API — Analytics business capability. Self-contained, no shared references. resources: - name: analytics-population-summary path: /analytics/population-summary operations: - name: getpopulationsummary method: GET description: Orion Health Get population summary analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: registryId in: query type: string description: Filter to a specific registry - name: periodStart in: query type: string - name: periodEnd in: query type: string - name: analytics-utilization path: /analytics/utilization operations: - name: getutilizationanalytics method: GET description: Orion Health Get utilization analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: registryId in: query type: string - name: cohortId in: query type: string - name: periodStart in: query type: string - name: periodEnd in: query type: string - name: groupBy in: query type: string description: Group results by time period - name: cohorts-cohortId-analytics path: /cohorts/{cohortId}/analytics operations: - name: getcohortanalytics method: GET description: Orion Health Get cohort analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cohortId in: path type: string required: true - name: metrics in: query type: string description: Comma-separated list of metrics to include - name: periodStart in: query type: string - name: periodEnd in: query type: string authentication: type: bearer token: '{{env.ORION_API_KEY}}' exposes: - type: rest namespace: population-health-analytics-rest port: 8080 description: REST adapter for Orion Health Population Health API — Analytics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/population-summary name: analytics-population-summary description: REST surface for analytics-population-summary. operations: - method: GET name: getpopulationsummary description: Orion Health Get population summary analytics call: population-health-analytics.getpopulationsummary with: registryId: rest.registryId periodStart: rest.periodStart periodEnd: rest.periodEnd outputParameters: - type: object mapping: $. - path: /v1/analytics/utilization name: analytics-utilization description: REST surface for analytics-utilization. operations: - method: GET name: getutilizationanalytics description: Orion Health Get utilization analytics call: population-health-analytics.getutilizationanalytics with: registryId: rest.registryId cohortId: rest.cohortId periodStart: rest.periodStart periodEnd: rest.periodEnd groupBy: rest.groupBy outputParameters: - type: object mapping: $. - path: /v1/cohorts/{cohortid}/analytics name: cohorts-cohortid-analytics description: REST surface for cohorts-cohortId-analytics. operations: - method: GET name: getcohortanalytics description: Orion Health Get cohort analytics call: population-health-analytics.getcohortanalytics with: cohortId: rest.cohortId metrics: rest.metrics periodStart: rest.periodStart periodEnd: rest.periodEnd outputParameters: - type: object mapping: $. - type: mcp namespace: population-health-analytics-mcp port: 9090 transport: http description: MCP adapter for Orion Health Population Health API — Analytics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: orion-health-get-population-summary description: Orion Health Get population summary analytics hints: readOnly: true destructive: false idempotent: true call: population-health-analytics.getpopulationsummary with: registryId: tools.registryId periodStart: tools.periodStart periodEnd: tools.periodEnd outputParameters: - type: object mapping: $. - name: orion-health-get-utilization-analytics description: Orion Health Get utilization analytics hints: readOnly: true destructive: false idempotent: true call: population-health-analytics.getutilizationanalytics with: registryId: tools.registryId cohortId: tools.cohortId periodStart: tools.periodStart periodEnd: tools.periodEnd groupBy: tools.groupBy outputParameters: - type: object mapping: $. - name: orion-health-get-cohort-analytics description: Orion Health Get cohort analytics hints: readOnly: true destructive: false idempotent: true call: population-health-analytics.getcohortanalytics with: cohortId: tools.cohortId metrics: tools.metrics periodStart: tools.periodStart periodEnd: tools.periodEnd outputParameters: - type: object mapping: $.