{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:MedicalTherapy",
  "title": "MedicalTherapy",
  "description": "Any medical intervention designed to prevent, treat, and cure human diseases and medical conditions, including both curative and palliative therapies. Medical therapies are typically processes of care relying upon pharmacotherapy, behavioral therapy, supportive therapy (with fluid or nutrition for example), or detoxification (e.g. hemodialysis) aimed at improving or preventing a health condition.",
  "type": "object",
  "allOf": [
    {
      "description": "A medical procedure intended primarily for therapeutic purposes, aimed at improving a health condition.",
      "$ref": "schema:TherapeuticProcedure"
    }
  ],
  "properties": {
    "contraindication": {
      "description": "A contraindication for this therapy.",
      "oneOf": [
        {
          "anyOf": [
            { "type": "string" },
            { "$ref": "schema:MedicalContraindication" }
          ]
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              { "type": "string" },
              { "$ref": "schema:MedicalContraindication" }
            ]
          }
        }
      ]
    },
    "duplicateTherapy": {
      "description": "A therapy that duplicates or overlaps this one.",
      "oneOf": [
        { "$ref": "schema:MedicalTherapy" },
        { "type": "array", "items": { "$ref": "schema:MedicalTherapy" } }
      ]
    },
    "seriousAdverseOutcome": {
      "description": "A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.",
      "oneOf": [
        { "$ref": "schema:MedicalEntity" },
        { "type": "array", "items": { "$ref": "schema:MedicalEntity" } }
      ]
    }
  }
}
