Skip to content
Snippets Groups Projects
Commit 0fbd41f3 authored by lcd22's avatar lcd22
Browse files

testando json simplificado

parent 9c9088cb
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@ schema = StructType([
StructField("cnes", LongType(), True),
StructField("ine", LongType(), True),
StructField("dataAtendimento", DateType(), True),
StructField("condicoesDeSaude", StructType([
StructField("descricaoCausaInternacaoEm12Meses", StringType(), True),
StructField("descricaoOutraCondicao1", StringType(), True),
StructField("descricaoOutraCondicao2", StringType(), True),
......@@ -51,9 +50,7 @@ schema = StructType([
StructField("statusTeveInternadoem12Meses", BooleanType(), True),
StructField("statusUsaOutrasPraticasIntegrativasOuComplementares", BooleanType(), True),
StructField("statusUsaPlantasMedicinais", BooleanType(), True),
StructField("statusDiagnosticoMental", StringType(), True)
]), True),
StructField("emSituacaoDeRua", StructType([
StructField("statusDiagnosticoMental", StringType(), True),
StructField("grauParentescoFamiliarFrequentado", StringType(), True),
StructField("higienePessoalSituacaoRua", ArrayType(StringType()), True),
StructField("origemAlimentoSituacaoRua", ArrayType(StringType()), True),
......@@ -65,9 +62,7 @@ schema = StructType([
StructField("statusSituacaoRua", BooleanType(), True),
StructField("statusTemAcessoHigienePessoalSituacaoRua", BooleanType(), True),
StructField("statusVisitaFamiliarFrequentemente", BooleanType(), True),
StructField("tempoSituacaoRua", StringType(), True)
]), True),
StructField("identificacaoUsuarioCidadao", StructType([
StructField("tempoSituacaoRua", StringType(), True),
StructField("nomeSocial", StringType(), True),
StructField("município", StringType(), True),
StructField("dataNascimentoCidadao", DateType(), True),
......@@ -92,9 +87,7 @@ schema = StructType([
StructField("microarea", LongType(), True),
StructField("stForaArea", BooleanType(), True),
StructField("cpfCidadao", StringType(), True),
StructField("cpfResponsavelFamiliar", StringType(), True)
]), True),
StructField("InformacoesSocioDemograficas", StructType([
StructField("cpfResponsavelFamiliar", StringType(), True),
StructField("deficienciasCidadao", ArrayType(StringType()), True),
StructField("grauInstrucaoCidadao", StringType(), True),
StructField("ocupacao", StringType(), True),
......@@ -111,14 +104,11 @@ schema = StructType([
StructField("identidadeGeneroCidadao", StringType(), True),
StructField("statusDesejaInformarIdentidadeGenero", BooleanType(), True),
StructField("responsavelPorCrianca", StringType(), True),
StructField("coPovoComunidadeTradicional", StringType(), True)
]), True),
StructField("coPovoComunidadeTradicional", StringType(), True),
StructField("statusTermoRecusaCadastroIndividualAtencaoBasica", BooleanType(), True),
StructField("saidaCidadaoCadastro", StructType([
StructField("motivoSaidaCidadao", StringType(), True),
StructField("dataObito", DateType(), True),
StructField("numeroDO", StringType(), True)
]), True)
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment