{
  "openapi": "3.0.3",
  "info": {
    "title": "FHIR Schema Base (SMART Guidelines) API",
    "description": "Base logical model providing the common schema metadata interface inherited by all SMART Guidelines logical models. Every SMART Guidelines logical model schema derives from this base, which documents the shared FHIR and JSON-LD metadata properties used by the JSON Schema generation pipeline.",
    "version": "1.0.0"
  },
  "paths": {
    "/StructureDefinition-FHIRSchemaBase.schema.json": {
      "get": {
        "summary": "JSON Schema definition for the Logical Model StructureDefinition-FHIRSchemaBase",
        "description": "This endpoint serves the JSON Schema definition for the Logical Model StructureDefinition-FHIRSchemaBase.",
        "responses": {
          "200": {
            "description": "The JSON Schema for StructureDefinition-FHIRSchemaBase",
            "content": {
              "application/schema+json": {
                "schema": {
                  "$ref": "./StructureDefinition-FHIRSchemaBase.schema.json"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StructureDefinition-FHIRSchemaBase": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "http://smart.who.int/base/StructureDefinition-FHIRSchemaBase.schema.json",
        "title": "FHIR Schema Base (SMART Guidelines)",
        "description": "Base logical model providing the common schema metadata interface inherited by all SMART Guidelines logical models. Every SMART Guidelines logical model schema derives from this base, which documents the shared FHIR and JSON-LD metadata properties used by the JSON Schema generation pipeline.",
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "description": "The FHIR resource type identifying this logical model resource"
          },
          "resourceDefinition": {
            "type": "string",
            "format": "uri",
            "description": "Canonical URI of the FHIR StructureDefinition that defines this logical model"
          },
          "fhirParent": {
            "type": "string",
            "description": "The FHIR parent base type from which this logical model is derived (serialised as 'fhir:parent' in JSON)"
          },
          "jsonldValuesets": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "description": "ValueSet identifiers used in this logical model for JSON-LD context generation (serialised as 'jsonld:valuesets' in JSON)"
          },
          "jsonldContextTemplate": {
            "type": "string",
            "description": "JSON-LD context template for this logical model (serialised as 'jsonld:contextTemplate' in JSON)"
          }
        },
        "required": [
          "resourceType"
        ],
        "resourceDefinition": "http://smart.who.int/base/StructureDefinition/FHIRSchemaBase",
        "fhir:parent": "http://hl7.org/fhir/StructureDefinition/Base"
      }
    }
  }
}