Fast Healthcare Interoperability Resources (FHIR) — Medication

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

Run with Naftiko FhirMedication

What You Can Do

GET
Searchmedication — Fast Healthcare Interoperability Resources Search all resources of type Medication based on a set of criteria
/v1/medication
POST
Createmedication — Fast Healthcare Interoperability Resources Create a new resource
/v1/medication
GET
Histtypemedication — Fast Healthcare Interoperability Resources Read the past states of the resource
/v1/medication/history
GET
Readmedication — Fast Healthcare Interoperability Resources Read the current state of the resource
/v1/medication/{rid}
PUT
Updatemedication — Fast Healthcare Interoperability Resources Update the current state of the resource
/v1/medication/{rid}
PATCH
Patchmedication — Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch - a series of change commands
/v1/medication/{rid}
DELETE
Deletemedication — Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc)
/v1/medication/{rid}
GET
Histinstmedication — Fast Healthcare Interoperability Resources Read the past states of the resource
/v1/medication/{rid}/history
GET
Vreadmedication — Fast Healthcare Interoperability Resources Read a past state of the resource
/v1/medication/{rid}/history/{hid}

MCP Tools

fast-healthcare-interoperability-resources-search

Fast Healthcare Interoperability Resources Search all resources of type Medication 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-medication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fast Healthcare Interoperability Resources (FHIR) — Medication
  description: 'Fast Healthcare Interoperability Resources (FHIR) — Medication. 9 operations. Lead operation: Fast Healthcare
    Interoperability Resources Search all resources of type Medication based on a set of criteria. Self-contained Naftiko
    capability covering one Fhir business surface.'
  tags:
  - Fhir
  - Medication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FHIR_API_KEY: FHIR_API_KEY
capability:
  consumes:
  - type: http
    namespace: fhir-medication
    baseUri: ''
    description: Fast Healthcare Interoperability Resources (FHIR) — Medication business capability. Self-contained, no shared
      references.
    resources:
    - name: Medication
      path: /Medication
      operations:
      - name: searchmedication
        method: GET
        description: Fast Healthcare Interoperability Resources Search all resources of type Medication based on a set of
          criteria
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createmedication
        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: Medication-_history
      path: /Medication/_history
      operations:
      - name: histtypemedication
        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: Medication-rid
      path: /Medication/{rid}
      operations:
      - name: readmedication
        method: GET
        description: Fast Healthcare Interoperability Resources Read the current state of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatemedication
        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: patchmedication
        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: deletemedication
        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: Medication-rid-_history
      path: /Medication/{rid}/_history
      operations:
      - name: histinstmedication
        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: Medication-rid-_history-hid
      path: /Medication/{rid}/_history/{hid}
      operations:
      - name: vreadmedication
        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-medication-rest
    port: 8080
    description: REST adapter for Fast Healthcare Interoperability Resources (FHIR) — Medication. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/medication
      name: medication
      description: REST surface for Medication.
      operations:
      - method: GET
        name: searchmedication
        description: Fast Healthcare Interoperability Resources Search all resources of type Medication based on a set of
          criteria
        call: fhir-medication.searchmedication
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createmedication
        description: Fast Healthcare Interoperability Resources Create a new resource
        call: fhir-medication.createmedication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/medication/history
      name: medication-history
      description: REST surface for Medication-_history.
      operations:
      - method: GET
        name: histtypemedication
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        call: fhir-medication.histtypemedication
        with:
          _since: rest._since
          _at: rest._at
          _list: rest._list
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/medication/{rid}
      name: medication-rid
      description: REST surface for Medication-rid.
      operations:
      - method: GET
        name: readmedication
        description: Fast Healthcare Interoperability Resources Read the current state of the resource
        call: fhir-medication.readmedication
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatemedication
        description: Fast Healthcare Interoperability Resources Update the current state of the resource
        call: fhir-medication.updatemedication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchmedication
        description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch
          - a series of change commands
        call: fhir-medication.patchmedication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletemedication
        description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search
          etc)
        call: fhir-medication.deletemedication
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/medication/{rid}/history
      name: medication-rid-history
      description: REST surface for Medication-rid-_history.
      operations:
      - method: GET
        name: histinstmedication
        description: Fast Healthcare Interoperability Resources Read the past states of the resource
        call: fhir-medication.histinstmedication
        with:
          _since: rest._since
          _at: rest._at
          _list: rest._list
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/medication/{rid}/history/{hid}
      name: medication-rid-history-hid
      description: REST surface for Medication-rid-_history-hid.
      operations:
      - method: GET
        name: vreadmedication
        description: Fast Healthcare Interoperability Resources Read a past state of the resource
        call: fhir-medication.vreadmedication
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fhir-medication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fast Healthcare Interoperability Resources (FHIR) — Medication. 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 Medication based on a set of criteria
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-medication.searchmedication
      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-medication.createmedication
      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-medication.histtypemedication
      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-medication.readmedication
      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-medication.updatemedication
      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-medication.patchmedication
      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-medication.deletemedication
      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-medication.histinstmedication
      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-medication.vreadmedication
      outputParameters:
      - type: object
        mapping: $.