Orion Health · Capability

Orion Health FHIR API — CarePlan

Orion Health FHIR API — CarePlan. 2 operations. Lead operation: Orion Health Search for care plans. Self-contained Naftiko capability covering one Orion business surface.

Run with Naftiko OrionCarePlan

What You Can Do

GET
Searchcareplans — Orion Health Search for care plans
/v1/careplan
GET
Getcareplan — Orion Health Read a care plan by ID
/v1/careplan/{id}

MCP Tools

orion-health-search-care-plans

Orion Health Search for care plans

read-only idempotent
orion-health-read-care-plan

Orion Health Read a care plan by ID

read-only idempotent

Capability Spec

fhir-careplan.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Orion Health FHIR API — CarePlan
  description: 'Orion Health FHIR API — CarePlan. 2 operations. Lead operation: Orion Health Search for care plans. Self-contained
    Naftiko capability covering one Orion business surface.'
  tags:
  - Orion
  - CarePlan
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ORION_API_KEY: ORION_API_KEY
capability:
  consumes:
  - type: http
    namespace: fhir-careplan
    baseUri: https://api.orionhealth.com/fhir
    description: Orion Health FHIR API — CarePlan business capability. Self-contained, no shared references.
    resources:
    - name: CarePlan
      path: /CarePlan
      operations:
      - name: searchcareplans
        method: GET
        description: Orion Health Search for care plans
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: patient
          in: query
          type: string
          description: Reference to the patient
        - name: status
          in: query
          type: string
          description: Care plan status
        - name: category
          in: query
          type: string
          description: Type of care plan
        - name: date
          in: query
          type: string
          description: Care plan period
    - name: CarePlan-id
      path: /CarePlan/{id}
      operations:
      - name: getcareplan
        method: GET
        description: Orion Health Read a care plan by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ORION_API_KEY}}'
  exposes:
  - type: rest
    namespace: fhir-careplan-rest
    port: 8080
    description: REST adapter for Orion Health FHIR API — CarePlan. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/careplan
      name: careplan
      description: REST surface for CarePlan.
      operations:
      - method: GET
        name: searchcareplans
        description: Orion Health Search for care plans
        call: fhir-careplan.searchcareplans
        with:
          patient: rest.patient
          status: rest.status
          category: rest.category
          date: rest.date
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/careplan/{id}
      name: careplan-id
      description: REST surface for CarePlan-id.
      operations:
      - method: GET
        name: getcareplan
        description: Orion Health Read a care plan by ID
        call: fhir-careplan.getcareplan
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fhir-careplan-mcp
    port: 9090
    transport: http
    description: MCP adapter for Orion Health FHIR API — CarePlan. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: orion-health-search-care-plans
      description: Orion Health Search for care plans
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.searchcareplans
      with:
        patient: tools.patient
        status: tools.status
        category: tools.category
        date: tools.date
      outputParameters:
      - type: object
        mapping: $.
    - name: orion-health-read-care-plan
      description: Orion Health Read a care plan by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.getcareplan
      outputParameters:
      - type: object
        mapping: $.