{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:DrugCost",
  "title": "DrugCost",
  "description": "The cost per unit of a medical drug. Note that this type is not meant to represent the price in an offer of a drug for sale; see the Offer type for that. This type will typically be used to tag wholesale or average retail cost of a drug, or maximum reimbursable cost. Costs of medical drugs vary widely depending on how and where they are paid for, so while this type captures some of the variables, costs should be used with caution by consumers of this schema's markup.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic type of entity related to health and the practice of medicine.",
      "$ref": "schema:MedicalEntity"
    }
  ],
  "properties": {
    "applicableLocation": {
      "description": "The location in which the status applies.",
      "$ref": "schema:AdministrativeArea"
    },
    "costCategory": {
      "description": "The category of cost, such as wholesale, retail, reimbursement cap, etc.",
      "$ref": "schema:DrugCostCategory"
    },
    "costCurrency": {
      "description": "The currency (in 3-letter) of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217. ",
      "type": "string"
    },
    "costOrigin": {
      "description": "Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.",
      "type": "string"
    },
    "costPerUnit": {
      "description": "The cost per unit of the drug.",
      "anyOf": [
        { "type": "number" },
        { "type": "string" },
        { "$ref": "schema:QualitativeValue" }
      ]
    },
    "drugUnit": {
      "description": "The unit in which the drug is measured, e.g. '5 mg tablet'.",
      "type": "string"
    }
  }
}
