{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-questionnaire-package-response-schema.json",
  "title": "QuestionnairePackageResponse",
  "description": "FHIR Parameters response containing Questionnaire package bundle",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-questionnairepackage-api-openapi.yml#/components/schemas/QuestionnairePackageResponse",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string"
    },
    "parameter": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResponseParameter"
      }
    }
  },
  "$defs": {
    "Bundle": {
      "type": "object",
      "description": "FHIR Bundle resource",
      "properties": {
        "resourceType": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "entry": {
          "type": "array",
          "description": "Bundle entries",
          "items": {
            "$ref": "#/$defs/Entry"
          }
        }
      }
    },
    "CareTeam": {
      "type": "object",
      "properties": {
        "provider": {
          "$ref": "#/$defs/Reference"
        },
        "responsible": {
          "type": "boolean"
        }
      }
    },
    "Claim": {
      "type": "object",
      "description": "FHIR Claim Inquiry Request",
      "properties": {
        "resourceType": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "meta": {
          "$ref": "#/$defs/Meta"
        },
        "identifier": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Identifier"
          }
        },
        "status": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/CodeableConcept"
        },
        "use": {
          "type": "string"
        },
        "created": {
          "type": "string"
        },
        "patient": {
          "$ref": "#/$defs/Reference"
        },
        "provider": {
          "$ref": "#/$defs/Reference"
        },
        "careTeam": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CareTeam"
          }
        }
      }
    },
    "CodeableConcept": {
      "type": "object",
      "description": "FHIR CodeableConcept",
      "properties": {
        "coding": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Coding"
          }
        }
      }
    },
    "Coding": {
      "type": "object",
      "description": "Coding structure for answers",
      "properties": {
        "code": {
          "type": "string"
        },
        "display": {
          "type": "string"
        }
      }
    },
    "Entry": {
      "type": "object",
      "properties": {
        "resource": {
          "$ref": "#/$defs/Claim"
        }
      }
    },
    "Identifier": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "Meta": {
      "type": "object",
      "description": "FHIR metadata",
      "properties": {
        "profile": {
          "type": "array",
          "description": "FHIR profile URLs",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Reference": {
      "type": "object",
      "description": "FHIR Reference",
      "properties": {
        "reference": {
          "type": "string"
        }
      }
    },
    "ResponseParameter": {
      "type": "object",
      "description": "Response parameter entry",
      "properties": {
        "name": {
          "type": "string",
          "description": "Parameter name containing bundle"
        },
        "resource": {
          "$ref": "#/$defs/Bundle"
        }
      }
    }
  }
}