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

# Clinical Codes



## OpenAPI

````yaml /openapi.json get /v2/scribe/open-api/sessions/{session_id}/clinical-codes
openapi: 3.1.0
info:
  title: Cortexa Scribe Open API
  description: >-
    Authorized EHR access to Cortexa Scribe. All clinical resources are scoped
    to a partner grant.
  version: 2.0.0
servers:
  - url: https://sandbox.api.cortexanote.com
security: []
paths:
  /v2/scribe/open-api/sessions/{session_id}/clinical-codes:
    get:
      tags:
        - Scribe Open API
      summary: Clinical Codes
      operationId: scribe_api_clinical_codes_get
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodingRead'
        '202':
          description: Coding queued or running
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Business rule violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - ScribeApiJWT: []
components:
  schemas:
    CodingRead:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        job_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Job Id
        status:
          type: string
          title: Status
        code_systems:
          items:
            type: string
          type: array
          title: Code Systems
        suggestions:
          items:
            $ref: '#/components/schemas/ClinicalCode'
          type: array
          title: Suggestions
        failure_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Code
      type: object
      required:
        - status
      title: CodingRead
    ApiErrorResponse:
      type: object
      properties:
        message:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorDetail'
        context:
          type: object
          additionalProperties:
            type: string
          description: Explicitly public context for handling business errors.
      required:
        - message
        - errors
    ClinicalCode:
      properties:
        id:
          type: string
          title: Id
        system:
          type: string
          title: System
        code:
          type: string
          title: Code
        display:
          type: string
          title: Display
        status:
          type: string
          title: Status
        relevance:
          type: string
          title: Relevance
        evidences:
          items:
            $ref: '#/components/schemas/CodingEvidence'
          type: array
          title: Evidences
      type: object
      required:
        - id
        - system
        - code
        - display
        - status
        - relevance
      title: ClinicalCode
    ApiErrorDetail:
      type: object
      properties:
        field:
          type: string
        code:
          type: string
      required:
        - code
    CodingEvidence:
      properties:
        context_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Context Index
        text:
          type: string
          title: Text
          default: ''
        start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start
        end:
          anyOf:
            - type: integer
            - type: 'null'
          title: End
      type: object
      title: CodingEvidence
  securitySchemes:
    ScribeApiJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.