meditech · Capability

Meditech Expanse FHIR R4 API — Medication

Meditech Expanse FHIR R4 API — Medication. 1 operations. Lead operation: Get patient medication requests. Self-contained Naftiko capability covering one Meditech business surface.

Run with Naftiko MeditechMedication

What You Can Do

GET
Getpatientmedications — Get patient medication requests
/v1/patient/{id}/medicationrequest

MCP Tools

get-patient-medication-requests

Get patient medication requests

read-only idempotent

Capability Spec

fhir-medication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Meditech Expanse FHIR R4 API — Medication
  description: 'Meditech Expanse FHIR R4 API — Medication. 1 operations. Lead operation: Get patient medication requests.
    Self-contained Naftiko capability covering one Meditech business surface.'
  tags:
  - Meditech
  - Medication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEDITECH_API_KEY: MEDITECH_API_KEY
capability:
  consumes:
  - type: http
    namespace: fhir-medication
    baseUri: https://{facility}.meditech.com/fhir/r4
    description: Meditech Expanse FHIR R4 API — Medication business capability. Self-contained, no shared references.
    resources:
    - name: Patient-id-MedicationRequest
      path: /Patient/{id}/MedicationRequest
      operations:
      - name: getpatientmedications
        method: GET
        description: Get patient medication requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: status
          in: query
          type: string
        - name: intent
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.MEDITECH_API_KEY}}'
  exposes:
  - type: rest
    namespace: fhir-medication-rest
    port: 8080
    description: REST adapter for Meditech Expanse FHIR R4 API — Medication. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/patient/{id}/medicationrequest
      name: patient-id-medicationrequest
      description: REST surface for Patient-id-MedicationRequest.
      operations:
      - method: GET
        name: getpatientmedications
        description: Get patient medication requests
        call: fhir-medication.getpatientmedications
        with:
          id: rest.id
          status: rest.status
          intent: rest.intent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fhir-medication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Meditech Expanse FHIR R4 API — Medication. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-patient-medication-requests
      description: Get patient medication requests
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-medication.getpatientmedications
      with:
        id: tools.id
        status: tools.status
        intent: tools.intent
      outputParameters:
      - type: object
        mapping: $.