---
title: "Create a patient profile"
method: POST
path: "/profiles/v1/patient/"
tags: ["Patient"]
---

# Create a patient profile

`POST /profiles/v1/patient/`

Allows businesses to add new patient record by capturing personal, contact, and medical information.

**Name Field Requirement**:
      - Either `fln` **must be provided**, or at least `fn` must be included (optionally with `mn` and `ln`).

## Headers

- `client-id` string, required

## Request body

- union
  - object
    - `fn` string, required — First name (will be converted and stored in lowercase)
    - `mn` string — Middle name (will be converted and stored in lowercase)
    - `ln` string — Last name (will be converted and stored in lowercase)
    - `fln` string — Full name (will be converted and stored in lowercase)
    - `s` string — Salutation (optional)
    - `dob` string, date, required
    - `gen` 'M' | 'F' | 'O', required — Gender
    - `bloodgroup` 'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-' — Blood group of the patient
    - `mobile` string — Mobile number of the patient ( with country code )
    - `email` string, email — Email address of the patient (will be converted and stored in lowercase)
    - `username` string — Unique UHID| partner id | username for the patient
    - `abha` string — ABHA address of the patient
    - `extras` object — Additional arbitrary data as a JSON object **Restrictions:** - Nested lists are NOT allowed - Dictionaries inside lists are NOT allowed - Only one level of nesting is allowed in dictionaries - Keys starting with `_` will be ignored - Key length must not exceed 16 characters
  - object
    - `fn` string — First name (will be converted and stored in lowercase)
    - `mn` string — Middle name (will be converted and stored in lowercase)
    - `ln` string — Last name (will be converted and stored in lowercase)
    - `fln` string, required — Full name (will be converted and stored in lowercase)
    - `s` string — Salutation (optional)
    - `dob` string, date, required
    - `gen` 'M' | 'F' | 'O', required — Gender
    - `bloodgroup` 'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-' — Blood group of the patient
    - `mobile` string — Mobile number of the patient ( with country code )
    - `email` string, email — Email address of the patient (will be converted and stored in lowercase)
    - `username` string — Unique UHID| partner id | username for the patient
    - `abha` string — ABHA address of the patient
    - `extras` object — Additional arbitrary data as a JSON object **Restrictions:** - Nested lists are NOT allowed - Dictionaries inside lists are NOT allowed - Only one level of nesting is allowed in dictionaries - Keys starting with `_` will be ignored - Key length must not exceed 16 characters

## Response `201`

Patient created successfully

- object
  - `oid` string — Unique identifier for the patient. Use this ID to retrieve the patient profile.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
