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

# Get Patient Details

> Get detailed information about a patient



## OpenAPI

````yaml GET /v1/patient/{patient_id}
openapi: 3.1.0
info:
  title: Mira API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/patient/{patient_id}:
    get:
      summary: Get patient details
      description: Get detailed information about a patient.
      operationId: get_patient
      parameters:
        - name: patient_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: UUID of the patient to retrieve
            example: 123e4567-e89b-12d3-a456-426614174001
          description: The ID of the patient to retrieve
      responses:
        '200':
          description: Patient details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientResponse'
        '400':
          description: Bad request - invalid patient ID format
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Invalid patient ID format
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Invalid API key
        '404':
          description: Patient not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Patient not found
      x-codeSamples:
        - lang: Python
          source: >-
            import requests


            url =
            'https://api.miramace.com/v1/patient/d7038030-aa24-4b89-a076-23c3fd29df34'

            headers = {
                'Authorization': 'Bearer YOUR_API_KEY',
                'Content-Type': 'application/json'
            }


            response = requests.get(url, headers=headers)

            print(response.json())
        - lang: JavaScript
          source: >-
            const response = await
            fetch('https://api.miramace.com/v1/patient/d7038030-aa24-4b89-a076-23c3fd29df34',
            {
              headers: {
                'Authorization': 'Bearer YOUR_API_KEY',
                'Content-Type': 'application/json'
              }
            });


            const data = await response.json();

            console.log(data);
        - lang: cURL
          source: |-
            curl --request GET \
              --url https://api.miramace.com/v1/patient/d7038030-aa24-4b89-a076-23c3fd29df34 \
              --header 'Authorization: Bearer YOUR_API_KEY' \
              --header 'Content-Type: application/json'
components:
  schemas:
    PatientResponse:
      allOf:
        - type: object
          properties:
            email:
              type: string
              format: email
              description: Email address of the patient
            first_name:
              type: string
              description: First name of the patient
              example: Jane
            last_name:
              type: string
              description: Last name of the patient
              example: Doe
            date_of_birth:
              $ref: '#/components/schemas/Date'
            phone_number:
              $ref: '#/components/schemas/PhoneNumber'
            address:
              $ref: '#/components/schemas/Address'
            primary_care_provider:
              type: object
              properties:
                name:
                  type: string
                  description: Name of the patient's primary care provider
                practice:
                  type: string
                  description: Practice name of the patient's primary care provider
            insurance:
              type: object
              properties:
                medical:
                  type: array
                  items:
                    $ref: '#/components/schemas/MemberInsurance'
                dental:
                  type: array
                  items:
                    $ref: '#/components/schemas/MemberInsurance'
                vision:
                  type: array
                  items:
                    $ref: '#/components/schemas/MemberInsurance'
        - type: object
          properties:
            id:
              type: string
              format: uuid
              description: UUID of the patient
              example: 123e4567-e89b-12d3-a456-426614174001
            project_id:
              type: string
              format: uuid
              description: UUID of the project this patient belongs to
              example: 123e4567-e89b-12d3-a456-426614174000
            created_at:
              type: string
              format: date-time
              description: Timestamp when the patient was created
            updated_at:
              type: string
              format: date-time
              description: Timestamp when the patient was last updated
      example:
        id: 123e4567-e89b-12d3-a456-426614174001
        project_id: 123e4567-e89b-12d3-a456-426614174000
        email: jane.doe@example.com
        first_name: Jane
        last_name: Doe
        date_of_birth: '1990-01-15'
        phone_number: '+14155555555'
        address:
          street_name: 123 Market Street
          city: San Francisco
          state: CA
          postal_code: '94105'
          country_code: US
        primary_care_provider:
          name: Dr. Sarah Smith
          practice: SF Medical Group
        insurance:
          medical:
            - company_name: Blue Cross Blue Shield
              member_id: BCB123456789
              group_number: GRP987654
              plan_name: PPO Gold
              phone_number: '+18005551234'
              relationship_to_subscriber: SELF
          dental:
            - company_name: Delta Dental
              member_id: DDB123456789
              group_number: GRPD123
              plan_name: Premier Plan
              phone_number: '+18005553456'
              relationship_to_subscriber: SELF
          vision:
            - company_name: VSP
              member_id: VSP123456789
              group_number: GRPV123
              plan_name: Vision Care
              phone_number: '+18005554567'
              relationship_to_subscriber: SELF
        created_at: '2024-03-20T08:00:00Z'
        updated_at: '2024-03-20T08:00:00Z'
    Date:
      type: string
      format: date
      description: Date in ISO 8601 format (YYYY-MM-DD)
      example: '1990-01-01'
    PhoneNumber:
      type: string
      description: The phone number in E.164 format (e.g., +15555555555)
      pattern: ^\+[1-9]\d{1,14}$
      example: '+15555555555'
    Address:
      type: object
      required:
        - street_name
        - city
        - state
        - postal_code
        - country_code
      properties:
        street_name:
          type: string
          description: Street address
          example: 123 Main St
        city:
          type: string
          description: City
          example: San Francisco
        state:
          type: string
          description: State/province
          example: CA
        postal_code:
          type: string
          description: Postal/ZIP code
          example: '94105'
        country_code:
          type: string
          description: Two-letter country code
          example: US
    MemberInsurance:
      type: object
      properties:
        company_name:
          type: string
          description: The name of the insurance company
          example: Blue Cross Blue Shield
        member_id:
          type: string
          description: The member ID
          example: XYZ1234567
        group_number:
          type: string
          description: The group number
          example: GRP123456
        plan_name:
          type: string
          description: The plan name
          example: PPO Gold
        phone_number:
          $ref: '#/components/schemas/PhoneNumber'
          nullable: true
        relationship_to_subscriber:
          $ref: '#/components/schemas/RelationshipToSubscriber'
        primary_subscriber:
          $ref: '#/components/schemas/PrimarySubscriber'
    RelationshipToSubscriber:
      type: string
      enum:
        - RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED
        - SELF
        - SPOUSE
        - DEPENDENT
      description: The relationship of the member to the primary subscriber
      example: SELF
    PrimarySubscriber:
      type: object
      properties:
        first_name:
          type: string
          description: The first name of the primary subscriber
          example: John
        last_name:
          type: string
          description: The last name of the primary subscriber
          example: Doe

````