├── thrift
├── layout-ras
│ ├── gen-py
│ │ ├── __init__.py
│ │ └── br
│ │ │ ├── __init__.py
│ │ │ └── gov
│ │ │ ├── __init__.py
│ │ │ └── saude
│ │ │ ├── __init__.py
│ │ │ └── esusab
│ │ │ ├── __init__.py
│ │ │ └── ras
│ │ │ ├── __init__.py
│ │ │ ├── common
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── vacinacao
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── atendodonto
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── solicitacaooci
│ │ │ ├── __init__.py
│ │ │ ├── constants.py
│ │ │ └── ttypes.py
│ │ │ ├── atenddomiciliar
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── atendindividual
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── atendprocedimentos
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── atividadecoletiva
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── cadastrodomiciliar
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── cadastroindividual
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── complementarzika
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── consumoalimentar
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── visitadomiciliar
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ ├── avaliacaoelegibilidade
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ │ │ └── cuidadocompartilhado
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ ├── gen-rb
│ │ ├── common_constants.rb
│ │ ├── ficha_vacinacao_constants.rb
│ │ ├── solicitacao_oci_constants.rb
│ │ ├── cadastro_domiciliar_constants.rb
│ │ ├── cadastro_individual_constants.rb
│ │ ├── ficha_atendimento_odonto_constants.rb
│ │ ├── cuidado_compartilhado_constants.rb
│ │ ├── ficha_atividade_coletiva_constants.rb
│ │ ├── ficha_consumo_alimentar_constants.rb
│ │ ├── ficha_visita_domiciliar_constants.rb
│ │ ├── ficha_atendimento_domiciliar_constants.rb
│ │ ├── ficha_atendimento_individual_constants.rb
│ │ ├── ficha_atendimento_procedimento_constants.rb
│ │ ├── ficha_avaliacao_elegibilidade_constants.rb
│ │ ├── ficha_complementar_zika_microcefalia_constants.rb
│ │ └── solicitacao_oci_types.rb
│ ├── gen-go
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esusab
│ │ │ └── ras
│ │ │ ├── common
│ │ │ └── constants.go
│ │ │ ├── solicitacaooci
│ │ │ └── constants.go
│ │ │ ├── vacinacao
│ │ │ └── constants.go
│ │ │ ├── atenddomiciliar
│ │ │ └── constants.go
│ │ │ ├── complementarzika
│ │ │ └── constants.go
│ │ │ ├── consumoalimentar
│ │ │ └── constants.go
│ │ │ ├── visitadomiciliar
│ │ │ └── constants.go
│ │ │ ├── atendprocedimentos
│ │ │ └── constants.go
│ │ │ ├── atividadecoletiva
│ │ │ └── constants.go
│ │ │ ├── cadastrodomiciliar
│ │ │ └── constants.go
│ │ │ ├── cadastroindividual
│ │ │ └── constants.go
│ │ │ ├── cuidadocompartilhado
│ │ │ └── constants.go
│ │ │ ├── avaliacaoelegibilidade
│ │ │ └── constants.go
│ │ │ ├── atendodonto
│ │ │ └── constants.go
│ │ │ └── atendindividual
│ │ │ └── constants.go
│ ├── thrift
│ │ ├── solicitacao_oci.thrift
│ │ ├── ficha_atendimento_domiciliar.thrift
│ │ ├── cuidado_compartilhado.thrift
│ │ ├── ficha_complementar_zika_microcefalia.thrift
│ │ ├── ficha_atendimento_procedimento.thrift
│ │ ├── ficha_visita_domiciliar.thrift
│ │ ├── ficha_atividade_coletiva.thrift
│ │ ├── ficha_vacinacao.thrift
│ │ ├── ficha_avaliacao_elegibilidade.thrift
│ │ ├── ficha_atendimento_odonto.thrift
│ │ ├── ficha_atendimento_individual.thrift
│ │ └── cadastro_domiciliar.thrift
│ ├── gen-csharp
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esusab
│ │ │ └── ras
│ │ │ └── consumoalimentar
│ │ │ ├── RespostaMultiplaEscolhaEnumThrift.cs
│ │ │ ├── RespostaUnicaEscolhaEnumThrift.cs
│ │ │ ├── PerguntaCriancasMenoresSeisMesesEnumThrift.cs
│ │ │ ├── PerguntaCriancasComMaisDoisAnosEnumThrift.cs
│ │ │ └── PerguntaCriancasDeSeisVinteTresMesesEnumThrift.cs
│ ├── gen-javabean
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esusab
│ │ │ └── ras
│ │ │ └── consumoalimentar
│ │ │ ├── RespostaMultiplaEscolhaEnumThrift.java
│ │ │ ├── PerguntaCriancasMenoresSeisMesesEnumThrift.java
│ │ │ ├── RespostaUnicaEscolhaEnumThrift.java
│ │ │ ├── PerguntaCriancasComMaisDoisAnosEnumThrift.java
│ │ │ └── PerguntaCriancasDeSeisVinteTresMesesEnumThrift.java
│ ├── gen-nodejs
│ │ └── solicitacao_oci_types.js
│ └── gen-php
│ │ └── br
│ │ └── gov
│ │ └── saude
│ │ └── esusab
│ │ └── ras
│ │ └── solicitacaooci
│ │ └── Types.php
├── layout-camada-transport
│ ├── gen-py
│ │ ├── __init__.py
│ │ └── br
│ │ │ ├── __init__.py
│ │ │ └── gov
│ │ │ ├── __init__.py
│ │ │ └── saude
│ │ │ ├── __init__.py
│ │ │ └── esusab
│ │ │ ├── __init__.py
│ │ │ └── dadotransp
│ │ │ ├── __init__.py
│ │ │ └── constants.py
│ ├── gen-rb
│ │ └── dado_transporte_constants.rb
│ ├── gen-go
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esusab
│ │ │ └── dadotransp
│ │ │ └── constants.go
│ └── thrift
│ │ └── dado_transporte.thrift
├── hash
│ ├── common.thrift.sha256
│ ├── cidadao_transport.thrift.sha256
│ ├── dado_transporte.thrift.sha256
│ ├── ficha_vacinacao.thrift.sha256
│ ├── solicitacao_oci.thrift.sha256
│ ├── cadastro_domiciliar.thrift.sha256
│ ├── cadastro_individual.thrift.sha256
│ ├── cuidado_compartilhado.thrift.sha256
│ ├── ficha_consumo_alimentar.thrift.sha256
│ ├── ficha_visita_domiciliar.thrift.sha256
│ ├── ficha_atendimento_domiciliar.thrift.sha256
│ ├── ficha_atendimento_individual.thrift.sha256
│ ├── ficha_atendimento_odonto.thrift.sha256
│ ├── ficha_atividade_coletiva.thrift.sha256
│ ├── ficha_atendimento_procedimento.thrift.sha256
│ ├── ficha_avaliacao_elegibilidade.thrift.sha256
│ └── ficha_complementar_zika_microcefalia.thrift.sha256
├── thrift_build.sh
├── layout-cidadao
│ ├── gen-rb
│ │ └── cidadao_constants.rb
│ ├── gen-csharp
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esus
│ │ │ └── thrift
│ │ │ └── definition
│ │ │ └── cidadao
│ │ │ ├── SexoThrift.cs
│ │ │ └── TipoSanguineoThrift.cs
│ ├── gen-javabean
│ │ └── br
│ │ │ └── gov
│ │ │ └── saude
│ │ │ └── esus
│ │ │ └── thrift
│ │ │ └── definition
│ │ │ └── cidadao
│ │ │ ├── SexoThrift.java
│ │ │ └── TipoSanguineoThrift.java
│ └── thrift
│ │ └── cidadao_transport.thrift
└── thrift_build_with_docker.sh
├── banner.png
├── thrift-exemplo
├── delphi
│ ├── ThriftExample.dpr
│ └── src
│ │ ├── common
│ │ ├── ZipWriterExemplo.pas
│ │ └── ThriftSerializer.pas
│ │ └── thriftutils
│ │ ├── Thrift.Defines.inc
│ │ └── Thrift.TypeRegistry.pas
└── java
│ ├── src
│ └── main
│ │ ├── resources
│ │ └── log4j.properties
│ │ └── java
│ │ ├── exemplo
│ │ ├── common
│ │ │ └── SerializadorThrift.java
│ │ └── zip
│ │ │ └── ExemploGeracaoZip.java
│ │ └── br
│ │ └── gov
│ │ └── saude
│ │ └── esus
│ │ └── ras
│ │ └── consumoalimentar
│ │ ├── RespostaMultiplaEscolhaEnumThrift.java
│ │ ├── PerguntaCriancasMenoresSeisMesesEnumThrift.java
│ │ ├── RespostaUnicaEscolhaEnumThrift.java
│ │ ├── PerguntaCriancasComMaisDoisAnosEnumThrift.java
│ │ └── PerguntaCriancasDeSeisVinteTresMesesEnumThrift.java
│ ├── README.md
│ └── pom.xml
├── .gitignore
├── XSD
├── solicitacaooci.xsd
├── versao.xsd
├── exame.xsd
├── resultadoexame.xsd
├── procedimentoquantidade.xsd
├── profissionalcborowitem.xsd
├── informacoessocioeconomicas.xsd
├── saidacidadaocadastro.xsd
├── lotacaoheader.xsd
├── respostamultiplaescolhaenum.xsd
├── encaminhamentoexterno.xsd
├── lotacao.xsd
├── problemacondicaoavaliacaoai.xsd
├── unicalotacaoheader.xsd
├── perguntacriancasmenoresseismesesenum.xsd
├── respostaunicaescolhaenum.xsd
├── instituicaopermanencia.xsd
├── variaslotacoesheader.xsd
├── resultadosexame.xsd
├── perguntacriancascommaisdoisanosenum.xsd
├── familiarow.xsd
├── problemacondicao.xsd
├── participanterowitem.xsd
├── perguntaquestionariocriancasmenoresseismeses.xsd
├── perguntaquestionariocriancasdeseisvintetresmeses.xsd
├── dadoinstalacao.xsd
├── ivcf.xsd
├── medicoes.xsd
├── fichavacinacaomaster.xsd
├── fichavacinacaochild.xsd
├── perguntaquestionariocriancascommaisdoisanos.xsd
├── fichavisitadomiciliarmaster.xsd
├── fichaatendimentodomiciliarchild.xsd
├── vacinarow.xsd
├── enderecolocalpermanencia.xsd
├── dadotransporte.xsd
├── emsituacaoderua.xsd
├── fichaprocedimentochild.xsd
├── condicaomoradia.xsd
├── medicamento.xsd
├── perguntacriancasdeseisvintetresmesesenum.xsd
├── fichaatendimentodomiciliarmaster.xsd
├── fichaprocedimentomaster.xsd
├── informacoessociodemograficas.xsd
├── fichavisitadomiciliarchild.xsd
├── cuidadocompartilhado.xsd
├── identificacaousuariocidadao.xsd
├── fichacomplementarzikamicrocefalia.xsd
├── fichaatividadecoletiva.xsd
├── fichaatendimentoindividualmaster.xsd
├── cadastroindividual.xsd
├── cadastrodomiciliar.xsd
├── fichaatendimentoodontologicomaster.xsd
└── condicoesdesaude.xsd
├── README.md
└── xml-exemplo
├── Cadastro_Domiciliar_Recusa.esus.xml
├── Atividade_Coletiva_Reuniao.esus.xml
├── Complementar_Zika_Microcefalia.esus.xml
├── Cadastro_Individual_Recusa.esus.xml
└── Atividade_Coletiva_EducacaoSaude.esus.xml
/thrift/layout-ras/gen-py/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/gov/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/gov/saude/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/gov/saude/esusab/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laboratoriobridge/esusaps-integracao/HEAD/banner.png
--------------------------------------------------------------------------------
/thrift/hash/common.thrift.sha256:
--------------------------------------------------------------------------------
1 | 6ed35415e84118090b0134c18db818e554057775865ab90e36abd1b86cc20a04
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/common/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/vacinacao/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/hash/cidadao_transport.thrift.sha256:
--------------------------------------------------------------------------------
1 | 67ab748fdd395d128fa4bc20d84a914d72a003a0f659ae252d63967a165ec3f1
2 |
--------------------------------------------------------------------------------
/thrift/hash/dado_transporte.thrift.sha256:
--------------------------------------------------------------------------------
1 | 07f0319b1a3dc3d7ecff7a55c775854e7f1b885f4f913f23e430584ad7766af0
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_vacinacao.thrift.sha256:
--------------------------------------------------------------------------------
1 | 363488c7ee67d20a5684e6e34b814e4a58df5bdfffe6e83a6ad692cc0b3acee9
2 |
--------------------------------------------------------------------------------
/thrift/hash/solicitacao_oci.thrift.sha256:
--------------------------------------------------------------------------------
1 | ec623268379906f1dbf244fe80f1f5dd4ee0918a3f6be026426eeaa765f03479
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendodonto/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/solicitacaooci/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/hash/cadastro_domiciliar.thrift.sha256:
--------------------------------------------------------------------------------
1 | d05edadaf960aa67b4a5b51644c3d7ccf0eabdd1fff19c717dcb0bd4e5d07808
2 |
--------------------------------------------------------------------------------
/thrift/hash/cadastro_individual.thrift.sha256:
--------------------------------------------------------------------------------
1 | 3ce363798676f08a12d63016fc42328616fa1edf841734595558d7e158372e8d
2 |
--------------------------------------------------------------------------------
/thrift/hash/cuidado_compartilhado.thrift.sha256:
--------------------------------------------------------------------------------
1 | 1c4bb6f667558b864a6e7826c7120f4e65cc44924a1ef88a25ef88f84a4d2b45
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_consumo_alimentar.thrift.sha256:
--------------------------------------------------------------------------------
1 | c6faf407e73ea30a33b8c9a5be7527d492bf3e2d8c5a95eceb8353c29aaa710c
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_visita_domiciliar.thrift.sha256:
--------------------------------------------------------------------------------
1 | 1c0d60c9feff0bf6c6dff6dcc0d45b0486805d1c207b9fd990eddadf0f4586f0
2 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/gov/saude/esusab/dadotransp/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atenddomiciliar/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendindividual/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendprocedimentos/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atividadecoletiva/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cadastrodomiciliar/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cadastroindividual/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/complementarzika/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/consumoalimentar/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/visitadomiciliar/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_atendimento_domiciliar.thrift.sha256:
--------------------------------------------------------------------------------
1 | e6acdeb4b6b2c3b301877f3c9c1c79e8a1eae48c6e8e384810a3b0159dc8165c
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_atendimento_individual.thrift.sha256:
--------------------------------------------------------------------------------
1 | 2e3b81b819e964b62ecea2d0c17f919e05d4b0c80f9c2887779c3c9f1709a0fd
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_atendimento_odonto.thrift.sha256:
--------------------------------------------------------------------------------
1 | db05199c9018023381511d3228d6ae219586949525faa7f13364af1572a97e5c
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_atividade_coletiva.thrift.sha256:
--------------------------------------------------------------------------------
1 | 5450b202c61f6192968df4326bd0a20d7b5311d087faca6c0ea279664791602c
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/avaliacaoelegibilidade/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cuidadocompartilhado/__init__.py:
--------------------------------------------------------------------------------
1 | __all__ = ['ttypes', 'constants']
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_atendimento_procedimento.thrift.sha256:
--------------------------------------------------------------------------------
1 | e49dff289e8fb04bab71d9842d85bf911439b32f493d42a73d38b265cb990aa6
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_avaliacao_elegibilidade.thrift.sha256:
--------------------------------------------------------------------------------
1 | a79ce6451decc7004a1f430f50a994a212a7cfa169b85d16f597bf029389dddf
2 |
--------------------------------------------------------------------------------
/thrift/hash/ficha_complementar_zika_microcefalia.thrift.sha256:
--------------------------------------------------------------------------------
1 | 85b97b3ab33b85b6d1a090e2d376647a764e1e512cf7fa64d96af7631bdc299d
2 |
--------------------------------------------------------------------------------
/thrift-exemplo/delphi/ThriftExample.dpr:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laboratoriobridge/esusaps-integracao/HEAD/thrift-exemplo/delphi/ThriftExample.dpr
--------------------------------------------------------------------------------
/thrift/thrift_build.sh:
--------------------------------------------------------------------------------
1 | LANGS="java:beans php delphi csharp rb go py js:node"
2 |
3 | for LANG in $LANGS
4 | do
5 | for FILE in thrift/*.thrift
6 | do
7 | thrift --gen $LANG $FILE
8 | done
9 |
10 | done
11 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/gen-rb/cidadao_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.0)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'cidadao_types'
9 |
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | html/_site/
2 |
3 | *.dcu
4 | *.exe
5 | *.class
6 | *.project
7 | *.orig
8 | *.dproj.local
9 | *.res
10 | *.identcache
11 | **/.classpath
12 | **/.factorypath
13 | .settings
14 |
15 | # Eclipse e Mvn #
16 | bin/
17 | build/
18 | target/
19 | metamodel/
20 | __history/
21 |
22 | .idea/
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/common/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendodonto/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/vacinacao/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atenddomiciliar/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendindividual/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/complementarzika/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/consumoalimentar/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/solicitacaooci/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/visitadomiciliar/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-py/br/gov/saude/esusab/dadotransp/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.2)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atendprocedimentos/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/atividadecoletiva/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cadastrodomiciliar/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cadastroindividual/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/cuidadocompartilhado/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/avaliacaoelegibilidade/constants.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 | from ttypes import *
11 |
12 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | # Root logger option
2 | log4j.rootLogger=INFO, stdout
3 |
4 | # Direct log messages to stdout
5 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
6 | log4j.appender.stdout.target=System.out
7 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
8 | log4j.appender.stdout.layout.conversionPattern=%-5p %d{dd/MM/yy HH:mm:ss} %c{1}: %m%n
9 |
--------------------------------------------------------------------------------
/XSD/solicitacaooci.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-rb/dado_transporte_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.2)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'dado_transporte_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Dadotransp
15 | end
16 | end
17 | end
18 | end
19 | end
20 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/common_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'common_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Common
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_vacinacao_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_vacinacao_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Vacinacao
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/solicitacao_oci_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'solicitacao_oci_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Solicitacaooci
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/gen-csharp/br/gov/saude/esus/thrift/definition/cidadao/SexoThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.0)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esus.thrift.definition.cidadao
9 | {
10 | public enum SexoThrift
11 | {
12 | MASCULINO = 0,
13 | FEMININO = 1,
14 | AMBOS = 2,
15 | NAO_INFORMADO = 3,
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/cadastro_domiciliar_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'cadastro_domiciliar_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Cadastrodomiciliar
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/cadastro_individual_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'cadastro_individual_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Cadastroindividual
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/common/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package common
5 |
6 | import (
7 | "bytes"
8 | "fmt"
9 | "git.apache.org/thrift.git/lib/go/thrift"
10 | )
11 |
12 | // (needed to ensure safety because of naive import list construction.)
13 | var _ = thrift.ZERO
14 | var _ = fmt.Printf
15 | var _ = bytes.Equal
16 |
17 | func init() {
18 | }
19 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_atendimento_odonto_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_atendimento_odonto_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Atendodonto
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/cuidado_compartilhado_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'cuidado_compartilhado_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Cuidadocompartilhado
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_atividade_coletiva_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_atividade_coletiva_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Atividadecoletiva
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_consumo_alimentar_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_consumo_alimentar_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Consumoalimentar
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_visita_domiciliar_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_visita_domiciliar_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Visitadomiciliar
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_atendimento_domiciliar_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_atendimento_domiciliar_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Atenddomiciliar
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_atendimento_individual_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_atendimento_individual_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Atendindividual
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/XSD/versao.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/solicitacaooci/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package solicitacaooci
5 |
6 | import (
7 | "bytes"
8 | "fmt"
9 | "git.apache.org/thrift.git/lib/go/thrift"
10 | )
11 |
12 | // (needed to ensure safety because of naive import list construction.)
13 | var _ = thrift.ZERO
14 | var _ = fmt.Printf
15 | var _ = bytes.Equal
16 |
17 | func init() {
18 | }
19 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/gen-go/br/gov/saude/esusab/dadotransp/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.2)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package dadotransp
5 |
6 | import (
7 | "bytes"
8 | "fmt"
9 | "git.apache.org/thrift.git/lib/go/thrift"
10 | )
11 |
12 | // (needed to ensure safety because of naive import list construction.)
13 | var _ = thrift.ZERO
14 | var _ = fmt.Printf
15 | var _ = bytes.Equal
16 |
17 | func init() {
18 | }
19 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_atendimento_procedimento_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_atendimento_procedimento_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Atendprocedimentos
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_avaliacao_elegibilidade_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_avaliacao_elegibilidade_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Avaliacaoelegibilidade
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/XSD/exame.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/ficha_complementar_zika_microcefalia_constants.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 | require 'ficha_complementar_zika_microcefalia_types'
9 |
10 | module Br
11 | module Gov
12 | module Saude
13 | module Esusab
14 | module Ras
15 | module Complementarzika
16 | end
17 | end
18 | end
19 | end
20 | end
21 | end
22 |
--------------------------------------------------------------------------------
/XSD/resultadoexame.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/solicitacao_oci.thrift:
--------------------------------------------------------------------------------
1 | namespace java br.gov.saude.esusab.ras.solicitacaooci
2 | namespace php br.gov.saude.esusab.ras.solicitacaooci
3 | namespace delphi br.gov.saude.esusab.ras.solicitacaooci
4 | namespace csharp br.gov.saude.esusab.ras.solicitacaooci
5 | namespace rb br.gov.saude.esusab.ras.solicitacaooci
6 | namespace go br.gov.saude.esusab.ras.solicitacaooci
7 | namespace py br.gov.saude.esusab.ras.solicitacaooci
8 |
9 | struct SolicitacaoOciThrift {
10 | 1:optional string codigoSigtap;
11 | }
12 |
--------------------------------------------------------------------------------
/XSD/procedimentoquantidade.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/XSD/profissionalcborowitem.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-csharp/br/gov/saude/esusab/ras/consumoalimentar/RespostaMultiplaEscolhaEnumThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esusab.ras.consumoalimentar
9 | {
10 | public enum RespostaMultiplaEscolhaEnumThrift
11 | {
12 | CAFE_DA_MANHA = 12,
13 | LANCHE_DA_MANHA = 13,
14 | ALMOCO = 14,
15 | LANCHE_DA_TARDE = 15,
16 | JANTAR = 16,
17 | CEIA = 17,
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/vacinacao/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package vacinacao
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/atenddomiciliar/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package atenddomiciliar
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/complementarzika/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package complementarzika
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/consumoalimentar/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package consumoalimentar
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/visitadomiciliar/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package visitadomiciliar
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/atendprocedimentos/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package atendprocedimentos
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/atividadecoletiva/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package atividadecoletiva
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/cadastrodomiciliar/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package cadastrodomiciliar
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/cadastroindividual/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package cadastroindividual
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/XSD/informacoessocioeconomicas.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/cuidadocompartilhado/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package cuidadocompartilhado
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/gen-csharp/br/gov/saude/esus/thrift/definition/cidadao/TipoSanguineoThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.0)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esus.thrift.definition.cidadao
9 | {
10 | public enum TipoSanguineoThrift
11 | {
12 | A_POSITIVO = 0,
13 | A_NEGATIVO = 1,
14 | B_POSITIVO = 2,
15 | B_NEGATIVO = 3,
16 | AB_POSITIVO = 4,
17 | AB_NEGATIVO = 5,
18 | O_POSITIVO = 6,
19 | O_NEGATIVO = 7,
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/avaliacaoelegibilidade/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package avaliacaoelegibilidade
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "bytes"
9 | "fmt"
10 | "git.apache.org/thrift.git/lib/go/thrift"
11 | )
12 |
13 | // (needed to ensure safety because of naive import list construction.)
14 | var _ = thrift.ZERO
15 | var _ = fmt.Printf
16 | var _ = bytes.Equal
17 |
18 | var _ = common.GoUnusedProtection__
19 |
20 | func init() {
21 | }
22 |
--------------------------------------------------------------------------------
/XSD/saidacidadaocadastro.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-csharp/br/gov/saude/esusab/ras/consumoalimentar/RespostaUnicaEscolhaEnumThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esusab.ras.consumoalimentar
9 | {
10 | public enum RespostaUnicaEscolhaEnumThrift
11 | {
12 | SIM = 1,
13 | NAO = 2,
14 | NAO_SABE = 3,
15 | UMA_VEZ = 4,
16 | DUAS_VEZES = 5,
17 | TRES_VEZES_OU_MAIS = 6,
18 | EM_PEDACOS = 7,
19 | AMASSADA = 8,
20 | PASSADA_NA_PENEIRA = 9,
21 | LIQUIDIFICADA = 10,
22 | SO_O_CALDO = 11,
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/XSD/lotacaoheader.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/atendodonto/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package atendodonto
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "br/gov/saude/esusab/ras/solicitacaooci"
9 | "bytes"
10 | "fmt"
11 | "git.apache.org/thrift.git/lib/go/thrift"
12 | )
13 |
14 | // (needed to ensure safety because of naive import list construction.)
15 | var _ = thrift.ZERO
16 | var _ = fmt.Printf
17 | var _ = bytes.Equal
18 |
19 | var _ = common.GoUnusedProtection__
20 | var _ = solicitacaooci.GoUnusedProtection__
21 |
22 | func init() {
23 | }
24 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-csharp/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasMenoresSeisMesesEnumThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esusab.ras.consumoalimentar
9 | {
10 | public enum PerguntaCriancasMenoresSeisMesesEnumThrift
11 | {
12 | A_CRIANCA_ONTEM_TOMOU_LEITE_DO_PEITO = 1,
13 | MINGAU = 3,
14 | AGUA_CHA = 4,
15 | LEITE_VACA = 5,
16 | FORMULA_INFANTIL = 6,
17 | SUCO_FRUTA = 7,
18 | FRUTA = 8,
19 | COMIDA_DE_SAL = 9,
20 | OUTROS_ALIMENTOS_BEBIDAS = 10,
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-go/br/gov/saude/esusab/ras/atendindividual/constants.go:
--------------------------------------------------------------------------------
1 | // Autogenerated by Thrift Compiler (0.9.3)
2 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3 |
4 | package atendindividual
5 |
6 | import (
7 | "br/gov/saude/esusab/ras/common"
8 | "br/gov/saude/esusab/ras/solicitacaooci"
9 | "bytes"
10 | "fmt"
11 | "git.apache.org/thrift.git/lib/go/thrift"
12 | )
13 |
14 | // (needed to ensure safety because of naive import list construction.)
15 | var _ = thrift.ZERO
16 | var _ = fmt.Printf
17 | var _ = bytes.Equal
18 |
19 | var _ = common.GoUnusedProtection__
20 | var _ = solicitacaooci.GoUnusedProtection__
21 |
22 | func init() {
23 | }
24 |
--------------------------------------------------------------------------------
/XSD/respostamultiplaescolhaenum.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/XSD/encaminhamentoexterno.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/XSD/lotacao.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/XSD/problemacondicaoavaliacaoai.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/thrift-exemplo/delphi/src/common/ZipWriterExemplo.pas:
--------------------------------------------------------------------------------
1 | unit ZipWriterExemplo;
2 |
3 | interface
4 |
5 | uses
6 | System.Zip,
7 | ThriftSerializer,
8 | br.gov.saude.esusab.dadotransp;
9 |
10 | procedure gerarArquivoZip(dadoTransporte: IDadoTransporteThrift);
11 |
12 | implementation
13 |
14 | procedure gerarArquivoZip(dadoTransporte: IDadoTransporteThrift);
15 | var
16 | zipFile: TZipFile;
17 | thriftSerializado: TArray;
18 |
19 | begin
20 | thriftSerializado := serializarThrift(dadoTransporte);
21 | zipFile := TZipFile.Create;
22 | try
23 | zipFile.Open('C:\temp\exemploConversaoThriftDelphi.zip', zmWrite);
24 | zipFile.Add(thriftSerializado, dadoTransporte.UuidDadoSerializado + '.esus', zcDeflate);
25 | finally
26 | zipFile.Free;
27 | end
28 | end;
29 |
30 | end.
31 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-csharp/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasComMaisDoisAnosEnumThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esusab.ras.consumoalimentar
9 | {
10 | public enum PerguntaCriancasComMaisDoisAnosEnumThrift
11 | {
12 | VOCE_TEM_COSTUME_DE_REALIZAR_AS_REFEICOES_ASSISTINDO_TV_MEXENDO_NO_COMPUTADOR_E_OU_CELULAR = 11,
13 | QUAIS_REFEICOES_VOCE_FAZ_AO_LONGO_DO_DIA = 12,
14 | FEIJAO = 14,
15 | FRUTAS_FRESCAS = 15,
16 | VERDURAS_E_OU_LEGUMES = 16,
17 | HAMBURGUER_E_OU_EMBUTIDOS = 17,
18 | BEBIDAS_ADOCADAS = 18,
19 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS = 19,
20 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS = 20,
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/XSD/unicalotacaoheader.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/XSD/perguntacriancasmenoresseismesesenum.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XSD/respostaunicaescolhaenum.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-rb/solicitacao_oci_types.rb:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 |
7 | require 'thrift'
8 |
9 | module Br
10 | module Gov
11 | module Saude
12 | module Esusab
13 | module Ras
14 | module Solicitacaooci
15 | class SolicitacaoOciThrift
16 | include ::Thrift::Struct, ::Thrift::Struct_Union
17 | CODIGOSIGTAP = 1
18 |
19 | FIELDS = {
20 | CODIGOSIGTAP => {:type => ::Thrift::Types::STRING, :name => 'codigoSigtap', :optional => true}
21 | }
22 |
23 | def struct_fields; FIELDS; end
24 |
25 | def validate
26 | end
27 |
28 | ::Thrift::Struct.generate_accessors self
29 | end
30 |
31 | end
32 | end
33 | end
34 | end
35 | end
36 | end
37 |
--------------------------------------------------------------------------------
/XSD/instituicaopermanencia.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/XSD/variaslotacoesheader.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/README.md:
--------------------------------------------------------------------------------
1 | # Exemplo Java
2 |
3 | Este exemplo é um projeto maven que demonstra como serializar fichas thrift(1) e enviar via API(2) ou gerar um arquivo zip(3).
4 |
5 |
6 | ## (1) Serializar fichas thrift
7 |
8 | A classe [ExemploFichaProcedimentoThrift.java](../java/src/main/java/exemplo/ExemploFichaProcedimentoThrift.java) é um exemplo de como criar um objeto de ficha e serializá-lo.
9 | Para mais informações sobre as validações dos dados no sistema e-SUS AB consulte o [dicionário de dados](https://integracao.esusab.ufsc.br/).
10 |
11 |
12 | ## (2) Enviar via API
13 |
14 | A classe [ExemploEnvioApi.java](../java/src/main/java/exemplo/api/ExemploEnvioApi.java) é um exemplo de como enviar uma ficha via API.
15 |
16 |
17 | ## (3) Gerar um arquivo zip
18 |
19 | A classe [ExemploGeracaoZip.java](../java/src/main/java/exemplo/zip/ExemploGeracaoZip.java) é um exemplo de como gerar um arquivo zip com fichas serializadas para importação no e-SUS AB.
20 |
--------------------------------------------------------------------------------
/XSD/resultadosexame.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/XSD/perguntacriancascommaisdoisanosenum.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XSD/familiarow.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/exemplo/common/SerializadorThrift.java:
--------------------------------------------------------------------------------
1 | package exemplo.common;
2 |
3 | import java.io.ByteArrayOutputStream;
4 |
5 | import org.apache.thrift.TBase;
6 | import org.apache.thrift.TException;
7 | import org.apache.thrift.TFieldIdEnum;
8 | import org.apache.thrift.protocol.TBinaryProtocol;
9 | import org.apache.thrift.transport.TIOStreamTransport;
10 |
11 | public class SerializadorThrift {
12 |
13 | /**
14 | * Realiza a serialização do thrift.
15 | *
16 | * @param thrift - o thrift preenchido com as informações do atendimento.
17 | * @return um array com os bytes serializados.
18 | */
19 | public static byte[] serializar(TBase, ? extends TFieldIdEnum> thrift) {
20 | try {
21 | ByteArrayOutputStream baos = new ByteArrayOutputStream();
22 | TIOStreamTransport transport = new TIOStreamTransport(baos);
23 | TBinaryProtocol protocol = new TBinaryProtocol(transport);
24 | thrift.write(protocol);
25 |
26 | return baos.toByteArray();
27 | } catch (TException exception) {
28 | exception.printStackTrace();
29 | }
30 | return null;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/XSD/problemacondicao.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XSD/participanterowitem.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XSD/perguntaquestionariocriancasmenoresseismeses.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | # Integração e-SUS APS
3 |
4 | O e-SUS AB fornece dois tipos de arquivos para o envio de informações para o PEC Prontuário/Centralizador municipal. São disponibilizados os seguintes formatos:
5 |
6 | * XML
7 | * THRIFT
8 |
9 | Esse repositório contém esses arquivos além de exemplos de como utilizá-los.
10 |
11 | # Organização do repositório:
12 | * **XSD** - Arquivos XSD fornecidos para integração via XML.
13 | * **thrift-exemplo** - Exemplos de código preenchendo e serializando fichas no formato thrift.
14 | * **thrift** - Arquivos fornecidos para integração via thrift nas linguagens C#, Delphi, Go, Java, Php, Python, NodeJS e Ruby.
15 | * **xml-exemplo** - Exemplo de arquivos xml preenchidos com dados válidos.
16 |
17 | # Dicionário de dados
18 | O dicionário de dados contém as regras de preenchimento e utilização desses arquivos de integração. Ele está disponível no link: https://integracao.esusab.ufsc.br
19 |
20 | # Suporte
21 | Em caso de dúvidas ou problemas na integração com o e-SUS APS faça o cadastro no portal e registre sua solicitação: http://esusaps.bridge.ufsc.br/a/
22 |
23 |
--------------------------------------------------------------------------------
/thrift-exemplo/delphi/src/common/ThriftSerializer.pas:
--------------------------------------------------------------------------------
1 | unit ThriftSerializer;
2 |
3 | interface
4 |
5 | uses
6 | System.SysUtils,
7 | System.Classes,
8 | thrift.Serializer,
9 | Thrift,
10 | Thrift.Protocol,
11 | Thrift.Stream,
12 | Thrift.Utils,
13 | Thrift.transport;
14 |
15 | function serializarThrift(thrift: IBase): TArray;
16 |
17 | implementation
18 |
19 | function serializarThrift(thrift: IBase): TArray;
20 | var
21 | thriftProtocol: IProtocol;
22 | thriftTransport: ITransport;
23 | thriftInputStream, thriftOutputStream: IThriftStream;
24 | systemStream: TStream;
25 | thriftSerializado: TArray;
26 |
27 | begin
28 | systemStream := TMemoryStream.Create;
29 | thriftInputStream := TThriftStreamAdapterDelphi.Create(systemStream, false);
30 | thriftOutputStream := TThriftStreamAdapterDelphi.Create(systemStream, true);
31 | thriftTransport := TStreamTransportImpl.Create(thriftInputStream, thriftOutputStream);
32 | thriftProtocol := TBinaryProtocolImpl.Create(thriftTransport);
33 | thrift.Write(thriftProtocol);
34 | thriftSerializado := thriftOutputStream.ToArray;
35 |
36 | Result := thriftSerializado;
37 | end;
38 |
39 | end.
40 |
--------------------------------------------------------------------------------
/XSD/perguntaquestionariocriancasdeseisvintetresmeses.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/XSD/dadoinstalacao.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-csharp/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasDeSeisVinteTresMesesEnumThrift.cs:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 |
8 | namespace br.gov.saude.esusab.ras.consumoalimentar
9 | {
10 | public enum PerguntaCriancasDeSeisVinteTresMesesEnumThrift
11 | {
12 | A_CRIANCA_ONTEM_TOMOU_LEITE_PEITO = 21,
13 | ONTEM_A_CRIANCA_COMEU_FRUTA_INTEIRA_PEDACO_AMASSADO = 22,
14 | SE_SIM_QUANTAS_VEZES = 23,
15 | ONTEM_A_CRIANCA_COMEU_COMIDA_DE_SAL = 24,
16 | SE_COMEU_COMIDA_DE_SAL_QUANTAS_VEZES = 25,
17 | SE_SIM_ESSA_COMIDA_FOI_OFERECIDA = 26,
18 | OUTRO_LEITE_QUE_NAO_LEITE_DO_PEITO = 28,
19 | MINGAU_COM_LEITE = 29,
20 | IOGURTE = 30,
21 | LEGUMES = 31,
22 | VEGETAL_OU_FRUTAS_COR_ALARANJADA_OU_FOLHAS_ESCURAS = 32,
23 | VERDURA_DE_FOLHA = 33,
24 | CARNE = 34,
25 | FIGADO = 35,
26 | FEIJAO = 36,
27 | ARROZ_BATATA_INHAME_MANDIOCA_FARINHA_MACARRAO = 37,
28 | HAMBURGUER_E_OU_EMBUTIDOS = 38,
29 | BEBIDAS_ADOCADAS = 39,
30 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS = 40,
31 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS = 41,
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/XSD/ivcf.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/thrift/thrift_build_with_docker.sh:
--------------------------------------------------------------------------------
1 | LANGS="java:beans php delphi csharp rb go py js:node"
2 | HASH_DIR="hash"
3 |
4 | create_hash() {
5 | local file=$1
6 | sha256sum "$file" | awk '{print $1}' > "$HASH_DIR/$(basename "$file").sha256"
7 | }
8 |
9 | # return 0 if file has changed
10 | hasFileChange() {
11 | local file=$1
12 | local hash_file="$HASH_DIR/$(basename "$file").sha256"
13 | if [ -f "$hash_file" ]; then
14 | local hash=$(sha256sum "$file" | awk '{print $1}')
15 | local hash_saved=$(cat "$hash_file")
16 | if [ "$hash" = "$hash_saved" ]; then
17 | echo "Skipping $file"
18 | return 1
19 | fi
20 | fi
21 | return 0
22 | }
23 |
24 | # Generate thrift files
25 | generateThrift() {
26 | local path_files=$1
27 | for FILE in "$path_files"/thrift/*.thrift
28 | do
29 | if hasFileChange "$FILE"; then
30 | for LANG in $LANGS
31 | do
32 | echo "Geração do .thrift $FILE para a linguagem $LANG..."
33 | docker run --rm -u "$(id -u)" -v "$PWD:$(pwd)" thrift:0.9.3 thrift -o $(pwd)/$path_files --gen $LANG $(pwd)/$FILE
34 | create_hash "$FILE"
35 | done
36 | fi
37 |
38 | done
39 | }
40 |
41 | generateThrift "layout-ras"
42 | generateThrift "layout-cidadao"
43 | generateThrift "layout-camada-transport"
--------------------------------------------------------------------------------
/XSD/medicoes.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_atendimento_domiciliar.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.atenddomiciliar
4 | namespace php br.gov.saude.esusab.ras.atenddomiciliar
5 | namespace delphi br.gov.saude.esusab.ras.atenddomiciliar
6 | namespace csharp br.gov.saude.esusab.ras.atenddomiciliar
7 | namespace rb br.gov.saude.esusab.ras.atenddomiciliar
8 | namespace go br.gov.saude.esusab.ras.atenddomiciliar
9 | namespace py br.gov.saude.esusab.ras.atenddomiciliar
10 |
11 | struct FichaAtendimentoDomiciliarChildThrift {
12 | 1:optional i64 turno;
13 | 2:optional string cnsCidadao;
14 | 3:optional i64 dataNascimento;
15 | 4:optional i64 sexo;
16 | 5:optional i64 localAtendimento;
17 | 6:optional i64 atencaoDomiciliarModalidade;
18 | 7:optional i64 tipoAtendimento;
19 | 8:optional list condicoesAvaliadas;
20 | 11:optional list procedimentos;
21 | 13:optional i64 condutaDesfecho;
22 | 15:optional string cpfCidadao;
23 | 16:optional list problemasCondicoes;
24 | }
25 |
26 | struct FichaAtendimentoDomiciliarMasterThrift {
27 | 1:required string uuidFicha;
28 | 2:optional i32 tpCdsOrigem;
29 | 4:optional list atendimentosDomiciliares;
30 | 5:optional common.VariasLotacoesHeaderThrift headerTransport;
31 | }
32 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/gen-javabean/br/gov/saude/esus/thrift/definition/cidadao/SexoThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.0)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esus.thrift.definition.cidadao;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum SexoThrift implements org.apache.thrift.TEnum {
15 | MASCULINO(0),
16 | FEMININO(1),
17 | AMBOS(2),
18 | NAO_INFORMADO(3);
19 |
20 | private final int value;
21 |
22 | private SexoThrift(int value) {
23 | this.value = value;
24 | }
25 |
26 | /**
27 | * Get the integer value of this enum value, as defined in the Thrift IDL.
28 | */
29 | public int getValue() {
30 | return value;
31 | }
32 |
33 | /**
34 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
35 | * @return null if the value is not found.
36 | */
37 | public static SexoThrift findByValue(int value) {
38 | switch (value) {
39 | case 0:
40 | return MASCULINO;
41 | case 1:
42 | return FEMININO;
43 | case 2:
44 | return AMBOS;
45 | case 3:
46 | return NAO_INFORMADO;
47 | default:
48 | return null;
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 | br.ufsc.bridge
5 | thrift-exemplo
6 | 1.0-SNAPSHOT
7 | jar
8 |
9 |
10 | org.apache.thrift
11 | libthrift
12 | 0.9.3
13 |
14 |
15 | org.slf4j
16 | slf4j-log4j12
17 | 1.7.36
18 |
19 |
20 | log4j
21 | log4j
22 | 1.2.17
23 |
24 |
25 | org.apache.httpcomponents.client5
26 | httpclient5
27 | 5.3.1
28 |
29 |
30 |
31 |
32 |
33 |
34 | maven-compiler-plugin
35 | 3.2
36 |
37 | 1.8
38 | 1.8
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/XSD/fichavacinacaomaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/XSD/fichavacinacaochild.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/cuidado_compartilhado.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.cuidadocompartilhado
4 | namespace php br.gov.saude.esusab.ras.cuidadocompartilhado
5 | namespace delphi br.gov.saude.esusab.ras.cuidadocompartilhado
6 | namespace csharp br.gov.saude.esusab.ras.cuidadocompartilhado
7 | namespace rb br.gov.saude.esusab.ras.cuidadocompartilhado
8 | namespace go br.gov.saude.esusab.ras.cuidadocompartilhado
9 | namespace py br.gov.saude.esusab.ras.cuidadocompartilhado
10 |
11 | struct CuidadoCompartilhadoThrift {
12 | 1:required string uuidEvolucao;
13 | 2:optional common.LotacaoThrift lotacaoEvolucao;
14 | 3:optional i64 dataEvolucao;
15 | 4:optional i64 dataEvolucaoAnterior;
16 | 5:optional i32 coSequencialEvolucao;
17 | 6:optional i64 condutaEvolucao;
18 | 7:optional i32 tpCdsOrigem;
19 | 8:optional string cnsCidadao;
20 | 9:optional string cpfCidadao;
21 | 10:optional i64 sexoCidadao;
22 | 11:optional string dataNascimentoCidadao;
23 | 12:required string uuidCuidadoCompartilhado;
24 | 13:optional common.LotacaoThrift solicitante;
25 | 14:optional common.LotacaoThrift executante;
26 | 15:optional i64 dataCriacaoCuidado;
27 | 16:optional string cid10;
28 | 17:optional string ciap;
29 | 18:optional string uuidFichaOrigem;
30 | 19:optional i32 tpDadoTranspFichaOrigem;
31 | 20:optional i32 prioridadeCuidado;
32 | 21:optional i32 reclassificacaoPrioridadeCuidado;
33 | }
34 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_complementar_zika_microcefalia.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.complementarzika
4 | namespace php br.gov.saude.esusab.ras.complementarzika
5 | namespace delphi br.gov.saude.esusab.ras.complementarzika
6 | namespace csharp br.gov.saude.esusab.ras.complementarzika
7 | namespace rb br.gov.saude.esusab.ras.complementarzika
8 | namespace go br.gov.saude.esusab.ras.complementarzika
9 | namespace py br.gov.saude.esusab.ras.complementarzika
10 |
11 | struct FichaComplementarZikaMicrocefaliaThrift {
12 | 1:optional common.UnicaLotacaoHeaderThrift headerTransport;
13 | 2:required string uuidFicha;
14 | 3:optional i32 tpCdsOrigem;
15 | 4:optional i64 turno;
16 | 5:optional string cnsCidadao;
17 | 6:optional string cnsResponsavelFamiliar;
18 | 7:optional i64 dataRealizacaoTesteOlhinho;
19 | 8:optional i64 coResultadoTesteOlhinho;
20 | 9:optional i64 dataRealizacaoExameFundoOlho;
21 | 10:optional i64 coResultadoExameFundoOlho;
22 | 11:optional i64 dataRealizacaoTesteOrelhinha;
23 | 12:optional i64 coResultadoTesteOrelhinha;
24 | 13:optional i64 dataRealizacaoUSTransfontanela;
25 | 14:optional i64 coResultadoUsTransfontanela;
26 | 15:optional i64 dataRealizacaoTomografiaComputadorizada;
27 | 16:optional i64 coResultadoTomografiaComputadorizada;
28 | 17:optional i64 dataRealizacaoRessonanciaMagnetica;
29 | 18:optional i64 coResultadoRessonanciaMagnetica;
30 | 19:optional string cpfCidadao;
31 | 20:optional string cpfResponsavelFamiliar;
32 | }
--------------------------------------------------------------------------------
/XSD/perguntaquestionariocriancascommaisdoisanos.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XSD/fichavisitadomiciliarmaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/XSD/fichaatendimentodomiciliarchild.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/XSD/vacinarow.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/br/gov/saude/esus/ras/consumoalimentar/RespostaMultiplaEscolhaEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum RespostaMultiplaEscolhaEnumThrift implements org.apache.thrift.TEnum {
15 | CAFE_DA_MANHA(12),
16 | LANCHE_DA_MANHA(13),
17 | ALMOCO(14),
18 | LANCHE_DA_TARDE(15),
19 | JANTAR(16),
20 | CEIA(17);
21 |
22 | private final int value;
23 |
24 | private RespostaMultiplaEscolhaEnumThrift(int value) {
25 | this.value = value;
26 | }
27 |
28 | /**
29 | * Get the integer value of this enum value, as defined in the Thrift IDL.
30 | */
31 | public int getValue() {
32 | return value;
33 | }
34 |
35 | /**
36 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
37 | * @return null if the value is not found.
38 | */
39 | public static RespostaMultiplaEscolhaEnumThrift findByValue(int value) {
40 | switch (value) {
41 | case 12:
42 | return CAFE_DA_MANHA;
43 | case 13:
44 | return LANCHE_DA_MANHA;
45 | case 14:
46 | return ALMOCO;
47 | case 15:
48 | return LANCHE_DA_TARDE;
49 | case 16:
50 | return JANTAR;
51 | case 17:
52 | return CEIA;
53 | default:
54 | return null;
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-javabean/br/gov/saude/esusab/ras/consumoalimentar/RespostaMultiplaEscolhaEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum RespostaMultiplaEscolhaEnumThrift implements org.apache.thrift.TEnum {
15 | CAFE_DA_MANHA(12),
16 | LANCHE_DA_MANHA(13),
17 | ALMOCO(14),
18 | LANCHE_DA_TARDE(15),
19 | JANTAR(16),
20 | CEIA(17);
21 |
22 | private final int value;
23 |
24 | private RespostaMultiplaEscolhaEnumThrift(int value) {
25 | this.value = value;
26 | }
27 |
28 | /**
29 | * Get the integer value of this enum value, as defined in the Thrift IDL.
30 | */
31 | public int getValue() {
32 | return value;
33 | }
34 |
35 | /**
36 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
37 | * @return null if the value is not found.
38 | */
39 | public static RespostaMultiplaEscolhaEnumThrift findByValue(int value) {
40 | switch (value) {
41 | case 12:
42 | return CAFE_DA_MANHA;
43 | case 13:
44 | return LANCHE_DA_MANHA;
45 | case 14:
46 | return ALMOCO;
47 | case 15:
48 | return LANCHE_DA_TARDE;
49 | case 16:
50 | return JANTAR;
51 | case 17:
52 | return CEIA;
53 | default:
54 | return null;
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/XSD/enderecolocalpermanencia.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/XSD/dadotransporte.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/XSD/emsituacaoderua.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/XSD/fichaprocedimentochild.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/XSD/condicaomoradia.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_atendimento_procedimento.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.atendprocedimentos
4 | namespace php br.gov.saude.esusab.ras.atendprocedimentos
5 | namespace delphi br.gov.saude.esusab.ras.atendprocedimentos
6 | namespace csharp br.gov.saude.esusab.ras.atendprocedimentos
7 | namespace rb br.gov.saude.esusab.ras.atendprocedimentos
8 | namespace go br.gov.saude.esusab.ras.atendprocedimentos
9 | namespace py br.gov.saude.esusab.ras.atendprocedimentos
10 |
11 | struct FichaProcedimentoChildThrift {
12 | 1:optional string numProntuario;
13 | 2:optional string cnsCidadao;
14 | 3:optional i64 dtNascimento;
15 | 4:optional i64 sexo;
16 | 5:optional i64 localAtendimento;
17 | 6:optional i64 turno;
18 | 7:optional bool statusEscutaInicialOrientacao;
19 | 8:optional list procedimentos;
20 | 10:optional i64 dataHoraInicialAtendimento;
21 | 11:optional i64 dataHoraFinalAtendimento;
22 | 12:optional string cpfCidadao;
23 | 16:optional common.MedicoesThrift medicoes;
24 | 17:optional common.IvcfThrift ivcf;
25 | }
26 |
27 | struct FichaProcedimentoMasterThrift {
28 | 1:required string uuidFicha;
29 | 2:optional i32 tpCdsOrigem;
30 | 3:optional common.UnicaLotacaoHeaderThrift headerTransport;
31 | 4:optional list atendProcedimentos;
32 | 5:optional i64 numTotalAfericaoPa;
33 | 6:optional i64 numTotalGlicemiaCapilar;
34 | 7:optional i64 numTotalAfericaoTemperatura;
35 | 8:optional i64 numTotalMedicaoAltura;
36 | 9:optional i64 numTotalCurativoSimples;
37 | 10:optional i64 numTotalMedicaoPeso;
38 | 11:optional i64 numTotalColetaMaterialParaExameLaboratorial;
39 | }
40 |
--------------------------------------------------------------------------------
/XSD/medicamento.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/XSD/perguntacriancasdeseisvintetresmesesenum.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_visita_domiciliar.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.visitadomiciliar
4 | namespace php br.gov.saude.esusab.ras.visitadomiciliar
5 | namespace delphi br.gov.saude.esusab.ras.visitadomiciliar
6 | namespace csharp br.gov.saude.esusab.ras.visitadomiciliar
7 | namespace rb br.gov.saude.esusab.ras.visitadomiciliar
8 | namespace go br.gov.saude.esusab.ras.visitadomiciliar
9 | namespace py br.gov.saude.esusab.ras.visitadomiciliar
10 |
11 | struct FichaVisitaDomiciliarChildThrift {
12 | 1:optional i64 turno;
13 | 2:optional string numProntuario;
14 | 3:optional string cnsCidadao;
15 | 4:optional i64 dtNascimento;
16 | 5:optional i64 sexo;
17 | 6:optional bool statusVisitaCompartilhadaOutroProfissional;
18 | 7:optional list motivosVisita;
19 | 8:optional i64 desfecho;
20 | 9:optional string microArea;
21 | 10:optional bool stForaArea;
22 | 11:optional i64 tipoDeImovel;
23 | 12:optional double pesoAcompanhamentoNutricional;
24 | 13:optional double alturaAcompanhamentoNutricional;
25 | 14:optional string cpfCidadao;
26 | 15:optional i32 pressaoSistolica;
27 | 16:optional i32 pressaoDiastolica;
28 | 17:optional double temperatura;
29 | 18:optional i64 tipoGlicemia;
30 | 19:optional i32 glicemia;
31 | 20:optional double latitude;
32 | 21:optional double longitude;
33 | 22:optional string uuidOrigemCadastroDomiciliar;
34 | 23:optional common.IvcfThrift ivcf;
35 | }
36 |
37 | struct FichaVisitaDomiciliarMasterThrift {
38 | 1:required string uuidFicha;
39 | 2:optional i32 tpCdsOrigem;
40 | 3:optional common.UnicaLotacaoHeaderThrift headerTransport;
41 | 4:optional list visitasDomiciliares;
42 | }
--------------------------------------------------------------------------------
/thrift-exemplo/delphi/src/thriftutils/Thrift.Defines.inc:
--------------------------------------------------------------------------------
1 | (*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | *)
19 |
20 |
21 | // Good lists of Delphi version numbers
22 | // https://github.com/project-jedi/jedi/blob/master/jedi.inc
23 | // http://docwiki.embarcadero.com/RADStudio/Seattle/en/Compiler_Versions
24 |
25 |
26 | // start with most backwards compatible defaults
27 |
28 | {$DEFINE OLD_UNIT_NAMES}
29 | {$DEFINE OLD_SOCKETS} // TODO: add socket support for CompilerVersion >= 28.0
30 | {$UNDEF HAVE_CLASS_CTOR}
31 |
32 |
33 | // enable features as they are available
34 |
35 | {$IF CompilerVersion >= 21.0} // Delphi 2010
36 | {$DEFINE HAVE_CLASS_CTOR}
37 | {$IFEND}
38 |
39 | {$IF CompilerVersion >= 23.0} // Delphi XE2
40 | {$UNDEF OLD_UNIT_NAMES}
41 | {$IFEND}
42 |
43 | {$IF CompilerVersion >= 28.0} // Delphi XE7
44 | {$UNDEF OLD_SOCKETS}
45 | {$IFEND}
46 |
47 |
48 | // EOF
49 |
50 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/gen-javabean/br/gov/saude/esus/thrift/definition/cidadao/TipoSanguineoThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.0)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esus.thrift.definition.cidadao;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum TipoSanguineoThrift implements org.apache.thrift.TEnum {
15 | A_POSITIVO(0),
16 | A_NEGATIVO(1),
17 | B_POSITIVO(2),
18 | B_NEGATIVO(3),
19 | AB_POSITIVO(4),
20 | AB_NEGATIVO(5),
21 | O_POSITIVO(6),
22 | O_NEGATIVO(7);
23 |
24 | private final int value;
25 |
26 | private TipoSanguineoThrift(int value) {
27 | this.value = value;
28 | }
29 |
30 | /**
31 | * Get the integer value of this enum value, as defined in the Thrift IDL.
32 | */
33 | public int getValue() {
34 | return value;
35 | }
36 |
37 | /**
38 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
39 | * @return null if the value is not found.
40 | */
41 | public static TipoSanguineoThrift findByValue(int value) {
42 | switch (value) {
43 | case 0:
44 | return A_POSITIVO;
45 | case 1:
46 | return A_NEGATIVO;
47 | case 2:
48 | return B_POSITIVO;
49 | case 3:
50 | return B_NEGATIVO;
51 | case 4:
52 | return AB_POSITIVO;
53 | case 5:
54 | return AB_NEGATIVO;
55 | case 6:
56 | return O_POSITIVO;
57 | case 7:
58 | return O_NEGATIVO;
59 | default:
60 | return null;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/XSD/fichaatendimentodomiciliarmaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_atividade_coletiva.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.atividadecoletiva
4 | namespace php br.gov.saude.esusab.ras.atividadecoletiva
5 | namespace delphi br.gov.saude.esusab.ras.atividadecoletiva
6 | namespace csharp br.gov.saude.esusab.ras.atividadecoletiva
7 | namespace rb br.gov.saude.esusab.ras.atividadecoletiva
8 | namespace go br.gov.saude.esusab.ras.atividadecoletiva
9 | namespace py br.gov.saude.esusab.ras.atividadecoletiva
10 |
11 | struct ParticipanteRowItemThrift {
12 | 1:optional string cnsParticipante;
13 | 2:optional i64 dataNascimento;
14 | 3:optional bool avaliacaoAlterada;
15 | 4:optional double peso;
16 | 5:optional double altura;
17 | 6:optional bool cessouHabitoFumar;
18 | 7:optional bool abandonouGrupo;
19 | 8:optional i64 sexo;
20 | 9:optional string cpfParticipante;
21 | }
22 |
23 | struct ProfissionalCboRowItemThrift {
24 | 1:optional string cnsProfissional;
25 | 2:optional string codigoCbo2002;
26 | }
27 |
28 | struct FichaAtividadeColetivaThrift {
29 | 1:required string uuidFicha;
30 | 4:optional string outraLocalidade;
31 | 7:optional i64 inep;
32 | 11:optional i32 numParticipantes;
33 | 12:optional i32 numAvaliacoesAlteradas;
34 | 13:optional list profissionais;
35 | 14:optional i64 atividadeTipo;
36 | 15:optional list temasParaReuniao;
37 | 16:optional list publicoAlvo;
38 | 18:optional list participantes;
39 | 19:optional i32 tbCdsOrigem;
40 | 21:optional string cnesLocalAtividade;
41 | 22:optional string procedimento;
42 | 23:optional i64 turno;
43 | 24:optional common.UnicaLotacaoHeaderThrift headerTransport;
44 | 25:optional list temasParaSaude;
45 | 26:optional list praticasEmSaude;
46 | 27:optional bool pseEducacao;
47 | 28:optional bool pseSaude;
48 | }
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-nodejs/solicitacao_oci_types.js:
--------------------------------------------------------------------------------
1 | //
2 | // Autogenerated by Thrift Compiler (0.9.3)
3 | //
4 | // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | //
6 | var thrift = require('thrift');
7 | var Thrift = thrift.Thrift;
8 | var Q = thrift.Q;
9 |
10 |
11 | var ttypes = module.exports = {};
12 | SolicitacaoOciThrift = module.exports.SolicitacaoOciThrift = function(args) {
13 | this.codigoSigtap = null;
14 | if (args) {
15 | if (args.codigoSigtap !== undefined && args.codigoSigtap !== null) {
16 | this.codigoSigtap = args.codigoSigtap;
17 | }
18 | }
19 | };
20 | SolicitacaoOciThrift.prototype = {};
21 | SolicitacaoOciThrift.prototype.read = function(input) {
22 | input.readStructBegin();
23 | while (true)
24 | {
25 | var ret = input.readFieldBegin();
26 | var fname = ret.fname;
27 | var ftype = ret.ftype;
28 | var fid = ret.fid;
29 | if (ftype == Thrift.Type.STOP) {
30 | break;
31 | }
32 | switch (fid)
33 | {
34 | case 1:
35 | if (ftype == Thrift.Type.STRING) {
36 | this.codigoSigtap = input.readString();
37 | } else {
38 | input.skip(ftype);
39 | }
40 | break;
41 | case 0:
42 | input.skip(ftype);
43 | break;
44 | default:
45 | input.skip(ftype);
46 | }
47 | input.readFieldEnd();
48 | }
49 | input.readStructEnd();
50 | return;
51 | };
52 |
53 | SolicitacaoOciThrift.prototype.write = function(output) {
54 | output.writeStructBegin('SolicitacaoOciThrift');
55 | if (this.codigoSigtap !== null && this.codigoSigtap !== undefined) {
56 | output.writeFieldBegin('codigoSigtap', Thrift.Type.STRING, 1);
57 | output.writeString(this.codigoSigtap);
58 | output.writeFieldEnd();
59 | }
60 | output.writeFieldStop();
61 | output.writeStructEnd();
62 | return;
63 | };
64 |
65 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/br/gov/saude/esus/ras/consumoalimentar/PerguntaCriancasMenoresSeisMesesEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasMenoresSeisMesesEnumThrift implements org.apache.thrift.TEnum {
15 | A_CRIANCA_ONTEM_TOMOU_LEITE_DO_PEITO(1),
16 | MINGAU(3),
17 | AGUA_CHA(4),
18 | LEITE_VACA(5),
19 | FORMULA_INFANTIL(6),
20 | SUCO_FRUTA(7),
21 | FRUTA(8),
22 | COMIDA_DE_SAL(9),
23 | OUTROS_ALIMENTOS_BEBIDAS(10);
24 |
25 | private final int value;
26 |
27 | private PerguntaCriancasMenoresSeisMesesEnumThrift(int value) {
28 | this.value = value;
29 | }
30 |
31 | /**
32 | * Get the integer value of this enum value, as defined in the Thrift IDL.
33 | */
34 | public int getValue() {
35 | return value;
36 | }
37 |
38 | /**
39 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
40 | * @return null if the value is not found.
41 | */
42 | public static PerguntaCriancasMenoresSeisMesesEnumThrift findByValue(int value) {
43 | switch (value) {
44 | case 1:
45 | return A_CRIANCA_ONTEM_TOMOU_LEITE_DO_PEITO;
46 | case 3:
47 | return MINGAU;
48 | case 4:
49 | return AGUA_CHA;
50 | case 5:
51 | return LEITE_VACA;
52 | case 6:
53 | return FORMULA_INFANTIL;
54 | case 7:
55 | return SUCO_FRUTA;
56 | case 8:
57 | return FRUTA;
58 | case 9:
59 | return COMIDA_DE_SAL;
60 | case 10:
61 | return OUTROS_ALIMENTOS_BEBIDAS;
62 | default:
63 | return null;
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-javabean/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasMenoresSeisMesesEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasMenoresSeisMesesEnumThrift implements org.apache.thrift.TEnum {
15 | A_CRIANCA_ONTEM_TOMOU_LEITE_DO_PEITO(1),
16 | MINGAU(3),
17 | AGUA_CHA(4),
18 | LEITE_VACA(5),
19 | FORMULA_INFANTIL(6),
20 | SUCO_FRUTA(7),
21 | FRUTA(8),
22 | COMIDA_DE_SAL(9),
23 | OUTROS_ALIMENTOS_BEBIDAS(10);
24 |
25 | private final int value;
26 |
27 | private PerguntaCriancasMenoresSeisMesesEnumThrift(int value) {
28 | this.value = value;
29 | }
30 |
31 | /**
32 | * Get the integer value of this enum value, as defined in the Thrift IDL.
33 | */
34 | public int getValue() {
35 | return value;
36 | }
37 |
38 | /**
39 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
40 | * @return null if the value is not found.
41 | */
42 | public static PerguntaCriancasMenoresSeisMesesEnumThrift findByValue(int value) {
43 | switch (value) {
44 | case 1:
45 | return A_CRIANCA_ONTEM_TOMOU_LEITE_DO_PEITO;
46 | case 3:
47 | return MINGAU;
48 | case 4:
49 | return AGUA_CHA;
50 | case 5:
51 | return LEITE_VACA;
52 | case 6:
53 | return FORMULA_INFANTIL;
54 | case 7:
55 | return SUCO_FRUTA;
56 | case 8:
57 | return FRUTA;
58 | case 9:
59 | return COMIDA_DE_SAL;
60 | case 10:
61 | return OUTROS_ALIMENTOS_BEBIDAS;
62 | default:
63 | return null;
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/br/gov/saude/esus/ras/consumoalimentar/RespostaUnicaEscolhaEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum RespostaUnicaEscolhaEnumThrift implements org.apache.thrift.TEnum {
15 | SIM(1),
16 | NAO(2),
17 | NAO_SABE(3),
18 | UMA_VEZ(4),
19 | DUAS_VEZES(5),
20 | TRES_VEZES_OU_MAIS(6),
21 | EM_PEDACOS(7),
22 | AMASSADA(8),
23 | PASSADA_NA_PENEIRA(9),
24 | LIQUIDIFICADA(10),
25 | SO_O_CALDO(11);
26 |
27 | private final int value;
28 |
29 | private RespostaUnicaEscolhaEnumThrift(int value) {
30 | this.value = value;
31 | }
32 |
33 | /**
34 | * Get the integer value of this enum value, as defined in the Thrift IDL.
35 | */
36 | public int getValue() {
37 | return value;
38 | }
39 |
40 | /**
41 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
42 | * @return null if the value is not found.
43 | */
44 | public static RespostaUnicaEscolhaEnumThrift findByValue(int value) {
45 | switch (value) {
46 | case 1:
47 | return SIM;
48 | case 2:
49 | return NAO;
50 | case 3:
51 | return NAO_SABE;
52 | case 4:
53 | return UMA_VEZ;
54 | case 5:
55 | return DUAS_VEZES;
56 | case 6:
57 | return TRES_VEZES_OU_MAIS;
58 | case 7:
59 | return EM_PEDACOS;
60 | case 8:
61 | return AMASSADA;
62 | case 9:
63 | return PASSADA_NA_PENEIRA;
64 | case 10:
65 | return LIQUIDIFICADA;
66 | case 11:
67 | return SO_O_CALDO;
68 | default:
69 | return null;
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-javabean/br/gov/saude/esusab/ras/consumoalimentar/RespostaUnicaEscolhaEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum RespostaUnicaEscolhaEnumThrift implements org.apache.thrift.TEnum {
15 | SIM(1),
16 | NAO(2),
17 | NAO_SABE(3),
18 | UMA_VEZ(4),
19 | DUAS_VEZES(5),
20 | TRES_VEZES_OU_MAIS(6),
21 | EM_PEDACOS(7),
22 | AMASSADA(8),
23 | PASSADA_NA_PENEIRA(9),
24 | LIQUIDIFICADA(10),
25 | SO_O_CALDO(11);
26 |
27 | private final int value;
28 |
29 | private RespostaUnicaEscolhaEnumThrift(int value) {
30 | this.value = value;
31 | }
32 |
33 | /**
34 | * Get the integer value of this enum value, as defined in the Thrift IDL.
35 | */
36 | public int getValue() {
37 | return value;
38 | }
39 |
40 | /**
41 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
42 | * @return null if the value is not found.
43 | */
44 | public static RespostaUnicaEscolhaEnumThrift findByValue(int value) {
45 | switch (value) {
46 | case 1:
47 | return SIM;
48 | case 2:
49 | return NAO;
50 | case 3:
51 | return NAO_SABE;
52 | case 4:
53 | return UMA_VEZ;
54 | case 5:
55 | return DUAS_VEZES;
56 | case 6:
57 | return TRES_VEZES_OU_MAIS;
58 | case 7:
59 | return EM_PEDACOS;
60 | case 8:
61 | return AMASSADA;
62 | case 9:
63 | return PASSADA_NA_PENEIRA;
64 | case 10:
65 | return LIQUIDIFICADA;
66 | case 11:
67 | return SO_O_CALDO;
68 | default:
69 | return null;
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/exemplo/zip/ExemploGeracaoZip.java:
--------------------------------------------------------------------------------
1 | package exemplo.zip;
2 |
3 | import java.io.File;
4 | import java.io.FileOutputStream;
5 | import java.io.IOException;
6 | import java.util.zip.ZipEntry;
7 | import java.util.zip.ZipOutputStream;
8 |
9 | import br.gov.saude.esus.transport.common.generated.thrift.DadoTransporteThrift;
10 |
11 | import exemplo.ExemploFichaProcedimentoThrift;
12 | import exemplo.common.SerializadorThrift;
13 |
14 | public class ExemploGeracaoZip {
15 |
16 | private static final String EXTENSAO_EXPORT = ".esus";
17 |
18 | public static void main(String[] args) {
19 |
20 | // Passo 1: Criar um DadoTransporteThrift com a ficha preenchida
21 | DadoTransporteThrift dadoTransporteThrift = ExemploFichaProcedimentoThrift.getDadoTransporte();
22 |
23 | try {
24 | // Passo 2: Criar um arquivo zip para conter as fichas
25 | File zipFile = new File(System.getProperty("user.home") + "/exemploConversaoThrift.zip");
26 | ZipOutputStream outputStream = new ZipOutputStream(new FileOutputStream(zipFile));
27 |
28 | // Passo 3: Dar um nome para o arquivo (nesse caso usamos o UUID da ficha) sempre acrescentando a extensão ".esus" ao final
29 | String entryName = dadoTransporteThrift.getUuidDadoSerializado() + EXTENSAO_EXPORT;
30 |
31 | // Passo 4: Adicionar uma nova entrada (novo arquivo) dentro do zip com o nome definido
32 | outputStream.putNextEntry(new ZipEntry(entryName));
33 |
34 | // Passo 5: serializar o DadoTransporte utilizando o TBinaryProtocol da biblioteca thrift
35 | byte[] dadoTransporteSerializado = SerializadorThrift.serializar(dadoTransporteThrift);
36 |
37 | // Passo 6: escrever o dadoTransporteSerializado no arquivo zip
38 | outputStream.write(dadoTransporteSerializado);
39 |
40 | // Para adicionar mais fichas no mesmo zip, repetir os passos 3, 4, 5 e 6 com as demais fichas
41 |
42 | // Passo 7: Finalizar o arquivo zip
43 | outputStream.close();
44 | } catch (IOException e) {
45 | e.printStackTrace();
46 | }
47 | }
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/XSD/fichaprocedimentomaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_vacinacao.thrift:
--------------------------------------------------------------------------------
1 |
2 | include "./common.thrift"
3 |
4 | namespace java br.gov.saude.esusab.ras.vacinacao
5 | namespace php br.gov.saude.esusab.ras.vacinacao
6 | namespace delphi br.gov.saude.esusab.ras.vacinacao
7 | namespace csharp br.gov.saude.esusab.ras.vacinacao
8 | namespace rb br.gov.saude.esusab.ras.vacinacao
9 | namespace go br.gov.saude.esusab.ras.vacinacao
10 | namespace py br.gov.saude.esusab.ras.vacinacao
11 |
12 | struct VacinaRowThrift {
13 | 1:optional i64 imunobiologico;
14 | 2:optional i64 estrategiaVacinacao;
15 | 3:optional i64 dose;
16 | 4:optional string lote;
17 | 5:optional string fabricante;
18 | 6:optional i64 grupoAtendimento;
19 | 7:optional bool stRegistroAnterior
20 | 8:optional i64 dataRegistroAnterior
21 | 9:optional bool stAplicadoExterior
22 | 10:optional string uuidRnds;
23 | 11:optional string cboPrescritorCodigo2002;
24 | 12:optional string cid10MotivoIndicacao;
25 | 13:optional bool stPesquisaClinica;
26 | 14:optional string anvisaProtocoloEstudo;
27 | 15:optional string anvisaProtocoloVersao;
28 | 16:optional string anvisaNumeroRegistro;
29 | 17:optional i64 viaAdministracao;
30 | 18:optional i64 localAplicacao;
31 | }
32 |
33 | struct FichaVacinacaoChildThrift {
34 | 1:optional i64 turno;
35 | 2:optional string numProntuario;
36 | 3:optional string cnsCidadao;
37 | 4:optional i64 dtNascimento;
38 | 5:optional i64 sexo;
39 | 6:optional i64 localAtendimento;
40 | 7:optional bool viajante;
41 | 8:optional bool comunicanteHanseniase;
42 | 9:optional bool gestante;
43 | 10:optional bool puerpera;
44 | 11:optional list vacinas;
45 | 12:optional i64 dataHoraInicialAtendimento;
46 | 13:optional i64 dataHoraFinalAtendimento;
47 | 14:optional string cpfCidadao;
48 | 15:optional i64 condicaoMaternal;
49 | }
50 |
51 | struct FichaVacinacaoMasterThrift {
52 | 1:required string uuidFicha;
53 | 2:optional i32 tpCdsOrigem;
54 | 3:optional common.UnicaLotacaoHeaderThrift headerTransport;
55 | 4:optional list vacinacoes;
56 | 5:optional string uuidFichaCancelada;
57 | }
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_avaliacao_elegibilidade.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.avaliacaoelegibilidade
4 | namespace php br.gov.saude.esusab.ras.avaliacaoelegibilidade
5 | namespace delphi br.gov.saude.esusab.ras.avaliacaoelegibilidade
6 | namespace csharp br.gov.saude.esusab.ras.avaliacaoelegibilidade
7 | namespace rb br.gov.saude.esusab.ras.avaliacaoelegibilidade
8 | namespace go br.gov.saude.esusab.ras.avaliacaoelegibilidade
9 | namespace py br.gov.saude.esusab.ras.avaliacaoelegibilidade
10 |
11 | struct FichaAvaliacaoElegibilidadeThrift {
12 | 1:required string uuidFicha;
13 | 2:optional i32 tpCdsOrigem;
14 | 4:optional string cnsCidadao;
15 | 5:optional string nomeCidadao;
16 | 6:optional string nomeSocialCidadao;
17 | 7:optional i64 dataNascimentoCidadao;
18 | 8:optional i64 sexoCidadao;
19 | 9:optional i64 racaCorCidadao;
20 | 10:optional string nomeMaeCidadao;
21 | 11:optional bool desconheceNomeMae;
22 | 12:optional string codigoIbgeMunicipioNascimento;
23 | 13:optional i64 nacionalidadeCidadao;
24 | 14:optional string emailCidadao;
25 | 15:optional string numeroNisPisPasep;
26 | 16:optional common.EnderecoLocalPermanenciaThrift endereco;
27 | 17:optional i64 atencaoDomiciliarProcedencia;
28 | 18:optional i64 atencaoDomiciliarModalidade;
29 | 19:optional list condicoesAvaliadas;
30 | 20:optional string cid10Principal;
31 | 21:optional string cid10SecundarioUm;
32 | 22:optional string cid10SecundarioDois;
33 | 23:optional i64 conclusaoDestinoElegivel;
34 | 24:optional list conclusaoDestinoInelegivel;
35 | 25:optional i64 cuidadorCidadao;
36 | 26:optional i64 turno;
37 | 27:optional common.VariasLotacoesHeaderThrift headerTransport;
38 | 28:optional string nomePaiCidadao;
39 | 29:optional bool desconheceNomePai;
40 | 30:optional i64 dtNaturalizacao;
41 | 31:optional string portariaNaturalizacao;
42 | 32:optional i64 dtEntradaBrasil;
43 | 33:optional i64 paisNascimento;
44 | 34:optional i64 etnia;
45 | 35:optional string cnsCuidador;
46 | 36:optional string cpfCidadao;
47 | 37:optional string cpfCuidador;
48 | }
--------------------------------------------------------------------------------
/XSD/informacoessociodemograficas.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/thrift/layout-cidadao/thrift/cidadao_transport.thrift:
--------------------------------------------------------------------------------
1 | struct EnderecoTransportThrift {
2 | 1:optional string bairroNome;
3 | 2:optional string bairroDne;
4 | 3:optional string localidadeCep;
5 | 4:optional string localidadeDne;
6 | 5:optional string localidadeIbge;
7 | 6:optional string complemento;
8 | 7:optional string logradouro;
9 | 8:optional string logradouroDne;
10 | 9:optional string numero;
11 | 10:optional string pontoReferencia;
12 | 11:required bool semNumero;
13 | 12:optional string ufSigla;
14 | 13:optional string area;
15 | 14:optional string microArea;
16 | }
17 |
18 | enum SexoThrift {
19 | MASCULINO = 0,
20 | FEMININO = 1,
21 | AMBOS = 2,
22 | NAO_INFORMADO = 3
23 | }
24 |
25 | enum TipoSanguineoThrift {
26 | A_POSITIVO = 0,
27 | A_NEGATIVO = 1,
28 | B_POSITIVO = 2,
29 | B_NEGATIVO = 3,
30 | AB_POSITIVO = 4,
31 | AB_NEGATIVO = 5,
32 | O_POSITIVO = 6,
33 | O_NEGATIVO = 7
34 | }
35 |
36 | struct CidadaoTransportThrift {
37 | 1:required bool naoPossuiCns;
38 | 2:required string cns;
39 | 3:optional string cpf;
40 | 4:required i64 dataNascimento;
41 | 5:required bool desconheceNomeMae;
42 | 6:optional string nomeMae;
43 | 7:optional string email;
44 | 8:optional EnderecoTransportThrift endereco;
45 | 9:optional i64 escolaridadeId;
46 | 10:optional i64 estadoCivilId;
47 | 11:required bool estrangeiro;
48 | 12:optional i64 etniaId;
49 | 13:optional bool faleceu;
50 | 14:required string municipioNascimentoCep;
51 | 15:required string municipioNascimentoDne;
52 | 16:optional string municipioNascimentoIbge;
53 | 17:optional string nisPisPasep;
54 | 18:required string nomeCompleto;
55 | 19:optional string nomeSocial;
56 | 20:optional string numeroProntuario;
57 | 22:optional string numeroProntuarioCnes;
58 | 23:required i64 racaCorId;
59 | 24:required SexoThrift sexo;
60 | 25:optional string telefoneCelular;
61 | 26:optional string telefoneContato;
62 | 27:optional string telefoneResidencial;
63 | 28:optional TipoSanguineoThrift tipoSanguineo;
64 | 29:optional string cboNumero;
65 | }
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_atendimento_odonto.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 | include "./solicitacao_oci.thrift"
3 |
4 | namespace java br.gov.saude.esusab.ras.atendodonto
5 | namespace php br.gov.saude.esusab.ras.atendodonto
6 | namespace delphi br.gov.saude.esusab.ras.atendodonto
7 | namespace csharp br.gov.saude.esusab.ras.atendodonto
8 | namespace rb br.gov.saude.esusab.ras.atendodonto
9 | namespace go br.gov.saude.esusab.ras.atendodonto
10 | namespace py br.gov.saude.esusab.ras.atendodonto
11 |
12 | struct ProcedimentoQuantidadeThrift {
13 | 1:optional string coMsProcedimento;
14 | 2:optional i32 quantidade;
15 | }
16 |
17 | struct FichaAtendimentoOdontologicoChildThrift {
18 | 1:optional i64 dtNascimento;
19 | 2:optional string cnsCidadao;
20 | 3:optional string numProntuario;
21 | 4:optional bool gestante;
22 | 5:optional bool necessidadesEspeciais;
23 | 6:optional i64 localAtendimento;
24 | 7:optional i64 tipoAtendimento;
25 | 8:optional list tiposEncamOdonto;
26 | 9:optional list tiposFornecimOdonto;
27 | 10:optional list tiposVigilanciaSaudeBucal;
28 | 11:optional list tiposConsultaOdonto;
29 | 12:optional list procedimentosRealizados;
30 | 14:optional i64 sexo;
31 | 15:optional i64 turno;
32 | 16:optional i64 dataHoraInicialAtendimento;
33 | 17:optional i64 dataHoraFinalAtendimento;
34 | 18:optional string cpfCidadao;
35 | 19:optional list medicamentos;
36 | 20:optional list encaminhamentos;
37 | 21:optional list resultadosExames;
38 | 27:optional common.MedicoesThrift medicoes;
39 | 28:optional list problemasCondicoes;
40 | 29:optional common.IvcfThrift ivcf;
41 | 30:optional list exame;
42 | 31:optional list solicitacoesOci;
43 | }
44 |
45 | struct FichaAtendimentoOdontologicoMasterThrift {
46 | 1:required string uuidFicha;
47 | 2:optional common.VariasLotacoesHeaderThrift headerTransport;
48 | 3:optional list atendimentosOdontologicos;
49 | 4:optional i32 tpCdsOrigem;
50 | }
51 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/br/gov/saude/esus/ras/consumoalimentar/PerguntaCriancasComMaisDoisAnosEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasComMaisDoisAnosEnumThrift implements org.apache.thrift.TEnum {
15 | VOCE_TEM_COSTUME_DE_REALIZAR_AS_REFEICOES_ASSISTINDO_TV_MEXENDO_NO_COMPUTADOR_E_OU_CELULAR(11),
16 | QUAIS_REFEICOES_VOCE_FAZ_AO_LONGO_DO_DIA(12),
17 | FEIJAO(14),
18 | FRUTAS_FRESCAS(15),
19 | VERDURAS_E_OU_LEGUMES(16),
20 | HAMBURGUER_E_OU_EMBUTIDOS(17),
21 | BEBIDAS_ADOCADAS(18),
22 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS(19),
23 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS(20);
24 |
25 | private final int value;
26 |
27 | private PerguntaCriancasComMaisDoisAnosEnumThrift(int value) {
28 | this.value = value;
29 | }
30 |
31 | /**
32 | * Get the integer value of this enum value, as defined in the Thrift IDL.
33 | */
34 | public int getValue() {
35 | return value;
36 | }
37 |
38 | /**
39 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
40 | * @return null if the value is not found.
41 | */
42 | public static PerguntaCriancasComMaisDoisAnosEnumThrift findByValue(int value) {
43 | switch (value) {
44 | case 11:
45 | return VOCE_TEM_COSTUME_DE_REALIZAR_AS_REFEICOES_ASSISTINDO_TV_MEXENDO_NO_COMPUTADOR_E_OU_CELULAR;
46 | case 12:
47 | return QUAIS_REFEICOES_VOCE_FAZ_AO_LONGO_DO_DIA;
48 | case 14:
49 | return FEIJAO;
50 | case 15:
51 | return FRUTAS_FRESCAS;
52 | case 16:
53 | return VERDURAS_E_OU_LEGUMES;
54 | case 17:
55 | return HAMBURGUER_E_OU_EMBUTIDOS;
56 | case 18:
57 | return BEBIDAS_ADOCADAS;
58 | case 19:
59 | return MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS;
60 | case 20:
61 | return BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS;
62 | default:
63 | return null;
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-javabean/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasComMaisDoisAnosEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasComMaisDoisAnosEnumThrift implements org.apache.thrift.TEnum {
15 | VOCE_TEM_COSTUME_DE_REALIZAR_AS_REFEICOES_ASSISTINDO_TV_MEXENDO_NO_COMPUTADOR_E_OU_CELULAR(11),
16 | QUAIS_REFEICOES_VOCE_FAZ_AO_LONGO_DO_DIA(12),
17 | FEIJAO(14),
18 | FRUTAS_FRESCAS(15),
19 | VERDURAS_E_OU_LEGUMES(16),
20 | HAMBURGUER_E_OU_EMBUTIDOS(17),
21 | BEBIDAS_ADOCADAS(18),
22 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS(19),
23 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS(20);
24 |
25 | private final int value;
26 |
27 | private PerguntaCriancasComMaisDoisAnosEnumThrift(int value) {
28 | this.value = value;
29 | }
30 |
31 | /**
32 | * Get the integer value of this enum value, as defined in the Thrift IDL.
33 | */
34 | public int getValue() {
35 | return value;
36 | }
37 |
38 | /**
39 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
40 | * @return null if the value is not found.
41 | */
42 | public static PerguntaCriancasComMaisDoisAnosEnumThrift findByValue(int value) {
43 | switch (value) {
44 | case 11:
45 | return VOCE_TEM_COSTUME_DE_REALIZAR_AS_REFEICOES_ASSISTINDO_TV_MEXENDO_NO_COMPUTADOR_E_OU_CELULAR;
46 | case 12:
47 | return QUAIS_REFEICOES_VOCE_FAZ_AO_LONGO_DO_DIA;
48 | case 14:
49 | return FEIJAO;
50 | case 15:
51 | return FRUTAS_FRESCAS;
52 | case 16:
53 | return VERDURAS_E_OU_LEGUMES;
54 | case 17:
55 | return HAMBURGUER_E_OU_EMBUTIDOS;
56 | case 18:
57 | return BEBIDAS_ADOCADAS;
58 | case 19:
59 | return MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS;
60 | case 20:
61 | return BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS;
62 | default:
63 | return null;
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/XSD/fichavisitadomiciliarchild.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-php/br/gov/saude/esusab/ras/solicitacaooci/Types.php:
--------------------------------------------------------------------------------
1 | array(
32 | 'var' => 'codigoSigtap',
33 | 'type' => TType::STRING,
34 | ),
35 | );
36 | }
37 | if (is_array($vals)) {
38 | if (isset($vals['codigoSigtap'])) {
39 | $this->codigoSigtap = $vals['codigoSigtap'];
40 | }
41 | }
42 | }
43 |
44 | public function getName() {
45 | return 'SolicitacaoOciThrift';
46 | }
47 |
48 | public function read($input)
49 | {
50 | $xfer = 0;
51 | $fname = null;
52 | $ftype = 0;
53 | $fid = 0;
54 | $xfer += $input->readStructBegin($fname);
55 | while (true)
56 | {
57 | $xfer += $input->readFieldBegin($fname, $ftype, $fid);
58 | if ($ftype == TType::STOP) {
59 | break;
60 | }
61 | switch ($fid)
62 | {
63 | case 1:
64 | if ($ftype == TType::STRING) {
65 | $xfer += $input->readString($this->codigoSigtap);
66 | } else {
67 | $xfer += $input->skip($ftype);
68 | }
69 | break;
70 | default:
71 | $xfer += $input->skip($ftype);
72 | break;
73 | }
74 | $xfer += $input->readFieldEnd();
75 | }
76 | $xfer += $input->readStructEnd();
77 | return $xfer;
78 | }
79 |
80 | public function write($output) {
81 | $xfer = 0;
82 | $xfer += $output->writeStructBegin('SolicitacaoOciThrift');
83 | if ($this->codigoSigtap !== null) {
84 | $xfer += $output->writeFieldBegin('codigoSigtap', TType::STRING, 1);
85 | $xfer += $output->writeString($this->codigoSigtap);
86 | $xfer += $output->writeFieldEnd();
87 | }
88 | $xfer += $output->writeFieldStop();
89 | $xfer += $output->writeStructEnd();
90 | return $xfer;
91 | }
92 |
93 | }
94 |
95 |
96 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/ficha_atendimento_individual.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 | include "./solicitacao_oci.thrift"
3 |
4 | namespace java br.gov.saude.esusab.ras.atendindividual
5 | namespace php br.gov.saude.esusab.ras.atendindividual
6 | namespace delphi br.gov.saude.esusab.ras.atendindividual
7 | namespace csharp br.gov.saude.esusab.ras.atendindividual
8 | namespace rb br.gov.saude.esusab.ras.atendindividual
9 | namespace go br.gov.saude.esusab.ras.atendindividual
10 | namespace py br.gov.saude.esusab.ras.atendindividual
11 |
12 | struct ProblemaCondicaoAvaliacaoAIThrift {
13 | 1:optional list ciaps;
14 | 2:optional string outroCiap1;
15 | 3:optional string outroCiap2;
16 | 4:optional string cid10;
17 | 5:optional string cid10_2;
18 | }
19 |
20 | struct FichaAtendimentoIndividualChildThrift {
21 | 1:optional string numeroProntuario;
22 | 2:optional string cns;
23 | 3:optional i64 dataNascimento;
24 | 4:optional i64 localDeAtendimento;
25 | 5:optional i64 sexo;
26 | 6:optional i64 turno;
27 | 7:optional i64 tipoAtendimento;
28 | 10:optional i64 aleitamentoMaterno;
29 | 11:optional i64 dumDaGestante;
30 | 12:optional i32 idadeGestacional;
31 | 13:optional i64 atencaoDomiciliarModalidade;
32 | 17:optional list exame;
33 | 18:optional bool vacinaEmDia;
34 | 19:optional i64 pic;
35 | 20:optional bool ficouEmObservacao;
36 | 21:optional list nasfs;
37 | 22:optional list condutas;
38 | 23:optional bool stGravidezPlanejada;
39 | 24:optional i32 nuGestasPrevias;
40 | 25:optional i32 nuPartos;
41 | 26:optional i64 racionalidadeSaude;
42 | 28:optional i64 dataHoraInicialAtendimento;
43 | 29:optional i64 dataHoraFinalAtendimento;
44 | 30:optional string cpfCidadao;
45 | 31:optional list medicamentos;
46 | 32:optional list encaminhamentos;
47 | 33:optional list resultadosExames;
48 | 35:optional common.LotacaoHeaderThrift finalizadorObservacao;
49 | 36:optional i64 tipoParticipacaoCidadao;
50 | 37:optional i64 tipoParticipacaoProfissionalConvidado;
51 | 38:optional list emultis;
52 | 39:optional common.MedicoesThrift medicoes;
53 | 40:optional list problemasCondicoes;
54 | 41:optional common.IvcfThrift ivcf;
55 | 43:optional list solicitacoesOci;
56 | }
57 |
58 | struct FichaAtendimentoIndividualMasterThrift {
59 | 1:optional common.VariasLotacoesHeaderThrift headerTransport;
60 | 2:optional list atendimentosIndividuais;
61 | 3:required string uuidFicha;
62 | 4:optional i32 tpCdsOrigem;
63 | }
64 |
--------------------------------------------------------------------------------
/XSD/cuidadocompartilhado.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Padrão aceito YYYY-MM-DD
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/thrift/layout-ras/thrift/cadastro_domiciliar.thrift:
--------------------------------------------------------------------------------
1 | include "./common.thrift"
2 |
3 | namespace java br.gov.saude.esusab.ras.cadastrodomiciliar
4 | namespace php br.gov.saude.esusab.ras.cadastrodomiciliar
5 | namespace delphi br.gov.saude.esusab.ras.cadastrodomiciliar
6 | namespace csharp br.gov.saude.esusab.ras.cadastrodomiciliar
7 | namespace rb br.gov.saude.esusab.ras.cadastrodomiciliar
8 | namespace go br.gov.saude.esusab.ras.cadastrodomiciliar
9 | namespace py br.gov.saude.esusab.ras.cadastrodomiciliar
10 |
11 | struct InstituicaoPermanenciaThrift {
12 | 1:optional string nomeInstituicaoPermanencia,
13 | 2:optional bool stOutrosProfissionaisVinculados,
14 | 3:optional string nomeResponsavelTecnico,
15 | 4:optional string cnsResponsavelTecnico,
16 | 5:optional string cargoInstituicao,
17 | 6:optional string telefoneResponsavelTecnico;
18 | }
19 |
20 | struct CondicaoMoradiaThrift {
21 | 1:optional i64 abastecimentoAgua,
22 | 2:optional i64 areaProducaoRural,
23 | 3:optional i64 destinoLixo,
24 | 4:optional i64 formaEscoamentoBanheiro,
25 | 5:optional i64 localizacao,
26 | 6:optional i64 materialPredominanteParedesExtDomicilio,
27 | 7:optional string nuComodos,
28 | 8:optional string nuMoradores,
29 | 9:optional i64 situacaoMoradiaPosseTerra,
30 | 10:optional bool stDisponibilidadeEnergiaEletrica,
31 | 11:optional i64 tipoAcessoDomicilio,
32 | 12:optional i64 tipoDomicilio,
33 | 13:optional i64 aguaConsumoDomicilio,
34 | 14:optional i64 tipoOrigemEnergiaEletrica;
35 | }
36 |
37 | struct FamiliaRowThrift {
38 | 1:optional i64 dataNascimentoResponsavel,
39 | 2:optional string numeroCnsResponsavel,
40 | 3:optional i32 numeroMembrosFamilia,
41 | 4:optional string numeroProntuario,
42 | 5:optional i64 rendaFamiliar,
43 | 6:optional i64 resideDesde,
44 | 7:optional bool stMudanca,
45 | 8:optional string cpfResponsavel;
46 | }
47 |
48 | struct CadastroDomiciliarThrift {
49 | 1:optional list animaisNoDomicilio,
50 | 2:optional CondicaoMoradiaThrift condicaoMoradia,
51 | 4:optional common.EnderecoLocalPermanenciaThrift enderecoLocalPermanencia,
52 | 5:optional list familias,
53 | 6:optional bool fichaAtualizada,
54 | 7:optional string quantosAnimaisNoDomicilio,
55 | 8:optional bool stAnimaisNoDomicilio,
56 | 9:optional bool statusTermoRecusa,
57 | 10:optional i32 tpCdsOrigem,
58 | 11:required string uuid,
59 | 12:optional string uuidFichaOriginadora,
60 | 13:optional i64 tipoDeImovel,
61 | 14:optional InstituicaoPermanenciaThrift instituicaoPermanencia,
62 | 15:optional common.UnicaLotacaoHeaderThrift headerTransport,
63 | 17:optional double latitude,
64 | 18:optional double longitude,
65 | 20:optional i64 tipoEndereco;
66 | }
67 |
--------------------------------------------------------------------------------
/XSD/identificacaousuariocidadao.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-py/br/gov/saude/esusab/ras/solicitacaooci/ttypes.py:
--------------------------------------------------------------------------------
1 | #
2 | # Autogenerated by Thrift Compiler (0.9.3)
3 | #
4 | # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | #
6 | # options string: py
7 | #
8 |
9 | from thrift.Thrift import TType, TMessageType, TException, TApplicationException
10 |
11 | from thrift.transport import TTransport
12 | from thrift.protocol import TBinaryProtocol, TProtocol
13 | try:
14 | from thrift.protocol import fastbinary
15 | except:
16 | fastbinary = None
17 |
18 |
19 |
20 | class SolicitacaoOciThrift:
21 | """
22 | Attributes:
23 | - codigoSigtap
24 | """
25 |
26 | thrift_spec = (
27 | None, # 0
28 | (1, TType.STRING, 'codigoSigtap', None, None, ), # 1
29 | )
30 |
31 | def __init__(self, codigoSigtap=None,):
32 | self.codigoSigtap = codigoSigtap
33 |
34 | def read(self, iprot):
35 | if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
36 | fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
37 | return
38 | iprot.readStructBegin()
39 | while True:
40 | (fname, ftype, fid) = iprot.readFieldBegin()
41 | if ftype == TType.STOP:
42 | break
43 | if fid == 1:
44 | if ftype == TType.STRING:
45 | self.codigoSigtap = iprot.readString()
46 | else:
47 | iprot.skip(ftype)
48 | else:
49 | iprot.skip(ftype)
50 | iprot.readFieldEnd()
51 | iprot.readStructEnd()
52 |
53 | def write(self, oprot):
54 | if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
55 | oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
56 | return
57 | oprot.writeStructBegin('SolicitacaoOciThrift')
58 | if self.codigoSigtap is not None:
59 | oprot.writeFieldBegin('codigoSigtap', TType.STRING, 1)
60 | oprot.writeString(self.codigoSigtap)
61 | oprot.writeFieldEnd()
62 | oprot.writeFieldStop()
63 | oprot.writeStructEnd()
64 |
65 | def validate(self):
66 | return
67 |
68 |
69 | def __hash__(self):
70 | value = 17
71 | value = (value * 31) ^ hash(self.codigoSigtap)
72 | return value
73 |
74 | def __repr__(self):
75 | L = ['%s=%r' % (key, value)
76 | for key, value in self.__dict__.iteritems()]
77 | return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
78 |
79 | def __eq__(self, other):
80 | return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
81 |
82 | def __ne__(self, other):
83 | return not (self == other)
84 |
--------------------------------------------------------------------------------
/XSD/fichacomplementarzikamicrocefalia.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/XSD/fichaatividadecoletiva.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/thrift-exemplo/delphi/src/thriftutils/Thrift.TypeRegistry.pas:
--------------------------------------------------------------------------------
1 | (*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | *)
19 |
20 | unit Thrift.TypeRegistry;
21 |
22 | interface
23 |
24 | uses
25 | Generics.Collections, TypInfo,
26 | Thrift.Protocol;
27 |
28 | type
29 | TFactoryMethod = function:T;
30 |
31 | TypeRegistry = class
32 | private
33 | class var FTypeInfoToFactoryLookup : TDictionary;
34 | public
35 | class constructor Create;
36 | class destructor Destroy;
37 | class procedure RegisterTypeFactory(const aFactoryMethod: TFactoryMethod);
38 | class function Construct: F;
39 | class function ConstructFromTypeInfo(const aTypeInfo: PTypeInfo): IBase;
40 | end;
41 |
42 | implementation
43 |
44 |
45 | { TypeRegistration }
46 |
47 | class constructor TypeRegistry.Create;
48 | begin
49 | FTypeInfoToFactoryLookup := TDictionary.Create;
50 | end;
51 |
52 | class destructor TypeRegistry.Destroy;
53 | begin
54 | FTypeInfoToFactoryLookup.Free;
55 | end;
56 |
57 | class procedure TypeRegistry.RegisterTypeFactory(const aFactoryMethod: TFactoryMethod);
58 | var
59 | TypeInfo : Pointer;
60 | begin
61 | TypeInfo := System.TypeInfo(F);
62 |
63 | if (TypeInfo <> nil) and (PTypeInfo(TypeInfo).Kind = tkInterface)
64 | then FTypeInfoToFactoryLookup.AddOrSetValue(TypeInfo, @aFactoryMethod);
65 | end;
66 |
67 | class function TypeRegistry.Construct: F;
68 | var
69 | TypeInfo : PTypeInfo;
70 | Factory : Pointer;
71 | begin
72 | Result := default(F);
73 |
74 | TypeInfo := System.TypeInfo(F);
75 |
76 | if Assigned(TypeInfo) and (TypeInfo.Kind = tkInterface)
77 | then begin
78 | if FTypeInfoToFactoryLookup.TryGetValue(TypeInfo, Factory)
79 | then Result := TFactoryMethod(Factory)();
80 | end;
81 | end;
82 |
83 | class function TypeRegistry.ConstructFromTypeInfo(const aTypeInfo: PTypeInfo): IBase;
84 | var
85 | Factory : Pointer;
86 | begin
87 | Result := nil;
88 | if FTypeInfoToFactoryLookup.TryGetValue(aTypeInfo, Factory)
89 | then Result := IBase(TFactoryMethod(Factory)());
90 | end;
91 |
92 |
93 |
94 |
95 | end.
96 |
--------------------------------------------------------------------------------
/xml-exemplo/Cadastro_Domiciliar_Recusa.esus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0019615-1bb84623-72c6-4300-b505-c7c6b84ae662
4 | 3
5 | 4205407
6 | 0019615
7 | 0000471828
8 | 62
9 |
10 | 3
11 |
12 | ITACORUBI
13 | 88036400
14 | 4205407
15 | CASA
16 | AMARO ANTÔNIO VIEIRA
17 | 10
18 | 25
19 | 48994899948
20 | 99999999999
21 | 081
22 | false
23 | POSTO DE SAÚDE
24 | FA
25 | true
26 |
27 | 89.12345678
28 | 179.12345678
29 | false
30 | true
31 | 3
32 | 0019615-1bb84623-72c6-4300-b505-c7c6b84ae662
33 | 0019615-1bb84623-72c6-4300-b505-c7c6b84ae662
34 | 1
35 |
36 |
37 | 700609923387762
38 | 515105
39 | 0019615
40 | 0000471828
41 | 1549206000000
42 | 4205407
43 |
44 |
45 |
46 | TREINAMENTO
47 | TREINAMENTO
48 | 01234567890
49 | ADMINISTRADOR INSTALAÇÃO
50 | 8216756527
51 | prof@esus.br
52 | 5.0.16
53 | Oracle
54 |
55 |
56 | TREINAMENTO
57 | TREINAMENTO
58 | 01234567890
59 | ADMINISTRADOR INSTALAÇÃO
60 | 8216756527
61 | prof@esus.br
62 | 5.0.16
63 | Oracle
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/xml-exemplo/Atividade_Coletiva_Reuniao.esus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0019615-40a7d073-3710-4a13-b7c8-428de1f5cd43
4 | 6
5 | 4205407
6 | 0019615
7 | 0000471828
8 | 43
9 |
10 | 0019615-40a7d073-3710-4a13-b7c8-428de1f5cd43
11 | 41111111
12 | 10
13 | 1
14 |
15 | 700609923387762
16 | 223208
17 |
18 | 1
19 | 1
20 | 2
21 |
22 | 767273769570018
23 | 1430838000000
24 | true
25 | 25.0
26 | 100.0
27 | 0
28 |
29 |
30 | 68688625042
31 | 1430838000000
32 | false
33 | 24.0
34 | 98.0
35 | 0
36 |
37 | 3
38 | 3
39 | false
40 | false
41 |
42 | 700609923387762
43 | 223208
44 | 0019615
45 | 0000471828
46 | 1549465200000
47 | 4205407
48 |
49 |
50 |
51 | TREINAMENTO
52 | TREINAMENTO
53 | 01234567890
54 | ADMINISTRADOR INSTALAÇÃO
55 | 8216756527
56 | prof@esus.br
57 | 5.0.16
58 | Oracle
59 |
60 |
61 | TREINAMENTO
62 | TREINAMENTO
63 | 01234567890
64 | ADMINISTRADOR INSTALAÇÃO
65 | 8216756527
66 | prof@esus.br
67 | 5.0.16
68 | Oracle
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/XSD/fichaatendimentoindividualmaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/XSD/cadastroindividual.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/xml-exemplo/Complementar_Zika_Microcefalia.esus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0019615-f4718f9b-2d1d-4072-b94c-77c6b78c5218
4 | 13
5 | 4205407
6 | 0019615
7 | 0000471828
8 | 8
9 |
10 |
11 | 700609923387762
12 | 225142
13 | 0019615
14 | 0000471828
15 | 1551106800000
16 | 4205407
17 |
18 | 0019615-f4718f9b-2d1d-4072-b94c-77c6b78c5218
19 | 3
20 | 1
21 | 31422733521
22 | 68688625042
23 | 1551106800000
24 | 1
25 | 1550674800000
26 | 3
27 | 1550242800000
28 | 5
29 | 1549810800000
30 | 7
31 | 1549378800000
32 | 13
33 | 1549033200000
34 | 15
35 |
36 |
37 | TREINAMENTO
38 | TREINAMENTO
39 | 01234567890
40 | ADMINISTRADOR INSTALAÇÃO
41 | 8216756527
42 | prof@esus.br
43 | 5.0.16
44 | Oracle
45 |
46 |
47 | TREINAMENTO
48 | TREINAMENTO
49 | 01234567890
50 | ADMINISTRADOR INSTALAÇÃO
51 | 8216756527
52 | prof@esus.br
53 | 5.0.16
54 | Oracle
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/XSD/cadastrodomiciliar.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/xml-exemplo/Cadastro_Individual_Recusa.esus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0019615-ced61f6f-0f37-48df-b894-1d1c729f8a71
4 | 2
5 | 4205407
6 | 0019615
7 | 0000471828
8 | 71
9 |
10 |
11 |
12 | false
13 |
14 |
15 | 1012658400000
16 | true
17 | gmail@gmail.com
18 | 2
19 | ABREU SILVA
20 | 31422733521
21 | 68688625042
22 | 99999999999
23 | 1
24 | 0
25 | false
26 | true
27 | 1515160800000
28 | 01234567890
29 | FA
30 | true
31 |
32 |
33 |
34 | true
35 | 3
36 | 0019615-ced61f6f-0f37-48df-b894-1d1c729f8a71
37 | 0019615-ced61f6f-0f37-48df-b894-1d1c729f8a71
38 |
39 | 700609923387762
40 | 515105
41 | 0019615
42 | 0000471828
43 | 1549119600000
44 | 4205407
45 |
46 |
47 |
48 | TREINAMENTO
49 | TREINAMENTO
50 | 01234567890
51 | ADMINISTRADOR INSTALAÇÃO
52 | 5.0.16
53 | Oracle
54 |
55 |
56 | TREINAMENTO
57 | TREINAMENTO
58 | 01234567890
59 | ADMINISTRADOR INSTALAÇÃO
60 | 5.0.16
61 | Oracle
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/xml-exemplo/Atividade_Coletiva_EducacaoSaude.esus.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0019615-40a7d073-3710-4a13-b7c8-428de1f5cd42
4 | 6
5 | 4205407
6 | 0019615
7 | 0000471828
8 | 42
9 |
10 | 0019615-40a7d073-3710-4a13-b7c8-428de1f5cd42
11 | 42169402
12 | 3
13 | 1
14 |
15 | 700609923387762
16 | 223208
17 |
18 |
19 | 706700568906117
20 | 322245
21 |
22 | 4
23 | 6
24 | 7
25 |
26 | 767273769570018
27 | 1430838000000
28 | true
29 | 56.0
30 | 160.0
31 | 1
32 |
33 |
34 | 68688625042
35 | 1430838000000
36 | false
37 | 50.0
38 | 149.0
39 | 1
40 |
41 | 3
42 | 1
43 | true
44 | true
45 |
46 | 700609923387762
47 | 223208
48 | 0019615
49 | 0000471828
50 | 1549465200000
51 | 4205407
52 |
53 | 15
54 | 6
55 |
56 |
57 | TREINAMENTO
58 | TREINAMENTO
59 | 01234567890
60 | ADMINISTRADOR INSTALAÇÃO
61 | 8216756527
62 | prof@esus.br
63 | 5.0.16
64 | Oracle
65 |
66 |
67 | TREINAMENTO
68 | TREINAMENTO
69 | 01234567890
70 | ADMINISTRADOR INSTALAÇÃO
71 | 8216756527
72 | prof@esus.br
73 | 5.0.16
74 | Oracle
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/XSD/fichaatendimentoodontologicomaster.xsd:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/XSD/condicoesdesaude.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/thrift/layout-camada-transport/thrift/dado_transporte.thrift:
--------------------------------------------------------------------------------
1 |
2 | namespace java br.gov.saude.esusab.dadotransp
3 | namespace php br.gov.saude.esusab.dadotransp
4 | namespace delphi br.gov.saude.esusab.dadotransp
5 | namespace csharp br.gov.saude.esusab.dadotransp
6 | namespace rb br.gov.saude.esusab.dadotransp
7 | namespace go br.gov.saude.esusab.dadotransp
8 | namespace py br.gov.saude.esusab.dadotransp
9 |
10 | /**
11 | * Indica a versão do dado a ser transportado. A versão do dado não necessariamente reflete a versão do sistema.
12 | */
13 | struct VersaoThrift {
14 | 1:required i32 major,
15 | 2:required i32 minor,
16 | 3:required i32 revision
17 | }
18 |
19 | /**
20 | * Dados para identificar a instalacao que cadastrou/gerou os dados e/ou enviou
21 | */
22 | struct DadoInstalacaoThrift {
23 | /**
24 | * Identifica o software que gerou o dado (pec/cds, cdsOff ou software de terceiros).
25 | */
26 | 1:required string contraChave;
27 |
28 | /**
29 | * É um identificador da instalação do software que gerou o dado. Seja ele o e-SUS ou software de terceiro.
30 | */
31 | 2:optional string uuidInstalacao;
32 |
33 | /**
34 | * Cpf do responsável ou CNPJ da empresa responsável
35 | */
36 | 3:required string cpfOuCnpj;
37 |
38 | /**
39 | * Nome do responsável ou Razão Social da empresa responsável
40 | */
41 | 4:required string nomeOuRazaoSocial;
42 |
43 | /**
44 | * Telefone da pessoa ou empresa responsável
45 | */
46 | 5:optional string fone;
47 |
48 | /**
49 | * Email da pessoa ou empresa responsável
50 | */
51 | 6:optional string email;
52 |
53 | /**
54 | * Versão do software
55 | */
56 | 7:optional string versaoSistema;
57 |
58 | /**
59 | * Nome do banco de dados que o software utiliza
60 | */
61 | 8:optional string nomeBancoDados;
62 | }
63 |
64 | /**
65 | * Objeto que encapsula uma ficha serializada com TBinaryProtocol e alguns de seus dados de identificação
66 | */
67 | struct DadoTransporteThrift {
68 | /**
69 | * UUID do dado (identificador "universal" gerado na criação do item)
70 | */
71 | 1:required string uuidDadoSerializado;
72 |
73 | /**
74 | * Tipo/classe do objeto serializado através do TBinaryProtocol.
75 | */
76 | 2:required i64 tipoDadoSerializado;
77 |
78 | /**
79 | * Código CNES da unidade de saúde.
80 | */
81 | 3:required string cnesDadoSerializado;
82 |
83 | /**
84 | * Código IBGE do dado serializado
85 | */
86 | 4:optional string codIbge;
87 |
88 | /**
89 | * Código INE da equipe que gerou a ficha.
90 | */
91 | 5:optional string ineDadoSerializado;
92 |
93 | /**
94 | * Numero do lote em {@link DadoTransporteThrift#originadora}
95 | */
96 | 6:optional i64 numLote;
97 |
98 | /**
99 | * Ficha serializado através do TBinaryProtocol.
100 | */
101 | 7:required binary dadoSerializado;
102 |
103 | /**
104 | * Identifica a instalação que enviou o dado
105 | * @see DadoInstalacaoThrift
106 | */
107 | 8:required DadoInstalacaoThrift remetente;
108 |
109 | /**
110 | * Identifica a instalação que cadastrou/digitou
111 | * @see DadoInstalacaoThrift
112 | */
113 | 9:required DadoInstalacaoThrift originadora;
114 |
115 | /**
116 | * Versão da ficha
117 | * @see VersaoThrift
118 | */
119 | 10:optional VersaoThrift versao;
120 | }
121 |
--------------------------------------------------------------------------------
/thrift/layout-ras/gen-javabean/br/gov/saude/esusab/ras/consumoalimentar/PerguntaCriancasDeSeisVinteTresMesesEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasDeSeisVinteTresMesesEnumThrift implements org.apache.thrift.TEnum {
15 | A_CRIANCA_ONTEM_TOMOU_LEITE_PEITO(21),
16 | ONTEM_A_CRIANCA_COMEU_FRUTA_INTEIRA_PEDACO_AMASSADO(22),
17 | SE_SIM_QUANTAS_VEZES(23),
18 | ONTEM_A_CRIANCA_COMEU_COMIDA_DE_SAL(24),
19 | SE_COMEU_COMIDA_DE_SAL_QUANTAS_VEZES(25),
20 | SE_SIM_ESSA_COMIDA_FOI_OFERECIDA(26),
21 | OUTRO_LEITE_QUE_NAO_LEITE_DO_PEITO(28),
22 | MINGAU_COM_LEITE(29),
23 | IOGURTE(30),
24 | LEGUMES(31),
25 | VEGETAL_OU_FRUTAS_COR_ALARANJADA_OU_FOLHAS_ESCURAS(32),
26 | VERDURA_DE_FOLHA(33),
27 | CARNE(34),
28 | FIGADO(35),
29 | FEIJAO(36),
30 | ARROZ_BATATA_INHAME_MANDIOCA_FARINHA_MACARRAO(37),
31 | HAMBURGUER_E_OU_EMBUTIDOS(38),
32 | BEBIDAS_ADOCADAS(39),
33 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS(40),
34 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS(41);
35 |
36 | private final int value;
37 |
38 | private PerguntaCriancasDeSeisVinteTresMesesEnumThrift(int value) {
39 | this.value = value;
40 | }
41 |
42 | /**
43 | * Get the integer value of this enum value, as defined in the Thrift IDL.
44 | */
45 | public int getValue() {
46 | return value;
47 | }
48 |
49 | /**
50 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
51 | * @return null if the value is not found.
52 | */
53 | public static PerguntaCriancasDeSeisVinteTresMesesEnumThrift findByValue(int value) {
54 | switch (value) {
55 | case 21:
56 | return A_CRIANCA_ONTEM_TOMOU_LEITE_PEITO;
57 | case 22:
58 | return ONTEM_A_CRIANCA_COMEU_FRUTA_INTEIRA_PEDACO_AMASSADO;
59 | case 23:
60 | return SE_SIM_QUANTAS_VEZES;
61 | case 24:
62 | return ONTEM_A_CRIANCA_COMEU_COMIDA_DE_SAL;
63 | case 25:
64 | return SE_COMEU_COMIDA_DE_SAL_QUANTAS_VEZES;
65 | case 26:
66 | return SE_SIM_ESSA_COMIDA_FOI_OFERECIDA;
67 | case 28:
68 | return OUTRO_LEITE_QUE_NAO_LEITE_DO_PEITO;
69 | case 29:
70 | return MINGAU_COM_LEITE;
71 | case 30:
72 | return IOGURTE;
73 | case 31:
74 | return LEGUMES;
75 | case 32:
76 | return VEGETAL_OU_FRUTAS_COR_ALARANJADA_OU_FOLHAS_ESCURAS;
77 | case 33:
78 | return VERDURA_DE_FOLHA;
79 | case 34:
80 | return CARNE;
81 | case 35:
82 | return FIGADO;
83 | case 36:
84 | return FEIJAO;
85 | case 37:
86 | return ARROZ_BATATA_INHAME_MANDIOCA_FARINHA_MACARRAO;
87 | case 38:
88 | return HAMBURGUER_E_OU_EMBUTIDOS;
89 | case 39:
90 | return BEBIDAS_ADOCADAS;
91 | case 40:
92 | return MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS;
93 | case 41:
94 | return BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS;
95 | default:
96 | return null;
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/thrift-exemplo/java/src/main/java/br/gov/saude/esus/ras/consumoalimentar/PerguntaCriancasDeSeisVinteTresMesesEnumThrift.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Autogenerated by Thrift Compiler (0.9.3)
3 | *
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 | * @generated
6 | */
7 | package br.gov.saude.esusab.ras.consumoalimentar;
8 |
9 |
10 | import java.util.Map;
11 | import java.util.HashMap;
12 | import org.apache.thrift.TEnum;
13 |
14 | public enum PerguntaCriancasDeSeisVinteTresMesesEnumThrift implements org.apache.thrift.TEnum {
15 | A_CRIANCA_ONTEM_TOMOU_LEITE_PEITO(21),
16 | ONTEM_A_CRIANCA_COMEU_FRUTA_INTEIRA_PEDACO_AMASSADO(22),
17 | SE_SIM_QUANTAS_VEZES(23),
18 | ONTEM_A_CRIANCA_COMEU_COMIDA_DE_SAL(24),
19 | SE_COMEU_COMIDA_DE_SAL_QUANTAS_VEZES(25),
20 | SE_SIM_ESSA_COMIDA_FOI_OFERECIDA(26),
21 | OUTRO_LEITE_QUE_NAO_LEITE_DO_PEITO(28),
22 | MINGAU_COM_LEITE(29),
23 | IOGURTE(30),
24 | LEGUMES(31),
25 | VEGETAL_OU_FRUTAS_COR_ALARANJADA_OU_FOLHAS_ESCURAS(32),
26 | VERDURA_DE_FOLHA(33),
27 | CARNE(34),
28 | FIGADO(35),
29 | FEIJAO(36),
30 | ARROZ_BATATA_INHAME_MANDIOCA_FARINHA_MACARRAO(37),
31 | HAMBURGUER_E_OU_EMBUTIDOS(38),
32 | BEBIDAS_ADOCADAS(39),
33 | MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS(40),
34 | BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS(41);
35 |
36 | private final int value;
37 |
38 | private PerguntaCriancasDeSeisVinteTresMesesEnumThrift(int value) {
39 | this.value = value;
40 | }
41 |
42 | /**
43 | * Get the integer value of this enum value, as defined in the Thrift IDL.
44 | */
45 | public int getValue() {
46 | return value;
47 | }
48 |
49 | /**
50 | * Find a the enum type by its integer value, as defined in the Thrift IDL.
51 | * @return null if the value is not found.
52 | */
53 | public static PerguntaCriancasDeSeisVinteTresMesesEnumThrift findByValue(int value) {
54 | switch (value) {
55 | case 21:
56 | return A_CRIANCA_ONTEM_TOMOU_LEITE_PEITO;
57 | case 22:
58 | return ONTEM_A_CRIANCA_COMEU_FRUTA_INTEIRA_PEDACO_AMASSADO;
59 | case 23:
60 | return SE_SIM_QUANTAS_VEZES;
61 | case 24:
62 | return ONTEM_A_CRIANCA_COMEU_COMIDA_DE_SAL;
63 | case 25:
64 | return SE_COMEU_COMIDA_DE_SAL_QUANTAS_VEZES;
65 | case 26:
66 | return SE_SIM_ESSA_COMIDA_FOI_OFERECIDA;
67 | case 28:
68 | return OUTRO_LEITE_QUE_NAO_LEITE_DO_PEITO;
69 | case 29:
70 | return MINGAU_COM_LEITE;
71 | case 30:
72 | return IOGURTE;
73 | case 31:
74 | return LEGUMES;
75 | case 32:
76 | return VEGETAL_OU_FRUTAS_COR_ALARANJADA_OU_FOLHAS_ESCURAS;
77 | case 33:
78 | return VERDURA_DE_FOLHA;
79 | case 34:
80 | return CARNE;
81 | case 35:
82 | return FIGADO;
83 | case 36:
84 | return FEIJAO;
85 | case 37:
86 | return ARROZ_BATATA_INHAME_MANDIOCA_FARINHA_MACARRAO;
87 | case 38:
88 | return HAMBURGUER_E_OU_EMBUTIDOS;
89 | case 39:
90 | return BEBIDAS_ADOCADAS;
91 | case 40:
92 | return MACARRAO_INSTANTANEO_SALGADINHOS_BISCOITOS;
93 | case 41:
94 | return BISCOITO_RECHEADO_DOCES_OU_GULOSEIMAS;
95 | default:
96 | return null;
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------