naftiko: 1.0.0-alpha2 info: label: Fast Healthcare Interoperability Resources (FHIR) — Condition description: 'Fast Healthcare Interoperability Resources (FHIR) — Condition. 9 operations. Lead operation: Fast Healthcare Interoperability Resources Search all resources of type Condition based on a set of criteria. Self-contained Naftiko capability covering one Fhir business surface.' tags: - Fhir - Condition created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FHIR_API_KEY: FHIR_API_KEY capability: consumes: - type: http namespace: fhir-condition baseUri: '' description: Fast Healthcare Interoperability Resources (FHIR) — Condition business capability. Self-contained, no shared references. resources: - name: Condition path: /Condition operations: - name: searchcondition method: GET description: Fast Healthcare Interoperability Resources Search all resources of type Condition based on a set of criteria outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: abatement-date in: query type: string description: '**Date-related abatements (dateTime and period)** ' - name: asserted-date in: query type: string description: Returns conditions with an [assertedDate extension](http://hl7.org/fhir/StructureDefinition/condition-assertedDate) matching the specified date (dateTime). - name: category in: query type: string description: '**The category of the condition** ' - name: clinical-status in: query type: string description: '**The clinical status of the condition** ' - name: code in: query type: string description: '**Code for the condition** ' - name: encounter in: query type: string description: '**Encounter created as part of** ' - name: onset-date in: query type: string description: '**Date related onsets (dateTime and Period)** ' - name: patient in: query type: string description: '**Who has the condition?** ' - name: recorded-date in: query type: string description: '**Date record was first recorded** ' - name: _lastUpdated in: query type: string description: '**When the resource version last changed** ' - name: createcondition 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: Condition-_history path: /Condition/_history operations: - name: histtypecondition 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: Condition-rid path: /Condition/{rid} operations: - name: readcondition method: GET description: Fast Healthcare Interoperability Resources Read the current state of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecondition 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: patchcondition 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: deletecondition 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: Condition-rid-_history path: /Condition/{rid}/_history operations: - name: histinstcondition 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: Condition-rid-_history-hid path: /Condition/{rid}/_history/{hid} operations: - name: vreadcondition 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-condition-rest port: 8080 description: REST adapter for Fast Healthcare Interoperability Resources (FHIR) — Condition. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/condition name: condition description: REST surface for Condition. operations: - method: GET name: searchcondition description: Fast Healthcare Interoperability Resources Search all resources of type Condition based on a set of criteria call: fhir-condition.searchcondition with: abatement-date: rest.abatement-date asserted-date: rest.asserted-date category: rest.category clinical-status: rest.clinical-status code: rest.code encounter: rest.encounter onset-date: rest.onset-date patient: rest.patient recorded-date: rest.recorded-date _lastUpdated: rest._lastUpdated outputParameters: - type: object mapping: $. - method: POST name: createcondition description: Fast Healthcare Interoperability Resources Create a new resource call: fhir-condition.createcondition with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/condition/history name: condition-history description: REST surface for Condition-_history. operations: - method: GET name: histtypecondition description: Fast Healthcare Interoperability Resources Read the past states of the resource call: fhir-condition.histtypecondition with: _since: rest._since _at: rest._at _list: rest._list outputParameters: - type: object mapping: $. - path: /v1/condition/{rid} name: condition-rid description: REST surface for Condition-rid. operations: - method: GET name: readcondition description: Fast Healthcare Interoperability Resources Read the current state of the resource call: fhir-condition.readcondition outputParameters: - type: object mapping: $. - method: PUT name: updatecondition description: Fast Healthcare Interoperability Resources Update the current state of the resource call: fhir-condition.updatecondition with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: patchcondition description: Fast Healthcare Interoperability Resources Change the current state of the resource by providing a patch - a series of change commands call: fhir-condition.patchcondition with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecondition description: Fast Healthcare Interoperability Resources Delete the resource so that it no exists (no read, search etc) call: fhir-condition.deletecondition outputParameters: - type: object mapping: $. - path: /v1/condition/{rid}/history name: condition-rid-history description: REST surface for Condition-rid-_history. operations: - method: GET name: histinstcondition description: Fast Healthcare Interoperability Resources Read the past states of the resource call: fhir-condition.histinstcondition with: _since: rest._since _at: rest._at _list: rest._list outputParameters: - type: object mapping: $. - path: /v1/condition/{rid}/history/{hid} name: condition-rid-history-hid description: REST surface for Condition-rid-_history-hid. operations: - method: GET name: vreadcondition description: Fast Healthcare Interoperability Resources Read a past state of the resource call: fhir-condition.vreadcondition outputParameters: - type: object mapping: $. - type: mcp namespace: fhir-condition-mcp port: 9090 transport: http description: MCP adapter for Fast Healthcare Interoperability Resources (FHIR) — Condition. 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 Condition based on a set of criteria hints: readOnly: true destructive: false idempotent: true call: fhir-condition.searchcondition with: abatement-date: tools.abatement-date asserted-date: tools.asserted-date category: tools.category clinical-status: tools.clinical-status code: tools.code encounter: tools.encounter onset-date: tools.onset-date patient: tools.patient recorded-date: tools.recorded-date _lastUpdated: tools._lastUpdated 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-condition.createcondition 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-condition.histtypecondition 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-condition.readcondition 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-condition.updatecondition 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-condition.patchcondition 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-condition.deletecondition 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-condition.histinstcondition 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-condition.vreadcondition outputParameters: - type: object mapping: $.