{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:MedicalStudy",
  "title": "MedicalStudy",
  "description": "A medical study is an umbrella type covering all kinds of research studies relating to human medicine or health, including observational studies and interventional trials and registries, randomized, controlled or not. When the specific type of study is known, use one of the extensions of this type, such as MedicalTrial or MedicalObservationalStudy. Also, note that this type should be used to mark up data that describes the study itself; to tag an article that publishes the results of a study, use MedicalScholarlyArticle. Note: use the code property of MedicalEntity to store study IDs, e.g. clinicaltrials.gov ID.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic type of entity related to health and the practice of medicine.",
      "$ref": "schema:MedicalEntity"
    }
  ],
  "properties": {
    "healthCondition": {
      "description": "Specifying the health condition(s) of a patient, medical study, or other target audience.",
      "$ref": "schema:MedicalCondition"
    },
    "sponsor": {
      "description": "A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.",
      "oneOf": [
        {
          "anyOf": [
            { "$ref": "schema:Organization" },
            { "$ref": "schema:Person" }
          ]
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              { "$ref": "schema:Organization" },
              { "$ref": "schema:Person" }
            ]
          }
        }
      ]
    },
    "status": {
      "description": "The status of the study (enumerated).",
      "anyOf": [
        { "type": "string" },
        { "$ref": "schema:EventStatusType" },
        { "$ref": "schema:MedicalStudyStatus" }
      ]
    },
    "studyLocation": {
      "description": "The location in which the study is taking/took place.",
      "$ref": "schema:AdministrativeArea"
    },
    "studySubject": {
      "description": "A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.",
      "oneOf": [
        { "$ref": "schema:MedicalEntity" },
        { "type": "array", "items": { "$ref": "schema:MedicalEntity" } }
      ]
    }
  }
}
