changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": false,
+ "anyOf": [
+ {
+ "required": [
+ "granularity",
+ "period",
+ "series"
+ ]
+ },
+ {
+ "required": [
+ "error"
+ ]
+ }
+ ],
+ "description": "Série temporal de internações, anual (`year`) ou mensal (`year_month`); `error` quando nenhum ano do intervalo tem dado",
+ "properties": {
+ "attribution": {
+ "description": "URLs canônicas das fontes desta resposta (lista de atribuição)",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "available_sih_years": {
+ "description": "Anos com dados SIH atendíveis por este servidor",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "data": {
+ "description": "Sempre vazio: só aparece no caminho de erro-mole do funil",
+ "items": {},
+ "type": "array"
+ },
+ "error": {
+ "description": "Motivo pelo qual não há dados nesta resposta (ano sem dado, cobertura populacional, falha na consulta)",
+ "type": "string"
+ },
+ "granularity": {
+ "description": "Grão da série",
+ "enum": [
+ "yearly",
+ "monthly"
+ ]
+ },
+ "note": {
+ "description": "Como obter o dado (por exemplo, consultar get_available_years)",
+ "type": "string"
+ },
+ "notes": {
+ "description": "Avisos que qualificam os números: era CID-9, raça/cor ausente, universo do % ICSAP, denominador populacional, truncamento",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "period": {
+ "additionalProperties": false,
+ "description": "Intervalo pedido",
+ "properties": {
+ "end": {
+ "description": "Ano (anual) ou AAAA-MM (mensal) final",
+ "type": [
+ "number",
+ "string"
+ ]
+ },
+ "start": {
+ "description": "Ano (anual) ou AAAA-MM (mensal) inicial",
+ "type": [
+ "number",
+ "string"
+ ]
+ }
+ },
+ "required": [
+ "start",
+ "end"
+ ],
+ "type": "object"
+ },
+ "provenance": {
+ "additionalProperties": false,
+ "description": "Bloco de proveniência (contrato v1.0): fonte, URL, competência, extração e licença",
+ "properties": {
+ "citation": {
+ "description": "Citação pronta para uso",
+ "type": "string"
+ },
+ "data_vintage": {
+ "description": "Competência ou safra do dado segundo a fonte; null quando a fonte não expõe",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "license": {
+ "description": "Regime legal do dado (id SPDX quando há)",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "retrieved_at": {
+ "description": "Instante REAL da extração na origem (ISO-8601)",
+ "type": "string"
+ },
+ "source": {
+ "description": "Fonte oficial do dado",
+ "type": "string"
+ },
+ "source_url": {
+ "description": "URL canônica que reproduz a consulta ou localiza a fonte",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "source_url",
+ "data_vintage",
+ "retrieved_at",
+ "citation",
+ "license"
+ ],
+ "type": "object"
+ },
+ "series": {
+ "description": "Um ponto por ano ou por mês, em ordem cronológica",
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Ponto anual",
+ "properties": {
+ "deaths": {
+ "description": "Óbitos no ano",
+ "type": "number"
+ },
+ "n_hospitalizations": {
+ "description": "Internações no ano",
+ "type": "number"
+ },
+ "year": {
+ "description": "Ano",
+ "type": "number"
+ }
+ },
+ "required": [
+ "year",
+ "n_hospitalizations",
+ "deaths"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Ponto mensal",
+ "properties": {
+ "deaths": {
+ "description": "Óbitos no mês",
+ "type": "number"
+ },
+ "n": {
+ "description": "Internações no mês",
+ "type": "number"
+ },
+ "year_month": {
+ "description": "Competência AAAA-MM",
+ "type": "string"
+ }
+ },
+ "required": [
+ "year_month",
+ "n",
+ "deaths"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "years_not_available": {
+ "additionalProperties": false,
+ "description": "Presente só quando parte dos anos pedidos não tem dado: os números cobrem apenas os anos atendidos",
+ "properties": {
+ "note": {
+ "description": "Quais anos ficaram fora e quais os números cobrem",
+ "type": "string"
+ },
+ "years": {
+ "description": "Anos pedidos que não têm dados SIH e ficaram fora do resultado",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "years",
+ "note"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "provenance",
+ "attribution"
+ ],
+ "type": "object"
+}