tiss-ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +1 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +5 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +8 -0
  10. data/Gemfile.lock +111 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +43 -0
  13. data/Rakefile +8 -0
  14. data/bin/console +15 -0
  15. data/bin/setup +8 -0
  16. data/lib/tiss/constants.rb +73 -0
  17. data/lib/tiss/creator.rb +52 -0
  18. data/lib/tiss/generator/generator.rb +20 -0
  19. data/lib/tiss/generator/generators/base_generator.rb +54 -0
  20. data/lib/tiss/generator/generators/model_generator.rb +36 -0
  21. data/lib/tiss/generator/generators/templates/model_template.erb +22 -0
  22. data/lib/tiss/generator/generators/templates/validator_template.erb +60 -0
  23. data/lib/tiss/generator/generators/validator_generator.rb +44 -0
  24. data/lib/tiss/model.rb +66 -0
  25. data/lib/tiss/models/anexo_clinico.rb +18 -0
  26. data/lib/tiss/models/anexo_clinico_prorrogacao.rb +18 -0
  27. data/lib/tiss/models/anexos_clinicos.rb +22 -0
  28. data/lib/tiss/models/anexos_guias_tiss.rb +22 -0
  29. data/lib/tiss/models/beneficiario.rb +18 -0
  30. data/lib/tiss/models/cabecalho_demonstrativo_odonto.rb +26 -0
  31. data/lib/tiss/models/cabecalho_guia.rb +11 -0
  32. data/lib/tiss/models/cabecalho_transacao.rb +36 -0
  33. data/lib/tiss/models/cod_profissional.rb +14 -0
  34. data/lib/tiss/models/codigo_contratado.rb +14 -0
  35. data/lib/tiss/models/contratado_executante.rb +11 -0
  36. data/lib/tiss/models/cpf_cnpj_contratado.rb +14 -0
  37. data/lib/tiss/models/ct_anexo_cabecalho.rb +34 -0
  38. data/lib/tiss/models/ct_anexo_lote.rb +14 -0
  39. data/lib/tiss/models/ct_anexo_recebimento.rb +38 -0
  40. data/lib/tiss/models/ct_autorizacao_dados.rb +36 -0
  41. data/lib/tiss/models/ct_autorizacao_internacao.rb +32 -0
  42. data/lib/tiss/models/ct_autorizacao_sadt.rb +32 -0
  43. data/lib/tiss/models/ct_autorizacao_solicita_status.rb +18 -0
  44. data/lib/tiss/models/ct_beneficiario_dados.rb +36 -0
  45. data/lib/tiss/models/ct_conta_medica_resumo.rb +52 -0
  46. data/lib/tiss/models/ct_contratado_dados.rb +22 -0
  47. data/lib/tiss/models/ct_contratado_profissional_dados.rb +26 -0
  48. data/lib/tiss/models/ct_credito_odonto.rb +14 -0
  49. data/lib/tiss/models/ct_dados_complementares_beneficiario.rb +26 -0
  50. data/lib/tiss/models/ct_dados_complementares_beneficiario_radio.rb +14 -0
  51. data/lib/tiss/models/ct_dados_resumo_demonstrativo.rb +34 -0
  52. data/lib/tiss/models/ct_demonstrativo_cabecalho.rb +26 -0
  53. data/lib/tiss/models/ct_demonstrativo_retorno.rb +26 -0
  54. data/lib/tiss/models/ct_demonstrativo_solicitacao.rb +14 -0
  55. data/lib/tiss/models/ct_descontos.rb +22 -0
  56. data/lib/tiss/models/ct_diagnostico.rb +18 -0
  57. data/lib/tiss/models/ct_diagnostico_oncologico.rb +34 -0
  58. data/lib/tiss/models/ct_drogas_solicitadas.rb +31 -0
  59. data/lib/tiss/models/ct_elegibilidade_recibo.rb +58 -0
  60. data/lib/tiss/models/ct_elegibilidade_verifica.rb +50 -0
  61. data/lib/tiss/models/ct_fonte_pagadora.rb +14 -0
  62. data/lib/tiss/models/ct_glosa_recibo.rb +54 -0
  63. data/lib/tiss/models/ct_glosa_recibo_odonto.rb +54 -0
  64. data/lib/tiss/models/ct_guia_cabecalho.rb +14 -0
  65. data/lib/tiss/models/ct_guia_cancelamento.rb +22 -0
  66. data/lib/tiss/models/ct_guia_cancelamento_recibo.rb +18 -0
  67. data/lib/tiss/models/ct_guia_dados.rb +44 -0
  68. data/lib/tiss/models/ct_guia_dados_anexo.rb +34 -0
  69. data/lib/tiss/models/ct_guia_dados_odonto.rb +66 -0
  70. data/lib/tiss/models/ct_guia_recurso.rb +26 -0
  71. data/lib/tiss/models/ct_guia_recurso_lote.rb +14 -0
  72. data/lib/tiss/models/ct_guia_valor_total.rb +38 -0
  73. data/lib/tiss/models/ct_guia_valor_total_sadt.rb +34 -0
  74. data/lib/tiss/models/ct_hipotese_diagnostica.rb +14 -0
  75. data/lib/tiss/models/ct_ident_equipe.rb +34 -0
  76. data/lib/tiss/models/ct_ident_equipe_sadt.rb +34 -0
  77. data/lib/tiss/models/ct_intervalo_ciclos.rb +14 -0
  78. data/lib/tiss/models/ct_login_senha.rb +14 -0
  79. data/lib/tiss/models/ct_lote_anexo_status.rb +26 -0
  80. data/lib/tiss/models/ct_lote_status.rb +30 -0
  81. data/lib/tiss/models/ct_motivo_glosa.rb +14 -0
  82. data/lib/tiss/models/ct_opm_utilizada.rb +14 -0
  83. data/lib/tiss/models/ct_opme_dados.rb +14 -0
  84. data/lib/tiss/models/ct_outras_despesas.rb +10 -0
  85. data/lib/tiss/models/ct_pagamento_dados.rb +26 -0
  86. data/lib/tiss/models/ct_pagamento_resumo.rb +22 -0
  87. data/lib/tiss/models/ct_prestador_identificacao.rb +18 -0
  88. data/lib/tiss/models/ct_procedimento_autorizado.rb +51 -0
  89. data/lib/tiss/models/ct_procedimento_dados.rb +18 -0
  90. data/lib/tiss/models/ct_procedimento_executado.rb +59 -0
  91. data/lib/tiss/models/ct_procedimento_executado_honor_indiv.rb +55 -0
  92. data/lib/tiss/models/ct_procedimento_executado_int.rb +55 -0
  93. data/lib/tiss/models/ct_procedimento_executado_odonto.rb +47 -0
  94. data/lib/tiss/models/ct_procedimento_executado_outras.rb +62 -0
  95. data/lib/tiss/models/ct_procedimento_executado_sadt.rb +55 -0
  96. data/lib/tiss/models/ct_procedimento_solicitado.rb +18 -0
  97. data/lib/tiss/models/ct_procedimentos_complementares.rb +18 -0
  98. data/lib/tiss/models/ct_protocolo_anexo_status.rb +18 -0
  99. data/lib/tiss/models/ct_protocolo_detalhe.rb +22 -0
  100. data/lib/tiss/models/ct_protocolo_detalhe_anexo.rb +26 -0
  101. data/lib/tiss/models/ct_protocolo_recebimento.rb +26 -0
  102. data/lib/tiss/models/ct_protocolo_recebimento_anexo.rb +30 -0
  103. data/lib/tiss/models/ct_protocolo_recebimento_recurso.rb +30 -0
  104. data/lib/tiss/models/ct_protocolo_recurso.rb +18 -0
  105. data/lib/tiss/models/ct_protocolo_solicitacao_status.rb +14 -0
  106. data/lib/tiss/models/ct_protocolo_status.rb +18 -0
  107. data/lib/tiss/models/ct_recebimento_lote.rb +14 -0
  108. data/lib/tiss/models/ct_recebimento_recurso.rb +14 -0
  109. data/lib/tiss/models/ct_recibo_cancela_guia.rb +14 -0
  110. data/lib/tiss/models/ct_recibo_comunicacao.rb +14 -0
  111. data/lib/tiss/models/ct_recurso_glosa_recebimento.rb +54 -0
  112. data/lib/tiss/models/ct_resposta_elegibilidade.rb +14 -0
  113. data/lib/tiss/models/ct_resposta_glosa.rb +22 -0
  114. data/lib/tiss/models/ct_resposta_glosa_guia_medica.rb +35 -0
  115. data/lib/tiss/models/ct_resposta_glosa_item_medico.rb +55 -0
  116. data/lib/tiss/models/ct_resposta_recurso_guia_odonto.rb +34 -0
  117. data/lib/tiss/models/ct_resposta_recurso_item_odonto.rb +26 -0
  118. data/lib/tiss/models/ct_situacao_autorizacao.rb +26 -0
  119. data/lib/tiss/models/ct_situacao_clinica.rb +10 -0
  120. data/lib/tiss/models/ct_situacao_inicial.rb +22 -0
  121. data/lib/tiss/models/ct_situacao_protocolo.rb +18 -0
  122. data/lib/tiss/models/ct_valor_credito_desconto.rb +18 -0
  123. data/lib/tiss/models/ct_valor_total.rb +18 -0
  124. data/lib/tiss/models/ctm_anexo_solicitacao_opme.rb +34 -0
  125. data/lib/tiss/models/ctm_anexo_solicitacao_quimio.rb +55 -0
  126. data/lib/tiss/models/ctm_anexo_solicitacao_radio.rb +59 -0
  127. data/lib/tiss/models/ctm_anexo_solicitante.rb +18 -0
  128. data/lib/tiss/models/ctm_autorizacao_internacao.rb +22 -0
  129. data/lib/tiss/models/ctm_autorizacao_opme.rb +30 -0
  130. data/lib/tiss/models/ctm_autorizacao_prorrogacao.rb +22 -0
  131. data/lib/tiss/models/ctm_autorizacao_quimio.rb +67 -0
  132. data/lib/tiss/models/ctm_autorizacao_radio.rb +71 -0
  133. data/lib/tiss/models/ctm_autorizacao_servico.rb +47 -0
  134. data/lib/tiss/models/ctm_beneficiario_comunicacao.rb +22 -0
  135. data/lib/tiss/models/ctm_beneficiario_comunicacao_recibo.rb +18 -0
  136. data/lib/tiss/models/ctm_consulta_atendimento.rb +18 -0
  137. data/lib/tiss/models/ctm_consulta_guia.rb +52 -0
  138. data/lib/tiss/models/ctm_demonstrativo_analise_conta.rb +34 -0
  139. data/lib/tiss/models/ctm_demonstrativo_pagamento.rb +26 -0
  140. data/lib/tiss/models/ctm_guia_lote.rb +14 -0
  141. data/lib/tiss/models/ctm_honorario_individual_guia.rb +58 -0
  142. data/lib/tiss/models/ctm_internacao_dados.rb +42 -0
  143. data/lib/tiss/models/ctm_internacao_dados_saida.rb +18 -0
  144. data/lib/tiss/models/ctm_internacao_resumo_guia.rb +54 -0
  145. data/lib/tiss/models/ctm_internacao_solicitacao_guia.rb +65 -0
  146. data/lib/tiss/models/ctm_prorrogacao_solicitacao_guia.rb +50 -0
  147. data/lib/tiss/models/ctm_recurso_glosa.rb +50 -0
  148. data/lib/tiss/models/ctm_solicitacao_lote.rb +22 -0
  149. data/lib/tiss/models/ctm_sp_sadt_atendimento.rb +22 -0
  150. data/lib/tiss/models/ctm_sp_sadt_guia.rb +54 -0
  151. data/lib/tiss/models/ctm_sp_sadt_solicitacao_guia.rb +65 -0
  152. data/lib/tiss/models/cto_anexo_situacao_inicial.rb +34 -0
  153. data/lib/tiss/models/cto_anexo_situacao_inicialna_gto.rb +22 -0
  154. data/lib/tiss/models/cto_autorizacao_servico.rb +52 -0
  155. data/lib/tiss/models/cto_demonstrativo_odontologia.rb +42 -0
  156. data/lib/tiss/models/cto_guia_odontologia.rb +108 -0
  157. data/lib/tiss/models/cto_odonto_solicitacao_guia.rb +110 -0
  158. data/lib/tiss/models/cto_recurso_glosa_odonto.rb +50 -0
  159. data/lib/tiss/models/dados_beneficiario.rb +28 -0
  160. data/lib/tiss/models/dados_conta.rb +10 -0
  161. data/lib/tiss/models/dados_contratado.rb +22 -0
  162. data/lib/tiss/models/dados_contratado_executante.rb +18 -0
  163. data/lib/tiss/models/dados_executante.rb +22 -0
  164. data/lib/tiss/models/dados_guia.rb +18 -0
  165. data/lib/tiss/models/dados_guias_protocolo.rb +14 -0
  166. data/lib/tiss/models/dados_hospital_solicitado.rb +18 -0
  167. data/lib/tiss/models/dados_internacao.rb +54 -0
  168. data/lib/tiss/models/dados_pagamento.rb +71 -0
  169. data/lib/tiss/models/dados_pagamento_guia.rb +58 -0
  170. data/lib/tiss/models/dados_pagamento_por_data.rb +26 -0
  171. data/lib/tiss/models/dados_prestador.rb +26 -0
  172. data/lib/tiss/models/dados_profissionais_responsaveis.rb +58 -0
  173. data/lib/tiss/models/dados_resumo.rb +10 -0
  174. data/lib/tiss/models/dados_solicitacao.rb +18 -0
  175. data/lib/tiss/models/dados_solicitante.rb +14 -0
  176. data/lib/tiss/models/deb_cred_demonstrativo.rb +10 -0
  177. data/lib/tiss/models/deb_cred_por_data_pagamento.rb +10 -0
  178. data/lib/tiss/models/debitos_creditos_por_data.rb +10 -0
  179. data/lib/tiss/models/declaracoes.rb +22 -0
  180. data/lib/tiss/models/demonstrativo_analise.rb +18 -0
  181. data/lib/tiss/models/demonstrativo_pagamento.rb +22 -0
  182. data/lib/tiss/models/dente_regiao.rb +14 -0
  183. data/lib/tiss/models/dentes.rb +14 -0
  184. data/lib/tiss/models/despesa.rb +24 -0
  185. data/lib/tiss/models/destino.rb +14 -0
  186. data/lib/tiss/models/detalhes_guia.rb +43 -0
  187. data/lib/tiss/models/diagnostico_oncologico_quimioterapia.rb +33 -0
  188. data/lib/tiss/models/diagnostico_oncologico_radio.rb +14 -0
  189. data/lib/tiss/models/drogas_solicitadas.rb +10 -0
  190. data/lib/tiss/models/epilogo.rb +10 -0
  191. data/lib/tiss/models/glosa_anexo.rb +14 -0
  192. data/lib/tiss/models/glosa_guia.rb +10 -0
  193. data/lib/tiss/models/glosa_protocolo.rb +14 -0
  194. data/lib/tiss/models/glosas_procedimento.rb +14 -0
  195. data/lib/tiss/models/guias_canceladas.rb +10 -0
  196. data/lib/tiss/models/guias_cancelamento.rb +14 -0
  197. data/lib/tiss/models/guias_medicas.rb +10 -0
  198. data/lib/tiss/models/guias_odonto.rb +10 -0
  199. data/lib/tiss/models/guias_recurso.rb +22 -0
  200. data/lib/tiss/models/guias_tiss.rb +34 -0
  201. data/lib/tiss/models/hipoteses_diagnosticas.rb +14 -0
  202. data/lib/tiss/models/ident_equipe.rb +10 -0
  203. data/lib/tiss/models/identificacao_opm.rb +26 -0
  204. data/lib/tiss/models/identificacao_solicitante.rb +14 -0
  205. data/lib/tiss/models/identificacao_transacao.rb +22 -0
  206. data/lib/tiss/models/itens_guia.rb +47 -0
  207. data/lib/tiss/models/local_contratado.rb +18 -0
  208. data/lib/tiss/models/lote.rb +14 -0
  209. data/lib/tiss/models/lote_anexo.rb +14 -0
  210. data/lib/tiss/models/mensagem_tiss.rb +27 -0
  211. data/lib/tiss/models/motivos_glosa.rb +10 -0
  212. data/lib/tiss/models/motivos_negativa.rb +10 -0
  213. data/lib/tiss/models/opcao_recurso.rb +14 -0
  214. data/lib/tiss/models/opcao_recurso_guia.rb +18 -0
  215. data/lib/tiss/models/operadora_prestador.rb +50 -0
  216. data/lib/tiss/models/opm.rb +10 -0
  217. data/lib/tiss/models/opme_solicitada.rb +34 -0
  218. data/lib/tiss/models/opme_solicitadas.rb +10 -0
  219. data/lib/tiss/models/origem.rb +14 -0
  220. data/lib/tiss/models/pagamentos.rb +10 -0
  221. data/lib/tiss/models/pagamentos_por_data.rb +26 -0
  222. data/lib/tiss/models/periodo.rb +14 -0
  223. data/lib/tiss/models/periodo_proc.rb +14 -0
  224. data/lib/tiss/models/prestador_autorizado.rb +14 -0
  225. data/lib/tiss/models/prestador_operadora.rb +50 -0
  226. data/lib/tiss/models/procedimento.rb +18 -0
  227. data/lib/tiss/models/procedimento_realizado.rb +11 -0
  228. data/lib/tiss/models/procedimento_solicitado.rb +34 -0
  229. data/lib/tiss/models/procedimentos_adicionais.rb +14 -0
  230. data/lib/tiss/models/procedimentos_autorizados.rb +48 -0
  231. data/lib/tiss/models/procedimentos_complementares.rb +11 -0
  232. data/lib/tiss/models/procedimentos_executados.rb +51 -0
  233. data/lib/tiss/models/procedimentos_realizados.rb +10 -0
  234. data/lib/tiss/models/procedimentos_solicitados.rb +54 -0
  235. data/lib/tiss/models/profissionais.rb +34 -0
  236. data/lib/tiss/models/protocolos.rb +22 -0
  237. data/lib/tiss/models/recebimento_anexo.rb +14 -0
  238. data/lib/tiss/models/recibo_glosa_status.rb +42 -0
  239. data/lib/tiss/models/recurso_guia.rb +58 -0
  240. data/lib/tiss/models/recurso_guia_completa.rb +14 -0
  241. data/lib/tiss/models/recurso_procedimento.rb +55 -0
  242. data/lib/tiss/models/recurso_protocolo.rb +23 -0
  243. data/lib/tiss/models/relacao_glosa.rb +14 -0
  244. data/lib/tiss/models/relacao_guias.rb +70 -0
  245. data/lib/tiss/models/resposta_elegibilidade.rb +14 -0
  246. data/lib/tiss/models/servicos_autorizados.rb +10 -0
  247. data/lib/tiss/models/situacao_demonstrativo_retorno.rb +34 -0
  248. data/lib/tiss/models/totais_bruto_demonstrativo.rb +26 -0
  249. data/lib/tiss/models/totais_brutos_demonstrativo.rb +22 -0
  250. data/lib/tiss/models/totais_brutos_por_data.rb +22 -0
  251. data/lib/tiss/models/totais_demonstrativo.rb +18 -0
  252. data/lib/tiss/models/totais_liquidos_demonstrativo.rb +18 -0
  253. data/lib/tiss/models/totais_liquidos_por_data.rb +18 -0
  254. data/lib/tiss/models/totais_por_data.rb +26 -0
  255. data/lib/tiss/models/totais_por_protocolo.rb +26 -0
  256. data/lib/tiss/models/total_liquido_por_data.rb +18 -0
  257. data/lib/tiss/models/tratamentos_anteriores.rb +30 -0
  258. data/lib/tiss/tiss.rb +39 -0
  259. data/lib/tiss/version.rb +5 -0
  260. data/lib/tiss/xsd/class_maker.rb +242 -0
  261. data/lib/tiss/xsd/convert.rb +26 -0
  262. data/lib/tiss-ruby.rb +3 -0
  263. data/lib/xsd/class_maker.rb +219 -0
  264. data/lib/xsd/convert.rb +26 -0
  265. data/resources/TabelasDominio.doc +0 -0
  266. data/resources/tissAssinaturaDigital_v1.01.xsd +16 -0
  267. data/resources/tissComplexTypesV3_02_00.xsd +1370 -0
  268. data/resources/tissComplexTypesV3_02_01.xsd +1370 -0
  269. data/resources/tissComplexTypesV3_02_02.xsd +1370 -0
  270. data/resources/tissComplexTypesV3_03_01.xsd +1372 -0
  271. data/resources/tissComplexTypesV3_03_02.xsd +1372 -0
  272. data/resources/tissComplexTypesV3_03_03.xsd +1372 -0
  273. data/resources/tissComplexTypesV3_04_00.xsd +1406 -0
  274. data/resources/tissGuiasV3_02_00.xsd +1387 -0
  275. data/resources/tissGuiasV3_02_01.xsd +1388 -0
  276. data/resources/tissGuiasV3_02_02.xsd +1389 -0
  277. data/resources/tissGuiasV3_03_01.xsd +1402 -0
  278. data/resources/tissGuiasV3_03_02.xsd +1401 -0
  279. data/resources/tissGuiasV3_03_03.xsd +1401 -0
  280. data/resources/tissGuiasV3_04_00.xsd +1387 -0
  281. data/resources/tissSimpleTypesV3_02_00.xsd +3158 -0
  282. data/resources/tissSimpleTypesV3_02_01.xsd +3597 -0
  283. data/resources/tissSimpleTypesV3_02_02.xsd +3830 -0
  284. data/resources/tissSimpleTypesV3_03_01.xsd +4120 -0
  285. data/resources/tissSimpleTypesV3_03_02.xsd +4144 -0
  286. data/resources/tissSimpleTypesV3_03_03.xsd +4163 -0
  287. data/resources/tissSimpleTypesV3_04_00.xsd +4233 -0
  288. data/resources/tissV3_02_00.xsd +118 -0
  289. data/resources/tissV3_02_01.xsd +118 -0
  290. data/resources/tissV3_02_02.xsd +121 -0
  291. data/resources/tissV3_03_01.xsd +118 -0
  292. data/resources/tissV3_03_02.xsd +118 -0
  293. data/resources/tissV3_03_03.xsd +118 -0
  294. data/resources/tissV3_04_00.xsd +118 -0
  295. data/resources/xmldsig-core-schema.xsd +309 -0
  296. data/tiss-ruby.gemspec +55 -0
  297. metadata +569 -0
@@ -0,0 +1,58 @@
1
+
2
+ module Tiss::Model
3
+ class DadosProfissionaisResponsaveis < Base
4
+
5
+ # @type: StTexto70
6
+ attr_accessor :nomeProfSolic
7
+
8
+ # @type: StTexto15
9
+ attr_accessor :croSolic
10
+
11
+ # @type: DmUf
12
+ attr_accessor :ufSolic
13
+
14
+ # @type: DmCbos
15
+ attr_accessor :cbosSolic
16
+
17
+ # @type: StTexto14
18
+ attr_accessor :codigoProfExec
19
+
20
+ # @type: StTexto70
21
+ attr_accessor :nomeProfExec
22
+
23
+ # @type: StTexto15
24
+ attr_accessor :croExec
25
+
26
+ # @type: DmUf
27
+ attr_accessor :ufExec
28
+
29
+ # @type: StTexto7
30
+ attr_accessor :cnesExec
31
+
32
+ # @type: StTexto70
33
+ attr_accessor :nomeProfExec2
34
+
35
+ # @type: StTexto15
36
+ attr_accessor :croExec2
37
+
38
+ # @type: DmUf
39
+ attr_accessor :ufExec2
40
+
41
+ # @type: DmCbos
42
+ attr_accessor :cbosExec2
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ end
58
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class DadosResumo < Base
4
+
5
+ # @type: CtDadosResumoDemonstrativo
6
+ attr_accessor :relacaoProtocolos
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,18 @@
1
+
2
+ module Tiss::Model
3
+ class DadosSolicitacao < Base
4
+
5
+ # @type: StData
6
+ attr_accessor :dataSolicitacao
7
+
8
+ # @type: DmCaraterAtendimento
9
+ attr_accessor :caraterAtendimento
10
+
11
+ # @type: StTexto500
12
+ attr_accessor :indicacaoClinica
13
+
14
+
15
+
16
+
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class DadosSolicitante < Base
4
+
5
+ # @type: CtContratadoDados
6
+ attr_accessor :contratadoSolicitante
7
+
8
+ # @type: CtContratadoProfissionalDados
9
+ attr_accessor :profissionalSolicitante
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class DebCredDemonstrativo < Base
4
+
5
+ # @type: CtDescontos
6
+ attr_accessor :descontos
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class DebCredPorDataPagamento < Base
4
+
5
+ # @type: CtDescontos
6
+ attr_accessor :descontos
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class DebitosCreditosPorData < Base
4
+
5
+ # @type: CtDescontos
6
+ attr_accessor :debitosCreditos
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,22 @@
1
+
2
+ module Tiss::Model
3
+ class Declaracoes < Base
4
+
5
+ # @type: StTexto11
6
+ attr_accessor :declaracaoNascido
7
+
8
+ # @type: StTexto4
9
+ attr_accessor :diagnosticoObito
10
+
11
+ # @type: StTexto11
12
+ attr_accessor :declaracaoObito
13
+
14
+ # @type: DmSimNao
15
+ attr_accessor :indicadorDORN
16
+
17
+
18
+
19
+
20
+
21
+ end
22
+ end
@@ -0,0 +1,18 @@
1
+
2
+ module Tiss::Model
3
+ class DemonstrativoAnalise < Base
4
+
5
+ # @type: CtContratadoDados
6
+ attr_accessor :dadosPrestador
7
+
8
+ # @type: StData
9
+ attr_accessor :dataSolicitacao
10
+
11
+ # @type: Protocolos
12
+ attr_accessor :protocolos
13
+
14
+
15
+
16
+
17
+ end
18
+ end
@@ -0,0 +1,22 @@
1
+
2
+ module Tiss::Model
3
+ class DemonstrativoPagamento < Base
4
+
5
+ # @type: CtContratadoDados
6
+ attr_accessor :dadosPrestador
7
+
8
+ # @type: StData
9
+ attr_accessor :dataSolicitacao
10
+
11
+ # @type: DmTipoDemonstrativoPagamento
12
+ attr_accessor :tipoDemonstrativo
13
+
14
+ # @type: Periodo
15
+ attr_accessor :periodo
16
+
17
+
18
+
19
+
20
+
21
+ end
22
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class DenteRegiao < Base
4
+
5
+ # @type: DmDente
6
+ attr_accessor :codDente
7
+
8
+ # @type: DmRegiao
9
+ attr_accessor :codRegiao
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class Dentes < Base
4
+
5
+ # @type: DmDente
6
+ attr_accessor :elementoDentario
7
+
8
+ # @type: DmCondicaoClinica
9
+ attr_accessor :condicaoClinica
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,24 @@
1
+
2
+ module Tiss::Model
3
+ class Despesa < Base
4
+
5
+ # @type: DmOutrasDespesas
6
+ attr_accessor :codigoDespesa
7
+
8
+ # @type: CtProcedimentoExecutadoOutras
9
+ attr_accessor :servicosExecutados
10
+
11
+ # @type: StNumerico4
12
+ attr_accessor :sequencialItem
13
+
14
+ # @type: StNumerico4
15
+ attr_accessor :itemVinculado
16
+
17
+
18
+
19
+ attribute_config :sequencialItem, only: %w[3_04_00]
20
+
21
+ attribute_config :itemVinculado, only: %w[3_04_00]
22
+
23
+ end
24
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class Destino < Base
4
+
5
+ # @type: CtPrestadorIdentificacao
6
+ attr_accessor :identificacaoPrestador
7
+
8
+ # @type: StRegistroAns
9
+ attr_accessor :registroANS
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,43 @@
1
+
2
+ module Tiss::Model
3
+ class DetalhesGuia < Base
4
+
5
+ # @type: StData
6
+ attr_accessor :dataRealizacao
7
+
8
+ # @type: CtProcedimentoDados
9
+ attr_accessor :procedimento
10
+
11
+ # @type: DmGrauPart
12
+ attr_accessor :grauParticipacao
13
+
14
+ # @type: StDecimal82
15
+ attr_accessor :valorInformado
16
+
17
+ # @type: StDecimal84
18
+ attr_accessor :qtdExecutada
19
+
20
+ # @type: StDecimal82
21
+ attr_accessor :valorProcessado
22
+
23
+ # @type: StDecimal82
24
+ attr_accessor :valorLiberado
25
+
26
+ # @type: RelacaoGlosa
27
+ attr_accessor :relacaoGlosa
28
+
29
+ # @type: StNumerico4
30
+ attr_accessor :sequencialItem
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ attribute_config :sequencialItem, only: %w[3_04_00]
41
+
42
+ end
43
+ end
@@ -0,0 +1,33 @@
1
+
2
+ module Tiss::Model
3
+ class DiagnosticoOncologicoQuimioterapia < Base
4
+
5
+ # @type: CtDiagnosticoOncologico
6
+ attr_accessor :diagQuimio
7
+
8
+ # @type: DmTipoQuimioterapia
9
+ attr_accessor :tipoQuimioterapia
10
+
11
+ # @type: StTexto1000
12
+ attr_accessor :planoTerapeutico
13
+
14
+ # @type: DmTumor
15
+ attr_accessor :tumor
16
+
17
+ # @type: DmNodulo
18
+ attr_accessor :nodulo
19
+
20
+ # @type: DmMetastase
21
+ attr_accessor :metastase
22
+
23
+
24
+
25
+
26
+ attribute_config :tumor, unless: %w[3_02_00 3_02_01 3_02_02]
27
+
28
+ attribute_config :nodulo, unless: %w[3_02_00 3_02_01 3_02_02]
29
+
30
+ attribute_config :metastase, unless: %w[3_02_00 3_02_01 3_02_02]
31
+
32
+ end
33
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class DiagnosticoOncologicoRadio < Base
4
+
5
+ # @type: CtDiagnosticoOncologico
6
+ attr_accessor :diagRadio
7
+
8
+ # @type: DmDiagnosticoImagem
9
+ attr_accessor :diagnosticoImagem
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class DrogasSolicitadas < Base
4
+
5
+ # @type: CtDrogasSolicitadas
6
+ attr_accessor :drogaSolicitada
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class Epilogo < Base
4
+
5
+ # @type: String
6
+ attr_accessor :hash
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class GlosaAnexo < Base
4
+
5
+ # @type: CtMotivoGlosa
6
+ attr_accessor :motivoGlosa
7
+
8
+ # @type: StDecimal102
9
+ attr_accessor :vlGlosaAnexo
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class GlosaGuia < Base
4
+
5
+ # @type: CtMotivoGlosa
6
+ attr_accessor :motivoGlosa
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class GlosaProtocolo < Base
4
+
5
+ # @type: MotivosGlosa
6
+ attr_accessor :motivosGlosa
7
+
8
+ # @type: StDecimal102
9
+ attr_accessor :vlGlosaProtocolo
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class GlosasProcedimento < Base
4
+
5
+ # @type: CtMotivoGlosa
6
+ attr_accessor :motivoGlosa
7
+
8
+ # @type: StDecimal102
9
+ attr_accessor :valorGlosaProcedimento
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasCanceladas < Base
4
+
5
+ # @type: DadosGuia
6
+ attr_accessor :dadosGuia
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasCancelamento < Base
4
+
5
+ # @type: StTexto20
6
+ attr_accessor :numeroGuiaPrestador
7
+
8
+ # @type: StTexto20
9
+ attr_accessor :numeroGuiaOperadora
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasMedicas < Base
4
+
5
+ # @type: CtGuiaDados
6
+ attr_accessor :guias
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasOdonto < Base
4
+
5
+ # @type: CtGuiaDadosOdonto
6
+ attr_accessor :guias
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,22 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasRecurso < Base
4
+
5
+ # @type: StTexto20
6
+ attr_accessor :numeroGuiaOrigem
7
+
8
+ # @type: StTexto20
9
+ attr_accessor :numeroGuiaOperadora
10
+
11
+ # @type: StTexto20
12
+ attr_accessor :senha
13
+
14
+ # @type: OpcaoRecursoGuia
15
+ attr_accessor :opcaoRecursoGuia
16
+
17
+
18
+
19
+
20
+
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+
2
+ module Tiss::Model
3
+ class GuiasTiss < Base
4
+
5
+ # @type: GuiasMedicas
6
+ attr_accessor :guiasMedicas
7
+
8
+ # @type: GuiasOdonto
9
+ attr_accessor :guiasOdonto
10
+
11
+ # @type: CtmSpSadtGuia
12
+ attr_accessor :guiaSP_SADT
13
+
14
+ # @type: CtmInternacaoResumoGuia
15
+ attr_accessor :guiaResumoInternacao
16
+
17
+ # @type: CtmHonorarioIndividualGuia
18
+ attr_accessor :guiaHonorarios
19
+
20
+ # @type: CtmConsultaGuia
21
+ attr_accessor :guiaConsulta
22
+
23
+ # @type: CtoGuiaOdontologia
24
+ attr_accessor :guiaOdonto
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+ end
34
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class HipotesesDiagnosticas < Base
4
+
5
+ # @type: StTexto4
6
+ attr_accessor :diagnosticoCID
7
+
8
+ # @type: DmIndicadorAcidente
9
+ attr_accessor :indicadorAcidente
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+
2
+ module Tiss::Model
3
+ class IdentEquipe < Base
4
+
5
+ # @type: CtIdentEquipe
6
+ attr_accessor :identificacaoEquipe
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,26 @@
1
+
2
+ module Tiss::Model
3
+ class IdentificacaoOpm < Base
4
+
5
+ # @type: CtProcedimentoDados
6
+ attr_accessor :identificacaoOPME
7
+
8
+ # @type: StNumerico2
9
+ attr_accessor :quantidade
10
+
11
+ # @type: StTexto20
12
+ attr_accessor :codigoBarra
13
+
14
+ # @type: StDecimal82
15
+ attr_accessor :valorUnitario
16
+
17
+ # @type: StDecimal82
18
+ attr_accessor :valorTotal
19
+
20
+
21
+
22
+
23
+
24
+
25
+ end
26
+ end
@@ -0,0 +1,14 @@
1
+
2
+ module Tiss::Model
3
+ class IdentificacaoSolicitante < Base
4
+
5
+ # @type: CtContratadoDados
6
+ attr_accessor :dadosDoContratado
7
+
8
+ # @type: CtContratadoProfissionalDados
9
+ attr_accessor :dadosProfissionalContratado
10
+
11
+
12
+
13
+ end
14
+ end
@@ -0,0 +1,22 @@
1
+
2
+ module Tiss::Model
3
+ class IdentificacaoTransacao < Base
4
+
5
+ # @type: DmTipoTransacao
6
+ attr_accessor :tipoTransacao
7
+
8
+ # @type: StTexto12
9
+ attr_accessor :sequencialTransacao
10
+
11
+ # @type: StData
12
+ attr_accessor :dataRegistroTransacao
13
+
14
+ # @type: StHora
15
+ attr_accessor :horaRegistroTransacao
16
+
17
+
18
+
19
+
20
+
21
+ end
22
+ end