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

# Prescription Evidence Verification

> Verifies if a prescription evidence is valid



## OpenAPI

````yaml /uk/openapi.json post /external/v1/prescriptions/verify-evidence
openapi: 3.1.0
info:
  title: OpenAPI ClinicOS
  description: ClinicOS OpenAPI Documentation
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://uk.api.aiosmedical.com
security: []
paths:
  /external/v1/prescriptions/verify-evidence:
    post:
      tags:
        - Prescriptions
      summary: Prescription Evidence Verification
      description: Verifies if a prescription evidence is valid
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - userId
                - medicationName
                - medicationDosage
                - file
              properties:
                userId:
                  type: string
                  description: The ID of the user
                medicationName:
                  type: string
                  description: The name of the medication
                medicationDosage:
                  type: string
                  description: The dosage of the medication
                file:
                  type: string
                  format: binary
                  description: The prescription evidence file
      responses:
        '200':
          description: Prescription signature verified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyPrescriptionEvidencePayload'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    example: 400
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Validation failed (uuid is expected)
                      error:
                        type: string
                        example: Bad Request
                      statusCode:
                        type: number
                        example: 400
                  timestamp:
                    type: string
                    example: '2025-06-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /external/v1/prescriptions/verify-evidence
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal Server Error
                  timestamp:
                    type: string
                    example: '2025-06-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /external/v1/prescriptions/verify-evidence
      security: []
components:
  schemas:
    VerifyPrescriptionEvidencePayload:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            patientName:
              type: object
              properties:
                value:
                  type: string
                  example: valid
                confidence:
                  type: string
                  example: high
            medicationName:
              type: object
              properties:
                value:
                  type: string
                  example: valid
                confidence:
                  type: string
                  example: high
            medicationDosage:
              type: object
              properties:
                value:
                  type: string
                  example: valid
                confidence:
                  type: string
                  example: high
            medicationDate:
              type: object
              properties:
                value:
                  type: string
                  example: valid
                confidence:
                  type: string
                  example: high
            pharmacyName:
              type: object
              properties:
                value:
                  type: string
                  example: valid
                confidence:
                  type: string
                  example: high
        confidence:
          type: string
          example: high
        note:
          type: string
          example: >-
            This prescription evidence is valid. Document matches the name on
            the prescription.

````