---
title: "Create Patient Profile"
method: POST
path: "/api/v2/ml-scribe/open-api/patient-profiles"
tags: ["Heidi API"]
---

# Create Patient Profile

`POST /api/v2/ml-scribe/open-api/patient-profiles`

create patient profile

## Request body

- OpenAPICreatePatientProfileRequest
  - `ehr_provider` 'Epic Systems' | 'Other' | 'Heidi'
  - `ehr_patient_id` string, nullable
  - `patient_sex_code` integer, nullable
  - `identifiers` Identifier[], nullable — unresolved $ref
  - `birth_date` string, nullable
  - `gender` 'male' | 'female' | 'other' | 'unknown' — gender that matches FHIR API
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `phone` string, nullable
  - `email` string, nullable
  - `demographic_string` string, nullable
  - `additional_context` string, nullable

## Response `200`

Successful Response

- OpenAPICreatePatientProfileResponse
  - `data` PatientProfileModel, required
    - `id` string, nullable
    - `source` 'EHR' | 'HEIDI', required
    - `ehr` union
      - 'Epic Systems' | 'Other' | 'Heidi'
      - string
    - `ehr_patient_id` string, nullable
    - `managed_by` string, required
    - `birth_date` string, date, nullable
    - `gender` 'male' | 'female' | 'other' | 'unknown' — gender that matches FHIR API
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `phone` string, phone, nullable
    - `email` string, email, nullable
    - `demographic_string` string, required
    - `remember_consent` boolean, nullable
    - `additional_context` string, nullable
    - `current_medications` string, nullable
    - `allergies` string, nullable
    - `past_medical_history` string, nullable

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

[API](https://skmtc.net/heidihealth/apis/heidi-api-documentation.md) · [All operations](https://skmtc.net/heidihealth/apis/heidi-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/heidihealth/heidi-api-documentation/revisions/39b46a9d8637/schema)
