Clinician
Patient
Create Patient

Create Patient

POST endpoint for /clinician/patient/create-patient in clinician category

Overview

  • Method: POST
  • Path: /clinician/patient/create-patient
  • Tags: clinician

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes
  • Schema: Defined

Responses

200

Successful response

Content Type: application/json

{
  "type": "object",
  "properties": {
    "customer": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "billing_address_id": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "has_account": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "deleted_at": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "patient": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "dateOfBirth": {
      "type": "string"
    },
    "gender": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "address2": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "postalCode": {
      "type": "string"
    },
    "country": {
      "type": "string"
    }
  },
  "required": [
    "customer",
    "email",
    "has_account",
    "created_at",
    "updated_at",
    "metadata",
    "patient",
    "firstName",
    "lastName",
    "dateOfBirth",
    "address",
    "city",
    "state",
    "postalCode",
    "country"
  ]
}

400

Bad Request

Content Type: application/json

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "details": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "required": [
    "error",
    "details"
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  http://localhost:9000/clinician/patient/create-patient \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'

Interactive Testing

You can test this endpoint interactively in the Swagger UI (opens in a new tab).