Medication Create

API URL

{{url}}/admin-service/medication/create

Method

POST

Description

Creation of the Medication

Sample Input

Field Name

Type

Mandatory

Example

countryId

Integer

Yes

Country id

classificationId

Bigint

Yes

Classification Id

dosageFormId

Bigint

Yes

DosageForm Id

brandId

Bigint

Yes

Brand Id

classificationName

String

Yes

Classification Name

brandName

String

Yes

Brand Name

dosageFormName

String

Yes

Dosage Form Name

codeDetails

String

Yes

Code Details

code

Bigint

Yes

Labtest code

url

String

Yes

Lab test URL

name

String

Yes

Medication name to create

Authorization (Header)

String

Yes

Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6

client

String

Yes

web

[{
  "countryId": 1,
  "classificationId": 1,
  "classificationName": "Diuretic",
  "brandId": 1,
  "brandName": "Antibiotics",
  "name": "Medication One",
  "codeDetails": {
    "code": "medi",
    "url": "https://spice-dev.sl.labsplatform.com/region/1/1/medication/create"
  },
  "dosageFormId": 2,
  "dosageFormName": "Liquid"
}]

Sample Output

Field Name

Type

Comments

message

String

Medication created successfully

status

Boolean

Medication validation status

{
  "message": "Medication created successfully.",
  "entity": null,
  "status": true,
  "entityList": null,
  "responseCode": 201,
  "totalCount": null
}