CharmHealth · Capability

CharmHealth FHIR API — DocumentReference

CharmHealth FHIR API — DocumentReference. 1 operations. Lead operation: Search DocumentReference. Self-contained Naftiko capability covering one Charmhealth business surface.

Run with Naftiko CharmhealthDocumentReference

What You Can Do

GET
Searchdocumentreference — Search DocumentReference
/v1/documentreference

MCP Tools

search-documentreference

Search DocumentReference

read-only idempotent

Capability Spec

fhir-documentreference.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CharmHealth FHIR API — DocumentReference
  description: 'CharmHealth FHIR API — DocumentReference. 1 operations. Lead operation: Search DocumentReference. Self-contained
    Naftiko capability covering one Charmhealth business surface.'
  tags:
  - Charmhealth
  - DocumentReference
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHARMHEALTH_API_KEY: CHARMHEALTH_API_KEY
capability:
  consumes:
  - type: http
    namespace: fhir-documentreference
    baseUri: https://ehr2.charmtracker.com/api/ehr/v2/fhir
    description: CharmHealth FHIR API — DocumentReference business capability. Self-contained, no shared references.
    resources:
    - name: DocumentReference
      path: /DocumentReference
      operations:
      - name: searchdocumentreference
        method: GET
        description: Search DocumentReference
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: patient
          in: query
          type: string
        - name: type
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.CHARMHEALTH_API_KEY}}'
  exposes:
  - type: rest
    namespace: fhir-documentreference-rest
    port: 8080
    description: REST adapter for CharmHealth FHIR API — DocumentReference. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/documentreference
      name: documentreference
      description: REST surface for DocumentReference.
      operations:
      - method: GET
        name: searchdocumentreference
        description: Search DocumentReference
        call: fhir-documentreference.searchdocumentreference
        with:
          patient: rest.patient
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fhir-documentreference-mcp
    port: 9090
    transport: http
    description: MCP adapter for CharmHealth FHIR API — DocumentReference. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: search-documentreference
      description: Search DocumentReference
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fhir-documentreference.searchdocumentreference
      with:
        patient: tools.patient
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.