For AI agents: the documentation index is at /docs/aidbox/llms.txt. A Markdown version of this page is available at /docs/aidbox/modules/eprescription/epcs/dea-schedules.md or by requesting it with the Accept: text/markdown header.
Aidbox Docs

DEA Schedules

The module treats a prescription as a controlled prescription when its medication has a DEA schedule.

Store a DEA Schedule

Store the schedule in the http://aidbox.app/ePrescription/FHIRSchema/medication-dea-schedule extension of the medication code:

  • MedicationRequest.medicationCodeableConcept for a prescription without a Medication resource
  • Medication.code
  • Medication.ingredient.itemCodeableConcept for each scheduled ingredient of a compound (see Ingredient Schedules)
Schedule extension example
{
  "url": "http://aidbox.app/ePrescription/FHIRSchema/medication-dea-schedule",
  "valueCodeableConcept": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v2-0477",
        "code": "II",
        "display": "Schedule II"
      }
    ]
  }
}

Schedules in NCPDP Messages

The module sends each schedule in DEASchedule/Code as its NCI Thesaurus (NCIt) code:

  • I: C48672
  • II: C48675
  • III: C48676
  • IV: C48677
  • V: C48679

DrugCoded/DEASchedule carries the schedule of the prescription:

  • for a compound, the strictest ingredient schedule
  • for any other medication, the schedule stored on its code

CompoundIngredient/DEASchedule carries the schedule of each ingredient.

Schedule Checks

When EPCS is disabled (EPCS_MODE=disabled), the module rejects a controlled prescription with epcs-disabled, including a compound with a scheduled ingredient.

A request that fails a check returns 422 with an OperationOutcome.

Error Responses
  • The medication code (Medication.code or MedicationRequest.medicationCodeableConcept):
    • medication-has-multiple-dea-schedules: the code has more than one schedule extension, or more than one coding under http://terminology.hl7.org/CodeSystem/v2-0477 in one extension.
    • dea-schedule-coding-system-is-not-supported: a schedule extension has codings, and none of them is a coding under http://terminology.hl7.org/CodeSystem/v2-0477 that has a code.
    • controlled-substance-invalid-dea-schedule: the schedule is not one of I to V.

Example response for controlled-substance-invalid-dea-schedule:

{
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "invalid",
      "details": {
        "text": "Controlled substance DEASchedule must be one of I, II, III, IV, V"
      },
      "diagnostics": "null"
    }
  ]
}

Last updated: