{
  "id": "CODE-LOOKUP",
  "title": "Look up one code",
  "shortTitle": "Look up a code",
  "method": "GET",
  "path": "/v1/codes/{code}",
  "queryPath": "/v1/codes/lookup",
  "group": "identifiers",
  "unsupportedFields": [],
  "availability": "preview",
  "request": {
    "additionalProperties": false,
    "properties": {
      "code": {
        "maxLength": 512,
        "minLength": 1,
        "title": "Code",
        "type": "string"
      },
      "include": {
        "anyOf": [
          {
            "enum": [
              "ingredients",
              "labels",
              "packages",
              "rating",
              "safety"
            ],
            "type": "string"
          },
          {
            "items": {
              "enum": [
                "ingredients",
                "labels",
                "packages",
                "rating",
                "safety"
              ],
              "type": "string"
            },
            "maxItems": 10,
            "minItems": 1,
            "type": "array"
          }
        ],
        "title": "Include"
      },
      "limit": {
        "default": 20,
        "maximum": 100,
        "minimum": 1,
        "title": "Limit",
        "type": "integer"
      },
      "cursor": {
        "maxLength": 4096,
        "type": "string",
        "title": "Cursor"
      }
    },
    "required": [
      "code"
    ],
    "title": "CodeLookupRequest",
    "type": "object"
  },
  "response": {
    "$defs": {
      "BarcodeRead": {
        "additionalProperties": false,
        "properties": {
          "gtin": {
            "type": "string",
            "title": "Gtin"
          },
          "lot": {
            "type": "string",
            "title": "Lot"
          },
          "serial": {
            "type": "string",
            "title": "Serial"
          },
          "expiry": {
            "format": "date",
            "type": "string",
            "title": "Expiry"
          },
          "package_match_scope": {
            "enum": [
              "ndc_package",
              "ndc_package_only_not_outer_case"
            ],
            "title": "Package Match Scope",
            "type": "string"
          }
        },
        "required": [
          "package_match_scope"
        ],
        "title": "BarcodeRead",
        "type": "object"
      },
      "ClinicalScope": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "enum": [
              "formulation",
              "precise_ingredient",
              "product",
              "route",
              "salt"
            ],
            "title": "Kind",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          },
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "type": "string",
            "title": "Rxcui"
          }
        },
        "required": [
          "kind",
          "value"
        ],
        "title": "ClinicalScope",
        "type": "object"
      },
      "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"
      },
      "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"
      },
      "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"
      },
      "DrugLookupResult": {
        "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"
          }
        },
        "required": [
          "drug",
          "requested_rxcui",
          "status"
        ],
        "title": "DrugLookupResult",
        "type": "object"
      },
      "ExcipientFlag": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "enum": [
              "alcohol",
              "aspartame",
              "beeswax",
              "benzalkonium_chloride",
              "benzoate",
              "benzyl_alcohol",
              "bha_bht",
              "carboxymethylcellulose",
              "castor_oil",
              "cetostearyl_alcohol",
              "coconut",
              "corn",
              "dye",
              "edetate",
              "egg",
              "fish_shellfish",
              "formaldehyde",
              "fragrance",
              "gelatin",
              "gluten_source",
              "iodine",
              "isothiazolinone",
              "lactose",
              "lanolin",
              "latex",
              "maltodextrin_dextrin",
              "milk",
              "paraben",
              "peanut",
              "polyethylene_glycol",
              "polysorbate",
              "povidone",
              "propylene_glycol",
              "saccharin",
              "sesame",
              "shellac",
              "sorbate",
              "soy",
              "starch",
              "sugar",
              "sugar_alcohol",
              "sulfite",
              "tartrazine"
            ],
            "title": "Category",
            "type": "string"
          },
          "ingredients": {
            "items": {
              "$ref": "#/$defs/ExcipientIngredient"
            },
            "minItems": 1,
            "title": "Ingredients",
            "type": "array"
          }
        },
        "required": [
          "category",
          "ingredients"
        ],
        "title": "ExcipientFlag",
        "type": "object"
      },
      "ExcipientIngredient": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "unii": {
            "title": "Unii",
            "type": "string"
          },
          "active": {
            "title": "Active",
            "type": "boolean"
          }
        },
        "required": [
          "active",
          "unii"
        ],
        "title": "ExcipientIngredient",
        "type": "object"
      },
      "Excipients": {
        "additionalProperties": false,
        "properties": {
          "has": {
            "items": {
              "$ref": "#/$defs/ExcipientFlag"
            },
            "title": "Has",
            "type": "array"
          },
          "unclassified_count": {
            "minimum": 0,
            "title": "Unclassified Count",
            "type": "integer"
          }
        },
        "required": [
          "has",
          "unclassified_count"
        ],
        "title": "Excipients",
        "type": "object"
      },
      "IngredientNdc": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "scope": {
            "items": {
              "$ref": "#/$defs/ClinicalScope"
            },
            "type": "array",
            "title": "Scope"
          },
          "as_of": {
            "format": "date",
            "title": "As Of",
            "type": "string"
          }
        },
        "required": [
          "as_of",
          "rxcui"
        ],
        "title": "IngredientNdc",
        "type": "object"
      },
      "InventoryRecall": {
        "additionalProperties": false,
        "properties": {
          "recall_id": {
            "title": "Recall Id",
            "type": "string"
          },
          "recall_number": {
            "type": "string",
            "title": "Recall Number"
          },
          "classification": {
            "type": "string",
            "title": "Classification"
          },
          "enforcement_status_as_published": {
            "type": "string",
            "title": "Enforcement Status As Published"
          },
          "report_date": {
            "type": "string",
            "title": "Report Date"
          },
          "termination_date": {
            "type": "string",
            "title": "Termination Date"
          },
          "match_level": {
            "enum": [
              "package",
              "product"
            ],
            "title": "Match Level",
            "type": "string"
          },
          "matched_ndcs": {
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "title": "Matched Ndcs",
            "type": "array"
          },
          "product_description": {
            "type": "string",
            "title": "Product Description"
          },
          "product_description_truncated": {
            "const": true,
            "type": "boolean",
            "title": "Product Description Truncated"
          },
          "code_information": {
            "type": "string",
            "title": "Code Information"
          },
          "code_information_truncated": {
            "const": true,
            "type": "boolean",
            "title": "Code Information Truncated"
          },
          "lot_match": {
            "enum": [
              "all_lots",
              "indeterminate",
              "matched",
              "not_found"
            ],
            "type": "string",
            "title": "Lot Match"
          },
          "expiry_match": {
            "enum": [
              "in_window",
              "no_window",
              "not_evaluated",
              "outside_window"
            ],
            "type": "string",
            "title": "Expiry Match"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "reason_truncated": {
            "const": true,
            "type": "boolean",
            "title": "Reason Truncated"
          }
        },
        "required": [
          "match_level",
          "matched_ndcs",
          "recall_id"
        ],
        "title": "InventoryRecall",
        "type": "object"
      },
      "InventoryShortage": {
        "additionalProperties": false,
        "properties": {
          "shortage_id": {
            "title": "Shortage Id",
            "type": "string"
          },
          "package_ndc": {
            "type": "string",
            "title": "Package Ndc"
          },
          "generic_name": {
            "type": "string",
            "title": "Generic Name"
          },
          "company": {
            "type": "string",
            "title": "Company"
          },
          "national_shortage_status": {
            "title": "National Shortage Status",
            "type": "string"
          },
          "manufacturer_availability_text": {
            "type": "string",
            "title": "Manufacturer Availability Text"
          },
          "first_posted_date": {
            "type": "string",
            "title": "First Posted Date"
          },
          "updated_date": {
            "type": "string",
            "title": "Updated Date"
          },
          "match_level": {
            "enum": [
              "package",
              "product"
            ],
            "title": "Match Level",
            "type": "string"
          }
        },
        "required": [
          "match_level",
          "national_shortage_status",
          "shortage_id"
        ],
        "title": "InventoryShortage",
        "type": "object"
      },
      "KitPart": {
        "additionalProperties": false,
        "properties": {
          "product_ndc": {
            "type": "string",
            "title": "Product Ndc"
          },
          "product_name": {
            "type": "string",
            "title": "Product Name"
          },
          "dosage_form": {
            "$ref": "#/$defs/CodedName"
          },
          "routes": {
            "items": {
              "$ref": "#/$defs/CodedName"
            },
            "title": "Routes",
            "type": "array"
          },
          "ingredients": {
            "items": {
              "$ref": "#/$defs/ProfileIngredient"
            },
            "title": "Ingredients",
            "type": "array"
          }
        },
        "required": [
          "ingredients",
          "routes"
        ],
        "title": "KitPart",
        "type": "object"
      },
      "OrangeBookExclusivity": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "expiration_date": {
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "title": "Expiration Date",
            "type": "string"
          }
        },
        "required": [
          "code",
          "expiration_date"
        ],
        "title": "OrangeBookExclusivity",
        "type": "object"
      },
      "OrangeBookFacts": {
        "additionalProperties": false,
        "properties": {
          "application": {
            "title": "Application",
            "type": "string"
          },
          "te_codes": {
            "items": {
              "type": "string"
            },
            "title": "Te Codes",
            "type": "array"
          },
          "reference_listed_drug": {
            "type": "boolean",
            "title": "Reference Listed Drug"
          },
          "reference_standard": {
            "type": "boolean",
            "title": "Reference Standard"
          },
          "approval_date": {
            "type": "string",
            "title": "Approval Date"
          },
          "exclusivity": {
            "items": {
              "$ref": "#/$defs/OrangeBookExclusivity"
            },
            "type": "array",
            "title": "Exclusivity"
          }
        },
        "required": [
          "application",
          "te_codes"
        ],
        "title": "OrangeBookFacts",
        "type": "object"
      },
      "PackageQuantity": {
        "additionalProperties": false,
        "properties": {
          "value": {
            "title": "Value",
            "type": "string"
          },
          "unit": {
            "title": "Unit",
            "type": "string"
          }
        },
        "required": [
          "unit",
          "value"
        ],
        "title": "PackageQuantity",
        "type": "object"
      },
      "ProductLabel": {
        "additionalProperties": false,
        "properties": {
          "set_id": {
            "title": "Set Id",
            "type": "string"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "effective_date": {
            "format": "date",
            "type": "string",
            "title": "Effective Date"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "boxed_warning": {
            "type": "boolean",
            "title": "Boxed Warning"
          },
          "labeler": {
            "type": "string",
            "title": "Labeler"
          },
          "repackaged": {
            "type": "boolean",
            "title": "Repackaged"
          }
        },
        "required": [
          "set_id"
        ],
        "title": "ProductLabel",
        "type": "object"
      },
      "ProductPackage": {
        "additionalProperties": false,
        "properties": {
          "package_ndc": {
            "type": "string",
            "title": "Package Ndc"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "container": {
            "type": "string",
            "title": "Container"
          },
          "quantity": {
            "$ref": "#/$defs/PackageQuantity"
          },
          "inside": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Inside"
          },
          "listing_status": {
            "enum": [
              "active_listing",
              "ended",
              "future",
              "not_fda_listed",
              "unknown"
            ],
            "title": "Listing Status",
            "type": "string"
          },
          "billing_unit": {
            "enum": [
              "EA",
              "GM",
              "ML"
            ],
            "type": "string",
            "title": "Billing Unit"
          }
        },
        "required": [
          "listing_status"
        ],
        "title": "ProductPackage",
        "type": "object"
      },
      "ProductProfile": {
        "additionalProperties": false,
        "properties": {
          "product_ndc": {
            "title": "Product Ndc",
            "type": "string"
          },
          "product_name": {
            "title": "Product Name",
            "type": "string"
          },
          "generic_name": {
            "type": "string",
            "title": "Generic Name"
          },
          "brand_generic": {
            "enum": [
              "brand",
              "generic"
            ],
            "type": "string",
            "title": "Brand Generic"
          },
          "labeler": {
            "type": "string",
            "title": "Labeler"
          },
          "dosage_form": {
            "$ref": "#/$defs/CodedName"
          },
          "routes": {
            "items": {
              "$ref": "#/$defs/CodedName"
            },
            "title": "Routes",
            "type": "array"
          },
          "legal_status": {
            "enum": [
              "otc",
              "prescription"
            ],
            "type": "string",
            "title": "Legal Status"
          },
          "product_type": {
            "enum": [
              "allergenic",
              "cellular_therapy",
              "plasma_derivative",
              "vaccine"
            ],
            "type": "string",
            "title": "Product Type"
          },
          "dea_schedule": {
            "enum": [
              "CI",
              "CII",
              "CIII",
              "CIV",
              "CV"
            ],
            "type": "string",
            "title": "Dea Schedule"
          },
          "marketing_category": {
            "type": "string",
            "title": "Marketing Category"
          },
          "shortage_import": {
            "const": true,
            "type": "boolean",
            "title": "Shortage Import"
          },
          "application_numbers": {
            "items": {
              "type": "string"
            },
            "title": "Application Numbers",
            "type": "array"
          },
          "is_generic": {
            "const": true,
            "type": "boolean",
            "title": "Is Generic"
          },
          "is_combination": {
            "type": "boolean",
            "title": "Is Combination"
          },
          "ingredients": {
            "items": {
              "$ref": "#/$defs/ProfileIngredient"
            },
            "type": "array",
            "title": "Ingredients"
          },
          "parts": {
            "items": {
              "$ref": "#/$defs/KitPart"
            },
            "type": "array",
            "title": "Parts"
          },
          "packages": {
            "items": {
              "$ref": "#/$defs/ProductPackage"
            },
            "type": "array",
            "title": "Packages"
          },
          "labels": {
            "items": {
              "$ref": "#/$defs/ProductLabel"
            },
            "minItems": 1,
            "type": "array",
            "title": "Labels"
          },
          "listing_status": {
            "enum": [
              "active_listing",
              "ended",
              "future",
              "not_fda_listed",
              "unknown"
            ],
            "title": "Listing Status",
            "type": "string"
          },
          "as_of": {
            "format": "date",
            "type": "string",
            "title": "As Of"
          },
          "excipients": {
            "$ref": "#/$defs/Excipients"
          },
          "rating": {
            "$ref": "#/$defs/Rating"
          },
          "safety": {
            "$ref": "#/$defs/ProductSafety"
          },
          "rems": {
            "$ref": "#/$defs/RemsCoverage"
          },
          "safety_label_changes": {
            "$ref": "#/$defs/RecentSafetyLabelChanges"
          }
        },
        "required": [
          "application_numbers",
          "listing_status",
          "product_name",
          "product_ndc",
          "routes"
        ],
        "title": "ProductProfile",
        "type": "object"
      },
      "ProductSafety": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "enum": [
              "checked",
              "unavailable"
            ],
            "title": "Status",
            "type": "string"
          },
          "recalls": {
            "items": {
              "$ref": "#/$defs/InventoryRecall"
            },
            "type": "array",
            "title": "Recalls"
          },
          "recalls_more": {
            "const": true,
            "type": "boolean",
            "title": "Recalls More"
          },
          "shortages": {
            "items": {
              "$ref": "#/$defs/InventoryShortage"
            },
            "type": "array",
            "title": "Shortages"
          },
          "shortages_more": {
            "const": true,
            "type": "boolean",
            "title": "Shortages More"
          }
        },
        "required": [
          "status"
        ],
        "title": "ProductSafety",
        "type": "object"
      },
      "ProductSummary": {
        "additionalProperties": false,
        "properties": {
          "product_ndc": {
            "title": "Product Ndc",
            "type": "string"
          },
          "product_name": {
            "title": "Product Name",
            "type": "string"
          },
          "labeler": {
            "type": "string",
            "title": "Labeler"
          },
          "dosage_form": {
            "type": "string",
            "title": "Dosage Form"
          },
          "listing_status": {
            "enum": [
              "active_listing",
              "ended",
              "future",
              "not_fda_listed",
              "unknown"
            ],
            "title": "Listing Status",
            "type": "string"
          },
          "set_ids": {
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "title": "Set Ids",
            "type": "array"
          }
        },
        "required": [
          "listing_status",
          "product_name",
          "product_ndc",
          "set_ids"
        ],
        "title": "ProductSummary",
        "type": "object"
      },
      "ProfileIngredient": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "unii": {
            "type": "string",
            "title": "Unii"
          },
          "role": {
            "enum": [
              "active",
              "inactive",
              "other"
            ],
            "title": "Role",
            "type": "string"
          },
          "strength": {
            "$ref": "#/$defs/Strength"
          },
          "strength_basis": {
            "enum": [
              "active_ingredient",
              "active_moiety",
              "reference_substance"
            ],
            "type": "string",
            "title": "Strength Basis"
          },
          "classes": {
            "items": {
              "$ref": "#/$defs/DrugClass"
            },
            "type": "array",
            "title": "Classes"
          }
        },
        "required": [
          "role"
        ],
        "title": "ProfileIngredient",
        "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"
      },
      "PurpleBookFacts": {
        "additionalProperties": false,
        "properties": {
          "bla": {
            "title": "Bla",
            "type": "string"
          },
          "designation": {
            "enum": [
              "biosimilar",
              "interchangeable",
              "reference"
            ],
            "type": "string",
            "title": "Designation"
          },
          "licensure": {
            "type": "string",
            "title": "Licensure"
          },
          "reference_product": {
            "$ref": "#/$defs/ReferenceProduct"
          },
          "exclusivity_expiration": {
            "type": "string",
            "title": "Exclusivity Expiration"
          },
          "first_interchangeable_exclusivity": {
            "type": "string",
            "title": "First Interchangeable Exclusivity"
          },
          "reference_product_exclusivity": {
            "type": "string",
            "title": "Reference Product Exclusivity"
          }
        },
        "required": [
          "bla"
        ],
        "title": "PurpleBookFacts",
        "type": "object"
      },
      "Rating": {
        "additionalProperties": false,
        "properties": {
          "book": {
            "enum": [
              "orange_book",
              "purple_book"
            ],
            "type": "string",
            "title": "Book"
          },
          "rated": {
            "title": "Rated",
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "orange_book": {
            "$ref": "#/$defs/OrangeBookFacts"
          },
          "purple_book": {
            "$ref": "#/$defs/PurpleBookFacts"
          }
        },
        "required": [
          "rated"
        ],
        "title": "Rating",
        "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"
      },
      "ReferenceProduct": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "bla": {
            "type": "string",
            "title": "Bla"
          },
          "bla_ambiguous": {
            "type": "boolean",
            "title": "Bla Ambiguous"
          }
        },
        "required": [
          "name"
        ],
        "title": "ReferenceProduct",
        "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"
      },
      "RxNormConcept": {
        "additionalProperties": false,
        "properties": {
          "rxcui": {
            "pattern": "^[1-9][0-9]{0,15}$",
            "title": "Rxcui",
            "type": "string"
          },
          "concept_type": {
            "title": "Concept Type",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "concept_type",
          "name",
          "rxcui"
        ],
        "title": "RxNormConcept",
        "type": "object"
      },
      "SearchHint": {
        "additionalProperties": false,
        "properties": {
          "endpoint_id": {
            "const": "MARKETED-PRODUCT-SEARCH",
            "title": "Endpoint Id",
            "type": "string"
          },
          "filter": {
            "const": "contains_substance",
            "title": "Filter",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "filter",
          "value"
        ],
        "title": "SearchHint",
        "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": {
      "code": {
        "title": "Code",
        "type": "string"
      },
      "code_type": {
        "enum": [
          "application",
          "barcode",
          "ndc",
          "rxcui",
          "set_id",
          "unii"
        ],
        "title": "Code Type",
        "type": "string"
      },
      "outcome": {
        "enum": [
          "drug",
          "excipient",
          "ingredient_ndc",
          "ingredient_of",
          "product",
          "products",
          "redirected",
          "rxnorm_ndc"
        ],
        "title": "Outcome",
        "type": "string"
      },
      "product": {
        "$ref": "#/$defs/ProductProfile"
      },
      "package": {
        "$ref": "#/$defs/ProductPackage"
      },
      "barcode": {
        "$ref": "#/$defs/BarcodeRead"
      },
      "drug": {
        "$ref": "#/$defs/DrugLookupResult"
      },
      "rxnorm": {
        "$ref": "#/$defs/RxNormConcept"
      },
      "ingredient_ndc": {
        "$ref": "#/$defs/IngredientNdc"
      },
      "products": {
        "items": {
          "$ref": "#/$defs/ProductSummary"
        },
        "type": "array",
        "title": "Products"
      },
      "more_products": {
        "type": "boolean",
        "title": "More Products"
      },
      "search": {
        "$ref": "#/$defs/SearchHint"
      }
    },
    "required": [
      "code",
      "code_type",
      "outcome"
    ],
    "title": "CodeLookup",
    "type": "object"
  }
}
