{
  "id": "DRUG-LOOKUP",
  "title": "Retrieve one drug",
  "shortTitle": "Retrieve a drug",
  "method": "GET",
  "path": "/v1/drugs/{rxcui}",
  "queryPath": null,
  "group": "drugs",
  "unsupportedFields": [],
  "availability": "preview",
  "request": {
    "additionalProperties": false,
    "properties": {
      "rxcui": {
        "pattern": "^[1-9][0-9]{0,15}$",
        "title": "Rxcui",
        "type": "string"
      },
      "include": {
        "items": {
          "const": "mechanism_of_action",
          "type": "string"
        },
        "maxItems": 1,
        "title": "Include",
        "type": "array"
      }
    },
    "required": [
      "rxcui"
    ],
    "title": "DrugLookupRequest",
    "type": "object"
  },
  "response": {
    "$defs": {
      "CodedName": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "title": "CodedName",
        "type": "object"
      },
      "Drug": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "concept_type": {
            "enum": [
              "IN",
              "MIN",
              "PIN"
            ],
            "title": "Concept Type",
            "type": "string"
          },
          "preferred_name": {
            "title": "Preferred Name",
            "type": "string"
          },
          "ingredients": {
            "items": {
              "$ref": "#/$defs/DrugIngredient"
            },
            "minItems": 1,
            "title": "Ingredients",
            "type": "array"
          }
        },
        "required": [
          "concept_type",
          "ingredients",
          "preferred_name",
          "rxcui"
        ],
        "title": "Drug",
        "type": "object"
      },
      "DrugBrandName": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "brand_generic": {
            "enum": [
              "bla",
              "brand",
              "generic"
            ],
            "type": "string",
            "title": "Brand Generic"
          },
          "listing_status": {
            "enum": [
              "active_listing",
              "unknown"
            ],
            "title": "Listing Status",
            "type": "string"
          },
          "kit": {
            "type": "boolean",
            "title": "Kit"
          }
        },
        "required": [
          "listing_status",
          "name"
        ],
        "title": "DrugBrandName",
        "type": "object"
      },
      "DrugClass": {
        "additionalProperties": false,
        "properties": {
          "type": {
            "enum": [
              "CS",
              "EPC",
              "MoA",
              "PE"
            ],
            "title": "Type",
            "type": "string"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "system": {
            "enum": [
              "MED-RT",
              "MeSH",
              "NDF-RT"
            ],
            "title": "System",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "code",
          "name",
          "system",
          "type"
        ],
        "title": "DrugClass",
        "type": "object"
      },
      "DrugFormGroup": {
        "additionalProperties": false,
        "properties": {
          "group_key": {
            "title": "Group Key",
            "type": "string"
          },
          "dosage_form": {
            "$ref": "#/$defs/CodedName"
          },
          "kit": {
            "type": "boolean",
            "title": "Kit"
          },
          "routes": {
            "items": {
              "$ref": "#/$defs/CodedName"
            },
            "title": "Routes",
            "type": "array"
          },
          "strengths": {
            "items": {
              "$ref": "#/$defs/DrugGroupStrength"
            },
            "title": "Strengths",
            "type": "array"
          },
          "product_count": {
            "title": "Product Count",
            "type": "integer"
          },
          "active_count": {
            "title": "Active Count",
            "type": "integer"
          },
          "unknown_count": {
            "title": "Unknown Count",
            "type": "integer"
          },
          "brand_names": {
            "items": {
              "$ref": "#/$defs/DrugBrandName"
            },
            "title": "Brand Names",
            "type": "array"
          },
          "more_brand_names": {
            "type": "boolean",
            "title": "More Brand Names"
          }
        },
        "required": [
          "active_count",
          "brand_names",
          "group_key",
          "product_count",
          "routes",
          "strengths",
          "unknown_count"
        ],
        "title": "DrugFormGroup",
        "type": "object"
      },
      "DrugGroupStrength": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "unii": {
            "type": "string",
            "title": "Unii"
          },
          "strength": {
            "$ref": "#/$defs/Strength"
          }
        },
        "title": "DrugGroupStrength",
        "type": "object"
      },
      "DrugIngredient": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "concept_type": {
            "enum": [
              "IN",
              "PIN"
            ],
            "title": "Concept Type",
            "type": "string"
          },
          "preferred_name": {
            "title": "Preferred Name",
            "type": "string"
          }
        },
        "required": [
          "concept_type",
          "preferred_name",
          "rxcui"
        ],
        "title": "DrugIngredient",
        "type": "object"
      },
      "DrugMechanism": {
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Text",
            "type": "string"
          },
          "basis": {
            "enum": [
              "reference_listed_drug",
              "reference_product",
              "reference_standard"
            ],
            "title": "Basis",
            "type": "string"
          },
          "application_number": {
            "title": "Application Number",
            "type": "string"
          },
          "set_id": {
            "title": "Set Id",
            "type": "string"
          }
        },
        "required": [
          "application_number",
          "basis",
          "set_id",
          "text"
        ],
        "title": "DrugMechanism",
        "type": "object"
      },
      "DrugProfile": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "product_count": {
            "title": "Product Count",
            "type": "integer"
          },
          "active_count": {
            "title": "Active Count",
            "type": "integer"
          },
          "unknown_count": {
            "title": "Unknown Count",
            "type": "integer"
          },
          "generic_available": {
            "enum": [
              "no",
              "unknown",
              "yes"
            ],
            "title": "Generic Available",
            "type": "string"
          },
          "biosimilar_available": {
            "enum": [
              "no",
              "unknown",
              "yes"
            ],
            "type": "string",
            "title": "Biosimilar Available"
          },
          "rx_otc": {
            "items": {
              "enum": [
                "otc",
                "rx"
              ],
              "type": "string"
            },
            "title": "Rx Otc",
            "type": "array"
          },
          "dea_schedules": {
            "items": {
              "enum": [
                "CI",
                "CII",
                "CIII",
                "CIV",
                "CV",
                "unrecognized"
              ],
              "type": "string"
            },
            "title": "Dea Schedules",
            "type": "array"
          },
          "brand_names": {
            "items": {
              "$ref": "#/$defs/DrugBrandName"
            },
            "title": "Brand Names",
            "type": "array"
          },
          "groups": {
            "items": {
              "$ref": "#/$defs/DrugFormGroup"
            },
            "title": "Groups",
            "type": "array"
          },
          "application_numbers": {
            "items": {
              "type": "string"
            },
            "title": "Application Numbers",
            "type": "array"
          },
          "salts": {
            "items": {
              "$ref": "#/$defs/DrugSalt"
            },
            "title": "Salts",
            "type": "array"
          },
          "substances": {
            "items": {
              "$ref": "#/$defs/DrugSubstance"
            },
            "title": "Substances",
            "type": "array"
          },
          "mechanism_of_action": {
            "$ref": "#/$defs/DrugMechanism"
          },
          "rems": {
            "$ref": "#/$defs/RemsCoverage"
          },
          "safety_label_changes": {
            "$ref": "#/$defs/RecentSafetyLabelChanges"
          }
        },
        "required": [
          "active_count",
          "application_numbers",
          "brand_names",
          "dea_schedules",
          "generic_available",
          "groups",
          "product_count",
          "rems",
          "rx_otc",
          "rxcui",
          "safety_label_changes",
          "salts",
          "substances",
          "unknown_count"
        ],
        "title": "DrugProfile",
        "type": "object"
      },
      "DrugSalt": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "preferred_name": {
            "title": "Preferred Name",
            "type": "string"
          }
        },
        "required": [
          "preferred_name",
          "rxcui"
        ],
        "title": "DrugSalt",
        "type": "object"
      },
      "DrugSubstance": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "unii": {
            "title": "Unii",
            "type": "string"
          },
          "classes": {
            "items": {
              "$ref": "#/$defs/DrugClass"
            },
            "title": "Classes",
            "type": "array"
          },
          "names": {
            "items": {
              "$ref": "#/$defs/DrugSubstanceName"
            },
            "title": "Names",
            "type": "array"
          }
        },
        "required": [
          "classes",
          "names",
          "rxcui",
          "unii"
        ],
        "title": "DrugSubstance",
        "type": "object"
      },
      "DrugSubstanceName": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "type": {
            "enum": [
              "common",
              "official",
              "preferred"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "name",
          "type"
        ],
        "title": "DrugSubstanceName",
        "type": "object"
      },
      "ProfileSafetyLabelChange": {
        "additionalProperties": false,
        "properties": {
          "change_id": {
            "title": "Change Id",
            "type": "string"
          },
          "changed_date": {
            "title": "Changed Date",
            "type": "string"
          },
          "application_number": {
            "title": "Application Number",
            "type": "string"
          },
          "sections": {
            "items": {
              "type": "string"
            },
            "title": "Sections",
            "type": "array"
          }
        },
        "required": [
          "application_number",
          "change_id",
          "changed_date",
          "sections"
        ],
        "title": "ProfileSafetyLabelChange",
        "type": "object"
      },
      "RecentSafetyLabelChanges": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "checked",
              "unavailable"
            ],
            "title": "Status",
            "type": "string"
          },
          "since": {
            "type": "string",
            "title": "Since"
          },
          "changes": {
            "items": {
              "$ref": "#/$defs/ProfileSafetyLabelChange"
            },
            "type": "array",
            "title": "Changes"
          },
          "more": {
            "const": true,
            "type": "boolean",
            "title": "More"
          }
        },
        "required": [
          "status"
        ],
        "title": "RecentSafetyLabelChanges",
        "type": "object"
      },
      "RemsCoverage": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "checked",
              "unavailable"
            ],
            "title": "Status",
            "type": "string"
          },
          "programs": {
            "items": {
              "$ref": "#/$defs/RemsProfileProgram"
            },
            "type": "array",
            "title": "Programs"
          }
        },
        "required": [
          "status"
        ],
        "title": "RemsCoverage",
        "type": "object"
      },
      "RemsProfileProgram": {
        "additionalProperties": false,
        "properties": {
          "rems_id": {
            "title": "Rems Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "requirements": {
            "items": {
              "enum": [
                "communication_plan",
                "dispenser_certification",
                "elements_to_assure_safe_use",
                "implementation_system",
                "medication_guide",
                "patient_enrollment",
                "prescriber_certification",
                "prescriber_training"
              ],
              "type": "string"
            },
            "title": "Requirements",
            "type": "array"
          },
          "application_numbers": {
            "items": {
              "type": "string"
            },
            "title": "Application Numbers",
            "type": "array"
          }
        },
        "required": [
          "application_numbers",
          "name",
          "rems_id",
          "requirements"
        ],
        "title": "RemsProfileProgram",
        "type": "object"
      },
      "Strength": {
        "additionalProperties": false,
        "properties": {
          "value": {
            "title": "Value",
            "type": "string"
          },
          "unit": {
            "type": "string",
            "title": "Unit"
          },
          "denominator_value": {
            "type": "string",
            "title": "Denominator Value"
          },
          "denominator_unit": {
            "type": "string",
            "title": "Denominator Unit"
          }
        },
        "required": [
          "value"
        ],
        "title": "Strength",
        "type": "object"
      }
    },
    "additionalProperties": false,
    "properties": {
      "requested_rxcui": {
        "pattern": "^[1-9][0-9]{0,15}$",
        "title": "Requested Rxcui",
        "type": "string"
      },
      "status": {
        "enum": [
          "ingredient_of",
          "matched",
          "redirected"
        ],
        "title": "Status",
        "type": "string"
      },
      "drug": {
        "$ref": "#/$defs/Drug"
      },
      "candidate_rxcuis": {
        "items": {
          "pattern": "^[1-9][0-9]{0,15}$",
          "type": "string"
        },
        "title": "Candidate Rxcuis",
        "type": "array"
      },
      "profile": {
        "$ref": "#/$defs/DrugProfile"
      }
    },
    "required": [
      "drug",
      "profile",
      "requested_rxcui",
      "status"
    ],
    "title": "DrugLookupProfiled",
    "type": "object"
  }
}
