naftiko: 1.0.0-alpha2 info: label: Fast Healthcare Interoperability Resources (FHIR) — MedicationDispense description: 'Fast Healthcare Interoperability Resources (FHIR) — MedicationDispense. 9 operations. Lead operation: Fast Healthcare Interoperability Resources Search all resources of type MedicationDispense based on a set of criteria. Self-contained Naftiko capability covering one Fhir business surface.' tags: - Fhir - MedicationDispense created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FHIR_API_KEY: FHIR_API_KEY capability: consumes: - type: http namespace: fhir-medicationdispense baseUri: '' description: Fast Healthcare Interoperability Resources (FHIR) — MedicationDispense business capability. Self-contained, no shared references. resources: - name: MedicationDispense path: /MedicationDispense operations: - name: searchmedicationdispense method: GET description: Fast Healthcare Interoperability Resources Search all resources of type MedicationDispense based on a set of criteria outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: patient in: query type: string description: '**The identity of a patient to list dispenses for** ' - name: status in: query type: string description: '**Returns dispenses with a specified dispense status** ' - name: type in: query type: string description: '**Returns dispenses of a specific type** ' - name: createmedicationdispense 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: MedicationDispense-_history path: /MedicationDispense/_history operations: - name: histtypemedicationdispense 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: MedicationDispense-rid path: /MedicationDispense/{rid} operations: - name: readmedicationdispense method: GET description: Fast Healthcare Interoperability Resources Read the current state of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemedicationdispense 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: patchmedicationdispense 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: deletemedicationdispense 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: MedicationDispense-rid-_history path: /MedicationDispense/{rid}/_history operations: - name: histinstmedicationdispense 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: MedicationDispense-rid-_history-hid path: /MedicationDispense/{rid}/_history/{hid} operations: - name: vreadmedicationdispense 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-medicationdispense-rest port: 8080 description: REST adapter for Fast Healthcare Interoperability Resources (FHIR) — MedicationDispense. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/medicationdispense name: medicationdispense description: REST surface for MedicationDispense. operations: - method: GET name: searchmedicationdispense description: Fast Healthcare Interoperability Resources Search all resources of type MedicationDispense based on a set of criteria call: fhir-medicationdispense.searchmedicationdispense with: patient: rest.patient status: rest.status type: rest.type outputParameters: - type: object mapping: $. - method: POST name: createmedicationdispense description: Fast Healthcare Interoperability Resources Create a new resource call: fhir-medicationdispense.createmedicationdispense with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/medicationdispense/history name: medicationdispense-history description: REST surface for MedicationDispense-_history. operations: - method: GET name: histtypemedicationdispense description: Fast Healthcare Interoperability Resources Read the past states of the resource call: fhir-medicationdispense.histtypemedicationdispense with: _since: rest._since _at: rest._at _list: rest._list outputParameters: - type: object mapping: $. - path: /v1/medicationdispense/{rid} name: medicationdispense-rid description: REST surface for MedicationDispense-rid. operations: - method: GET name: readmedicationdispense description: Fast Healthcare Interoperability Resources Read the current state of the resource call: fhir-medicationdispense.readmedicationdispense outputParameters: - type: object mapping: $. - method: PUT name: updatemedicationdispense description: Fast Healthcare Interoperability Resources Update the current state of the resource call: fhir-medicationdispense.updatemedicationdispense with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: patchmedicationdispense description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch - a series of change commands call: fhir-medicationdispense.patchmedicationdispense with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemedicationdispense description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc) call: fhir-medicationdispense.deletemedicationdispense outputParameters: - type: object mapping: $. - path: /v1/medicationdispense/{rid}/history name: medicationdispense-rid-history description: REST surface for MedicationDispense-rid-_history. operations: - method: GET name: histinstmedicationdispense description: Fast Healthcare Interoperability Resources Read the past states of the resource call: fhir-medicationdispense.histinstmedicationdispense with: _since: rest._since _at: rest._at _list: rest._list outputParameters: - type: object mapping: $. - path: /v1/medicationdispense/{rid}/history/{hid} name: medicationdispense-rid-history-hid description: REST surface for MedicationDispense-rid-_history-hid. operations: - method: GET name: vreadmedicationdispense description: Fast Healthcare Interoperability Resources Read a past state of the resource call: fhir-medicationdispense.vreadmedicationdispense outputParameters: - type: object mapping: $. - type: mcp namespace: fhir-medicationdispense-mcp port: 9090 transport: http description: MCP adapter for Fast Healthcare Interoperability Resources (FHIR) — MedicationDispense. 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 MedicationDispense based on a set of criteria hints: readOnly: true destructive: false idempotent: true call: fhir-medicationdispense.searchmedicationdispense with: patient: tools.patient status: tools.status type: tools.type 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-medicationdispense.createmedicationdispense 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-medicationdispense.histtypemedicationdispense 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-medicationdispense.readmedicationdispense 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-medicationdispense.updatemedicationdispense 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-medicationdispense.patchmedicationdispense 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-medicationdispense.deletemedicationdispense 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-medicationdispense.histinstmedicationdispense 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-medicationdispense.vreadmedicationdispense outputParameters: - type: object mapping: $.