Clinician
Prescription
Prescription Create

Create

POST endpoint for /clinician/prescription/prescription/create in clinician category

Overview

  • Method: POST
  • Path: /clinician/prescription/prescription/create
  • 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": {
    "id": {
      "type": "string"
    },
    "prescriptionNumber": {
      "type": "string"
    },
    "customerId": {
      "type": "string"
    },
    "clinicianId": {
      "type": "string"
    },
    "status": {
      "type": "object"
    },
    "medications": {
      "type": "string"
    },
    "medicationName": {
      "type": "string"
    },
    "dosage": {
      "type": "string"
    },
    "frequency": {
      "type": "string"
    },
    "duration": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "quantity": {
      "type": "number"
    },
    "price": {
      "type": "number"
    }
  },
  "required": [
    "id",
    "prescriptionNumber",
    "customerId",
    "clinicianId",
    "status",
    "medications",
    "medicationName",
    "dosage",
    "frequency",
    "duration",
    "instructions",
    "quantity",
    "price"
  ]
}

400

Bad Request

Content Type: application/json

{
  "$ref": "#/components/schemas/Error"
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  http://localhost:9000/clinician/prescription/prescription/create \
  -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).