Skip to main content
POST
/
api
/
2.0
/
practice_medications
/
Create Practice Medication
curl --request POST \
  --url https://sandbox.elationemr.com/api/2.0/practice_medications/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active_ndcs": [
    "<string>"
  ],
  "id": 123,
  "is_controlled": false,
  "market_end_date": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "ndcs": [
    "<string>"
  ],
  "obsolete_date": "2023-11-07T05:31:56Z",
  "practice": 123,
  "rxnorm_cuis": [
    "<string>"
  ],
  "strength": "<string>",
  "type": "prescription"
}
'
{
  "active_ndcs": [
    "<string>"
  ],
  "brand_name": "<string>",
  "created_date": "2023-11-07T05:31:56Z",
  "creation_type": "user",
  "form": "<string>",
  "generic_name": "<string>",
  "id": 123,
  "is_controlled": false,
  "market_end_date": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "ndcs": [
    "<string>"
  ],
  "obsolete_date": "2023-11-07T05:31:56Z",
  "practice": 123,
  "route": "<string>",
  "rxnorm_cuis": [
    "<string>"
  ],
  "strength": "<string>",
  "type": "prescription"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
active_ndcs
string[]
id
integer<int64>

The id of the medication.

is_controlled
boolean
default:false

Whether the drug is a controlled substance or not.

market_end_date
string<date-time> | null
name
string

The name that will display for the medication in the search and when referenced by the prescription or documented med.

ndcs
string[]

The NDCs of the medication (must contain only one ndc code when creating).

obsolete_date
string<date-time> | null

The date at which this practice medication became obsolete.

practice
integer<int64>

The practice that created the medication. null for medications from the standard formulary.

rxnorm_cuis
string[]

The Rxnorm.cui code of the medication (must contain only one cui code when creating).

strength
string | null

The strength of the drug, e.g. 40mg.

Maximum string length: 255
type
enum<string>
default:prescription

Whether the practice medication is an OTC or Prescription drug.

  • otc - otc
  • prescription - prescription
  • discontinued - discontinued
Available options:
otc,
prescription,
discontinued

Response

201 - application/json
active_ndcs
string[]
brand_name
string
read-only
created_date
string<date-time> | null
read-only
creation_type
enum<string>
default:user
  • user - user
  • medispan - medispan
  • ss - surescripts
  • disp - dispensary
Available options:
user,
medispan,
ss,
disp
form
string
read-only
generic_name
string
read-only
id
integer<int64>

The id of the medication.

is_controlled
boolean
default:false

Whether the drug is a controlled substance or not.

market_end_date
string<date-time> | null
name
string

The name that will display for the medication in the search and when referenced by the prescription or documented med.

ndcs
string[]

The NDCs of the medication (must contain only one ndc code when creating).

obsolete_date
string<date-time> | null

The date at which this practice medication became obsolete.

practice
integer<int64>

The practice that created the medication. null for medications from the standard formulary.

route
string
read-only
rxnorm_cuis
string[]

The Rxnorm.cui code of the medication (must contain only one cui code when creating).

strength
string | null

The strength of the drug, e.g. 40mg.

Maximum string length: 255
type
enum<string>
default:prescription

Whether the practice medication is an OTC or Prescription drug.

  • otc - otc
  • prescription - prescription
  • discontinued - discontinued
Available options:
otc,
prescription,
discontinued