naftiko: 1.0.0-alpha2 info: label: Orion Health FHIR API — MedicationRequest description: 'Orion Health FHIR API — MedicationRequest. 2 operations. Lead operation: Orion Health Search for medication requests. Self-contained Naftiko capability covering one Orion business surface.' tags: - Orion - MedicationRequest created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ORION_API_KEY: ORION_API_KEY capability: consumes: - type: http namespace: fhir-medicationrequest baseUri: https://api.orionhealth.com/fhir description: Orion Health FHIR API — MedicationRequest business capability. Self-contained, no shared references. resources: - name: MedicationRequest path: /MedicationRequest operations: - name: searchmedicationrequests method: GET description: Orion Health Search for medication requests outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: patient in: query type: string description: Reference to the patient - name: status in: query type: string description: Prescription status - name: intent in: query type: string description: Kind of medication request - name: authoredon in: query type: string description: Date the prescription was written - name: MedicationRequest-id path: /MedicationRequest/{id} operations: - name: getmedicationrequest method: GET description: Orion Health Read a medication request by ID outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ORION_API_KEY}}' exposes: - type: rest namespace: fhir-medicationrequest-rest port: 8080 description: REST adapter for Orion Health FHIR API — MedicationRequest. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/medicationrequest name: medicationrequest description: REST surface for MedicationRequest. operations: - method: GET name: searchmedicationrequests description: Orion Health Search for medication requests call: fhir-medicationrequest.searchmedicationrequests with: patient: rest.patient status: rest.status intent: rest.intent authoredon: rest.authoredon outputParameters: - type: object mapping: $. - path: /v1/medicationrequest/{id} name: medicationrequest-id description: REST surface for MedicationRequest-id. operations: - method: GET name: getmedicationrequest description: Orion Health Read a medication request by ID call: fhir-medicationrequest.getmedicationrequest outputParameters: - type: object mapping: $. - type: mcp namespace: fhir-medicationrequest-mcp port: 9090 transport: http description: MCP adapter for Orion Health FHIR API — MedicationRequest. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: orion-health-search-medication-requests description: Orion Health Search for medication requests hints: readOnly: true destructive: false idempotent: true call: fhir-medicationrequest.searchmedicationrequests with: patient: tools.patient status: tools.status intent: tools.intent authoredon: tools.authoredon outputParameters: - type: object mapping: $. - name: orion-health-read-medication-request description: Orion Health Read a medication request by ID hints: readOnly: true destructive: false idempotent: true call: fhir-medicationrequest.getmedicationrequest outputParameters: - type: object mapping: $.