{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "http://smart.who.int/base/StructureDefinition-HealthInterventionsSource.schema.json",
  "title": "Health Interventions Source",
  "description": "Source reference for Health Interventions - exactly one of the following must be provided:\n- url (url data type): URL to retrieve HealthInterventions definition from input/ or external source\n- canonical (canonical data type): Canonical URI pointing to the HealthInterventions definition\n- instance: Inline HealthInterventions instance data",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "const": "HealthInterventionsSource",
      "description": "Resource type identifier for HealthInterventionsSource logical model"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to retrieve HealthInterventions definition from input/ or external source"
    },
    "canonical": {
      "type": "string",
      "format": "uri",
      "description": "Canonical URI pointing to the HealthInterventions definition"
    },
    "instance": {
      "$ref": "StructureDefinition-HealthInterventions.schema.json",
      "description": "Inline HealthInterventions instance data"
    }
  },
  "required": [
    "resourceType"
  ],
  "allOf": [
    {
      "$ref": "./StructureDefinition-FHIRSchemaBase.schema.json"
    },
    {
      "type": "object",
      "properties": {
        "resourceDefinition": {
          "type": "string",
          "format": "uri",
          "const": "http://smart.who.int/base/StructureDefinition/HealthInterventionsSource"
        },
        "fhir:parent": {
          "type": "string",
          "const": "http://hl7.org/fhir/StructureDefinition/Base"
        }
      }
    }
  ]
}