> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haau3.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a practitioner's roles

> Search `PractitionerRole` by `practitioner` — the organisations, specialties and locations a practitioner is associated with. `identifier` is not offered because the directory does not carry identifiers on these resources.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/fhir/r4/PractitionerRole
openapi: 3.1.0
info:
  title: haau3 Platform API
  version: 1.0.0
  description: >-
    The haau3 platform API (non-PHI). Endpoints require a free API key — send it
    as `Authorization: Bearer <key>`. Requests without a valid key return 401.
    Create a key in the dashboard at https://platform.haau3.com.
servers:
  - url: https://api.haau3.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Scheduling
    description: Provider availability (SMART Scheduling Links) — slots and publishers.
  - name: Terminology
    description: FHIR terminology operations — CodeSystem lookups against LOINC.
  - name: Provider directory
    description: >-
      FHIR Practitioner and PractitionerRole, resolved from the national
      provider directory. Resolution, not discovery: bring an NPI and get what
      the directory publishes for it.
paths:
  /v1/fhir/r4/PractitionerRole:
    get:
      tags:
        - Provider directory
      summary: List a practitioner's roles
      description: >-
        Search `PractitionerRole` by `practitioner` — the organisations,
        specialties and locations a practitioner is associated with.
        `identifier` is not offered because the directory does not carry
        identifiers on these resources.
      operationId: searchPractitionerRole
      parameters:
        - name: practitioner
          in: query
          required: false
          schema:
            type: string
          description: >-
            A Practitioner id, or `Practitioner/{id}`. Required unless `page` is
            given.
        - name: _count
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
          description: >-
            Page size, 1 to 100. A larger value is refused rather than quietly
            reduced.
        - name: page
          in: query
          required: false
          schema:
            type: string
          description: >-
            Continuation cursor. Opaque — follow the `next` link from a previous
            response.
      responses:
        '200':
          description: 'A FHIR `Bundle` with `type: searchset`.'
          content:
            application/fhir+json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: >-
            The request named a parameter, identifier system or value this
            service does not serve. Every unsupported parameter is refused by
            name — none is silently ignored — so a search that returns results
            applied every filter you sent.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
        '404':
          description: No such resource, or no such interaction on this base.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
        '406':
          description: >-
            A FHIR release this endpoint does not serve was requested via the
            `fhirVersion` media-type parameter.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
        '502':
          description: >-
            The directory could not be reached, or answered in a shape that
            cannot be served. No answer is given — this is never reported as an
            empty result, which would read as 'no such provider'.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
        '503':
          description: The directory is rate limiting requests.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
        '504':
          description: The directory did not respond in time.
          content:
            application/fhir+json:
              schema:
                $ref: '#/components/schemas/OperationOutcome'
components:
  schemas:
    OperationOutcome:
      type: object
      properties:
        resourceType:
          type: string
          enum:
            - OperationOutcome
        issue:
          type: array
          items:
            type: object
            properties:
              severity:
                type: string
                enum:
                  - fatal
                  - error
                  - warning
                  - information
              code:
                type: string
              details:
                type: object
                properties:
                  text:
                    type: string
                additionalProperties: true
              diagnostics:
                type: string
              expression:
                type: array
                items:
                  type: string
            required:
              - severity
              - code
            additionalProperties: true
      required:
        - resourceType
        - issue
    AuthError:
      type: object
      properties:
        error:
          type: string
          examples:
            - API key required
        message:
          type: string
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your platform API key (`haau3_sk_…`), sent as `Authorization: Bearer
        <key>`.

````