CMS Blue Button 2.0 API — Patient

CMS Blue Button 2.0 API — Patient. 2 operations. Lead operation: Search Patient. Self-contained Naftiko capability covering one Centers For Medicare And Medicaid Services business surface.

Run with Naftiko Centers For Medicare And Medicaid ServicesPatient

What You Can Do

GET
Searchpatient — Search Patient
/v1/patient
GET
Readpatient — Read Patient
/v1/patient/{id}

MCP Tools

search-patient

Search Patient

read-only idempotent
read-patient

Read Patient

read-only idempotent

Capability Spec

cms-blue-button-2-patient.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CMS Blue Button 2.0 API — Patient
  description: 'CMS Blue Button 2.0 API — Patient. 2 operations. Lead operation: Search Patient. Self-contained Naftiko capability
    covering one Centers For Medicare And Medicaid Services business surface.'
  tags:
  - Centers For Medicare And Medicaid Services
  - Patient
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CENTERS_FOR_MEDICARE_AND_MEDICAID_SERVICES_API_KEY: CENTERS_FOR_MEDICARE_AND_MEDICAID_SERVICES_API_KEY
capability:
  consumes:
  - type: http
    namespace: cms-blue-button-2-patient
    baseUri: https://api.bluebutton.cms.gov/v2/fhir
    description: CMS Blue Button 2.0 API — Patient business capability. Self-contained, no shared references.
    resources:
    - name: Patient
      path: /Patient
      operations:
      - name: searchpatient
        method: GET
        description: Search Patient
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: Patient-id
      path: /Patient/{id}
      operations:
      - name: readpatient
        method: GET
        description: Read Patient
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: FHIR Patient resource ID.
          required: true
    authentication:
      type: bearer
      token: '{{env.CENTERS_FOR_MEDICARE_AND_MEDICAID_SERVICES_API_KEY}}'
  exposes:
  - type: rest
    namespace: cms-blue-button-2-patient-rest
    port: 8080
    description: REST adapter for CMS Blue Button 2.0 API — Patient. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/patient
      name: patient
      description: REST surface for Patient.
      operations:
      - method: GET
        name: searchpatient
        description: Search Patient
        call: cms-blue-button-2-patient.searchpatient
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/patient/{id}
      name: patient-id
      description: REST surface for Patient-id.
      operations:
      - method: GET
        name: readpatient
        description: Read Patient
        call: cms-blue-button-2-patient.readpatient
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cms-blue-button-2-patient-mcp
    port: 9090
    transport: http
    description: MCP adapter for CMS Blue Button 2.0 API — Patient. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: search-patient
      description: Search Patient
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cms-blue-button-2-patient.searchpatient
      outputParameters:
      - type: object
        mapping: $.
    - name: read-patient
      description: Read Patient
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cms-blue-button-2-patient.readpatient
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.