POST request to create a medication definition. Medications represent the drug itself — not a prescription or order. You must provide code, which can be a free-text string or a fully coded concept using RxNorm, SNOMED CT, or another terminology. To prescribe a medication to a patient, use the Prescriptions API.
Request
Drug identification code. Pass a plain string for a free-text name (e.g.
"Amoxicillin 500mg Capsule"), or an object with system, code, and display for a coded reference such as RxNorm.Availability status of the medication. One of:
active, inactive. Defaults to active.Dosage form of the medication, e.g.
capsule, tablet, liquid. Maximum 100 characters.List of active and inactive ingredients. Each ingredient has an
item (coded concept), isActive flag, and optional strength.Batch or lot information for inventory tracking.
Example
Response
Returns the created medication object.Unique identifier for the medication, prefixed
med_.Drug code or free-text name.
active or inactive.Dosage form.
Ingredient list with item, isActive, and strength.
Batch information with
lotNumber and expirationDate.ISO 8601 datetime when the record was created.
Example response
Medications represent drug definitions, not prescriptions. To order a medication for a patient, create a Prescription that references this medication.