Fast Healthcare Interoperability Resources (FHIR) — CarePlan

Fast Healthcare Interoperability Resources (FHIR) — CarePlan. 9 operations. Lead operation: Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria. Self-contained Naftiko capability covering one Fhir business surface.

Run with Naftiko FhirCarePlan

What You Can Do

GET
Searchcareplan — Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria
/v1/careplan
POST
Createcareplan — Fast Healthcare Interoperability Resources Create a new resource
/v1/careplan
GET
Histtypecareplan — Fast Healthcare Interoperability Resources Read the past states of the resource
/v1/careplan/history
GET
Readcareplan — Fast Healthcare Interoperability Resources Read the current state of the resource
/v1/careplan/{rid}
PUT
Updatecareplan — Fast Healthcare Interoperability Resources Update the current state of the resource
/v1/careplan/{rid}
PATCH
Patchcareplan — Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch - a series of change commands
/v1/careplan/{rid}
DELETE
Deletecareplan — Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc)
/v1/careplan/{rid}
GET
Histinstcareplan — Fast Healthcare Interoperability Resources Read the past states of the resource
/v1/careplan/{rid}/history
GET
Vreadcareplan — Fast Healthcare Interoperability Resources Read a past state of the resource
/v1/careplan/{rid}/history/{hid}

MCP Tools

fast-healthcare-interoperability-resources-search

Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria

read-only idempotent
fast-healthcare-interoperability-resources-create

Fast Healthcare Interoperability Resources Create a new resource

fast-healthcare-interoperability-resources-read

Fast Healthcare Interoperability Resources Read the past states of the resource

read-only idempotent
fast-healthcare-interoperability-resources-read-2

Fast Healthcare Interoperability Resources Read the current state of the resource

read-only idempotent
fast-healthcare-interoperability-resources-update

Fast Healthcare Interoperability Resources Update the current state of the resource

idempotent
fast-healthcare-interoperability-resources-change

Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch - a series of change commands

idempotent
fast-healthcare-interoperability-resources-delete

Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc)

idempotent
fast-healthcare-interoperability-resources-read-3

Fast Healthcare Interoperability Resources Read the past states of the resource

read-only idempotent
fast-healthcare-interoperability-resources-read-4

Fast Healthcare Interoperability Resources Read a past state of the resource

read-only idempotent

Capability Spec

fhir-careplan.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fast Healthcare Interoperability Resources (FHIR) — CarePlan
  description: 'Fast Healthcare Interoperability Resources (FHIR) — CarePlan. 9 operations. Lead operation: Fast Healthcare
    Interoperability Resources Search all resources of type CarePlan based on a set of criteria. Self-contained Naftiko capability
    covering one Fhir business surface.'
  tags:
  - Fhir
  - CarePlan
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FHIR_API_KEY: FHIR_API_KEY
capability:
  consumes:
  - type: http
    namespace: fhir-careplan
    baseUri: ''
    description: Fast Healthcare Interoperability Resources (FHIR) — CarePlan business capability. Self-contained, no shared
      references.
    resources:
    - name: CarePlan
      path: /CarePlan
      operations:
      - name: searchcareplan
        method: GET
        description: Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: category
          in: query
          type: string
          description: '**Type of plan**  '
        - name: date
          in: query
          type: string
          description: '**Time period plan covers**  '
        - name: patient
          in: query
          type: string
          description: '**Who the care plan is for**  '
        - name: status
          in: query
          type: string
          description: '**draft | active | on-hold | revoked | completed | entered-in-error | unknown**  '
      - name: createcareplan
        method: POST
        description: Fast Healthcare Interoperability Resources Create a new resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: CarePlan-_history
      path: /CarePlan/_history
      operations:
      - name: histtypecareplan
        method: GET
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _since
          in: query
          type: string
          description: Only include resource versions that were created at or after the given instant in time
        - name: _at
          in: query
          type: string
          description: Only include resource versions that were current at some point during the time period specified in
            the date time value (see Search notes on date searching)
        - name: _list
          in: query
          type: string
          description: Only include resource versions that are referenced in the specified list (current list references are
            allowed)
    - name: CarePlan-rid
      path: /CarePlan/{rid}
      operations:
      - name: readcareplan
        method: GET
        description: Fast Healthcare Interoperability Resources Read the current state of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecareplan
        method: PUT
        description: Fast Healthcare Interoperability Resources Update the current state of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: patchcareplan
        method: PATCH
        description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch
          - a series of change commands
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecareplan
        method: DELETE
        description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search
          etc)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: CarePlan-rid-_history
      path: /CarePlan/{rid}/_history
      operations:
      - name: histinstcareplan
        method: GET
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _since
          in: query
          type: string
          description: Only include resource versions that were created at or after the given instant in time
        - name: _at
          in: query
          type: string
          description: Only include resource versions that were current at some point during the time period specified in
            the date time value (see Search notes on date searching)
        - name: _list
          in: query
          type: string
          description: Only include resource versions that are referenced in the specified list (current list references are
            allowed)
    - name: CarePlan-rid-_history-hid
      path: /CarePlan/{rid}/_history/{hid}
      operations:
      - name: vreadcareplan
        method: GET
        description: Fast Healthcare Interoperability Resources Read a past state of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: fhir-careplan-rest
    port: 8080
    description: REST adapter for Fast Healthcare Interoperability Resources (FHIR) — 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: searchcareplan
        description: Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria
        call: fhir-careplan.searchcareplan
        with:
          category: rest.category
          date: rest.date
          patient: rest.patient
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcareplan
        description: Fast Healthcare Interoperability Resources Create a new resource
        call: fhir-careplan.createcareplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/careplan/history
      name: careplan-history
      description: REST surface for CarePlan-_history.
      operations:
      - method: GET
        name: histtypecareplan
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        call: fhir-careplan.histtypecareplan
        with:
          _since: rest._since
          _at: rest._at
          _list: rest._list
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/careplan/{rid}
      name: careplan-rid
      description: REST surface for CarePlan-rid.
      operations:
      - method: GET
        name: readcareplan
        description: Fast Healthcare Interoperability Resources Read the current state of the resource
        call: fhir-careplan.readcareplan
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecareplan
        description: Fast Healthcare Interoperability Resources Update the current state of the resource
        call: fhir-careplan.updatecareplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchcareplan
        description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch
          - a series of change commands
        call: fhir-careplan.patchcareplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecareplan
        description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search
          etc)
        call: fhir-careplan.deletecareplan
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/careplan/{rid}/history
      name: careplan-rid-history
      description: REST surface for CarePlan-rid-_history.
      operations:
      - method: GET
        name: histinstcareplan
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        call: fhir-careplan.histinstcareplan
        with:
          _since: rest._since
          _at: rest._at
          _list: rest._list
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/careplan/{rid}/history/{hid}
      name: careplan-rid-history-hid
      description: REST surface for CarePlan-rid-_history-hid.
      operations:
      - method: GET
        name: vreadcareplan
        description: Fast Healthcare Interoperability Resources Read a past state of the resource
        call: fhir-careplan.vreadcareplan
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fhir-careplan-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fast Healthcare Interoperability Resources (FHIR) — CarePlan. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: fast-healthcare-interoperability-resources-search
      description: Fast Healthcare Interoperability Resources Search all resources of type CarePlan based on a set of criteria
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.searchcareplan
      with:
        category: tools.category
        date: tools.date
        patient: tools.patient
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-create
      description: Fast Healthcare Interoperability Resources Create a new resource
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: fhir-careplan.createcareplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-read
      description: Fast Healthcare Interoperability Resources Read the past states of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.histtypecareplan
      with:
        _since: tools._since
        _at: tools._at
        _list: tools._list
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-read-2
      description: Fast Healthcare Interoperability Resources Read the current state of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.readcareplan
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-update
      description: Fast Healthcare Interoperability Resources Update the current state of the resource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fhir-careplan.updatecareplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-change
      description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch
        - a series of change commands
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: fhir-careplan.patchcareplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-delete
      description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: fhir-careplan.deletecareplan
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-read-3
      description: Fast Healthcare Interoperability Resources Read the past states of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.histinstcareplan
      with:
        _since: tools._since
        _at: tools._at
        _list: tools._list
      outputParameters:
      - type: object
        mapping: $.
    - name: fast-healthcare-interoperability-resources-read-4
      description: Fast Healthcare Interoperability Resources Read a past state of the resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-careplan.vreadcareplan
      outputParameters:
      - type: object
        mapping: $.