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,118 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ans="http://www.ans.gov.br/padroes/tiss/schemas" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.ans.gov.br/padroes/tiss/schemas" elementFormDefault="qualified">
3
+ <!--VERS�O TISS 3.03.03 - Mensagens do Padr�o TISS-->
4
+ <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
5
+ <include schemaLocation="tissSimpleTypesV3_03_03.xsd"/>
6
+ <include schemaLocation="tissComplexTypesV3_03_03.xsd"/>
7
+ <include schemaLocation="tissGuiasV3_03_03.xsd"/>
8
+ <!-- Estrutura da mensagem do TISS -->
9
+ <element name="mensagemTISS">
10
+ <complexType>
11
+ <sequence>
12
+ <element name="cabecalho" type="ans:cabecalhoTransacao"/>
13
+ <choice>
14
+ <element name="operadoraParaPrestador" type="ans:operadoraPrestador" minOccurs="0"/>
15
+ <element name="prestadorParaOperadora" type="ans:prestadorOperadora" minOccurs="0"/>
16
+ </choice>
17
+ <element name="epilogo" type="ans:epilogo"/>
18
+ <element ref="ds:Signature" minOccurs="0"/>
19
+ </sequence>
20
+ </complexType>
21
+ </element>
22
+ <!-- Definicao do cabecalho das mensagens -->
23
+ <complexType name="cabecalhoTransacao">
24
+ <sequence>
25
+ <element name="identificacaoTransacao">
26
+ <complexType>
27
+ <sequence>
28
+ <element name="tipoTransacao" type="ans:dm_tipoTransacao"/>
29
+ <element name="sequencialTransacao" type="ans:st_texto12"/>
30
+ <element name="dataRegistroTransacao" type="ans:st_data"/>
31
+ <element name="horaRegistroTransacao" type="ans:st_hora"/>
32
+ </sequence>
33
+ </complexType>
34
+ </element>
35
+ <element name="falhaNegocio" type="ans:dm_tipoGlosa" minOccurs="0"/>
36
+ <element name="origem">
37
+ <complexType>
38
+ <choice>
39
+ <!-- origem de mensagens de prestadores para as operadoras -->
40
+ <element name="identificacaoPrestador">
41
+ <complexType>
42
+ <complexContent>
43
+ <extension base="ans:ct_prestadorIdentificacao"/>
44
+ </complexContent>
45
+ </complexType>
46
+ </element>
47
+ <!-- origem de mensagens de operadoras para os prestadores -->
48
+ <element name="registroANS" type="ans:st_registroANS"/>
49
+ </choice>
50
+ </complexType>
51
+ </element>
52
+ <element name="destino">
53
+ <complexType>
54
+ <choice>
55
+ <!-- destino de mensagens de operadoras para prestadores: informar c�digo prestador na operadora -->
56
+ <element name="identificacaoPrestador" type="ans:ct_prestadorIdentificacao"/>
57
+ <!-- destino de mensagens de prestadores para as operadoras: informar registro ANS da operadora -->
58
+ <element name="registroANS" type="ans:st_registroANS"/>
59
+ </choice>
60
+ </complexType>
61
+ </element>
62
+ <element name="Padrao" type="ans:dm_versao"/>
63
+ <element name="loginSenhaPrestador" type="ans:ct_loginSenha" minOccurs="0"/>
64
+ </sequence>
65
+ </complexType>
66
+ <!-- ************************************************ Mensagens da OPERADORA para o PRESTADOR ************** -->
67
+ <complexType name="operadoraPrestador">
68
+ <choice>
69
+ <element name="recebimentoLote" type="ans:ct_recebimentoLote" minOccurs="0"/>
70
+ <element name="recebimentoAnexo" minOccurs="0">
71
+ <complexType>
72
+ <choice>
73
+ <element name="mensagemErro" type="ans:ct_motivoGlosa"/>
74
+ <element name="protocoloRecebimentoAnexo" type="ans:ct_anexoRecebimento"/>
75
+ </choice>
76
+ </complexType>
77
+ </element>
78
+ <element name="recebimentoRecursoGlosa" type="ans:ct_recebimentoRecurso" minOccurs="0"/>
79
+ <element name="demonstrativosRetorno" type="ans:ct_demonstrativoRetorno" minOccurs="0"/>
80
+ <element name="situacaoProtocolo" type="ans:ct_situacaoProtocolo" minOccurs="0"/>
81
+ <!-- Estrutura para responder a solicita��o de procedimento (ctm_solicitcaoLote) -->
82
+ <element name="autorizacaoServicos" type="ans:ct_situacaoAutorizacao" minOccurs="0"/>
83
+ <element name="situacaoAutorizacao" type="ans:ct_situacaoAutorizacao" minOccurs="0"/>
84
+ <element name="respostaElegibilidade" minOccurs="0">
85
+ <complexType>
86
+ <choice>
87
+ <element name="mensagemErro" type="ans:ct_motivoGlosa"/>
88
+ <element name="reciboElegibilidade" type="ans:ct_elegibilidadeRecibo"/>
89
+ </choice>
90
+ </complexType>
91
+ </element>
92
+ <element name="reciboCancelaGuia" type="ans:ct_reciboCancelaGuia" minOccurs="0"/>
93
+ <element name="reciboComunicacao" type="ans:ct_reciboComunicacao" minOccurs="0"/>
94
+ <element name="respostaRecursoGlosa" type="ans:ct_respostaGlosa" minOccurs="0"/>
95
+ </choice>
96
+ </complexType>
97
+ <!-- ************************************************ Mensagens da PRESTADOR para a OPERADORA ************** -->
98
+ <complexType name="prestadorOperadora">
99
+ <choice>
100
+ <element name="loteGuias" type="ans:ctm_guiaLote" minOccurs="0"/>
101
+ <element name="loteAnexos" type="ans:ct_anexoLote" minOccurs="0"/>
102
+ <element name="solicitacaoDemonstrativoRetorno" type="ans:ct_demonstrativoSolicitacao" minOccurs="0"/>
103
+ <element name="solicitacaoStatusProtocolo" type="ans:ct_protocoloSolicitacaoStatus" minOccurs="0"/>
104
+ <element name="solicitacaoProcedimento" type="ans:ct_solicitacaoProcedimento" minOccurs="0"/>
105
+ <element name="solicitaStatusAutorizacao" type="ans:ct_autorizacaoSolicitaStatus" minOccurs="0"/>
106
+ <element name="verificaElegibilidade" type="ans:ct_elegibilidadeVerifica" minOccurs="0"/>
107
+ <element name="cancelaGuia" type="ans:ct_guiaCancelamento" minOccurs="0"/>
108
+ <element name="comunicacaoInternacao" type="ans:ctm_beneficiarioComunicacao" minOccurs="0"/>
109
+ <element name="recursoGlosa" type="ans:ct_guiaRecursoLote" minOccurs="0"/>
110
+ <element name="solicitacaoStatusRecursoGlosa" type="ans:ct_protocoloSolicitacaoStatus" minOccurs="0"/>
111
+ </choice>
112
+ </complexType>
113
+ <complexType name="epilogo">
114
+ <sequence>
115
+ <element name="hash" type="string"/>
116
+ </sequence>
117
+ </complexType>
118
+ </schema>
@@ -0,0 +1,118 @@
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ans="http://www.ans.gov.br/padroes/tiss/schemas" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.ans.gov.br/padroes/tiss/schemas" elementFormDefault="qualified">
3
+ <!--VERS�O TISS 3.04.00 - Mensagens do Padr�o TISS-->
4
+ <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
5
+ <include schemaLocation="tissSimpleTypesV3_04_00.xsd"/>
6
+ <include schemaLocation="tissComplexTypesV3_04_00.xsd"/>
7
+ <include schemaLocation="tissGuiasV3_04_00.xsd"/>
8
+ <!-- Estrutura da mensagem do TISS -->
9
+ <element name="mensagemTISS">
10
+ <complexType>
11
+ <sequence>
12
+ <element name="cabecalho" type="ans:cabecalhoTransacao"/>
13
+ <choice>
14
+ <element name="operadoraParaPrestador" type="ans:operadoraPrestador" minOccurs="0"/>
15
+ <element name="prestadorParaOperadora" type="ans:prestadorOperadora" minOccurs="0"/>
16
+ </choice>
17
+ <element name="epilogo" type="ans:epilogo"/>
18
+ <element ref="ds:Signature" minOccurs="0"/>
19
+ </sequence>
20
+ </complexType>
21
+ </element>
22
+ <!-- Definicao do cabecalho das mensagens -->
23
+ <complexType name="cabecalhoTransacao">
24
+ <sequence>
25
+ <element name="identificacaoTransacao">
26
+ <complexType>
27
+ <sequence>
28
+ <element name="tipoTransacao" type="ans:dm_tipoTransacao"/>
29
+ <element name="sequencialTransacao" type="ans:st_texto12"/>
30
+ <element name="dataRegistroTransacao" type="ans:st_data"/>
31
+ <element name="horaRegistroTransacao" type="ans:st_hora"/>
32
+ </sequence>
33
+ </complexType>
34
+ </element>
35
+ <element name="falhaNegocio" type="ans:dm_tipoGlosa" minOccurs="0"/>
36
+ <element name="origem">
37
+ <complexType>
38
+ <choice>
39
+ <!-- origem de mensagens de prestadores para as operadoras -->
40
+ <element name="identificacaoPrestador">
41
+ <complexType>
42
+ <complexContent>
43
+ <extension base="ans:ct_prestadorIdentificacao"/>
44
+ </complexContent>
45
+ </complexType>
46
+ </element>
47
+ <!-- origem de mensagens de operadoras para os prestadores -->
48
+ <element name="registroANS" type="ans:st_registroANS"/>
49
+ </choice>
50
+ </complexType>
51
+ </element>
52
+ <element name="destino">
53
+ <complexType>
54
+ <choice>
55
+ <!-- destino de mensagens de operadoras para prestadores: informar c�digo prestador na operadora -->
56
+ <element name="identificacaoPrestador" type="ans:ct_prestadorIdentificacao"/>
57
+ <!-- destino de mensagens de prestadores para as operadoras: informar registro ANS da operadora -->
58
+ <element name="registroANS" type="ans:st_registroANS"/>
59
+ </choice>
60
+ </complexType>
61
+ </element>
62
+ <element name="Padrao" type="ans:dm_versao"/>
63
+ <element name="loginSenhaPrestador" type="ans:ct_loginSenha" minOccurs="0"/>
64
+ </sequence>
65
+ </complexType>
66
+ <!-- ************************************************ Mensagens da OPERADORA para o PRESTADOR ************** -->
67
+ <complexType name="operadoraPrestador">
68
+ <choice>
69
+ <element name="recebimentoLote" type="ans:ct_recebimentoLote" minOccurs="0"/>
70
+ <element name="recebimentoAnexo" minOccurs="0">
71
+ <complexType>
72
+ <choice>
73
+ <element name="mensagemErro" type="ans:ct_motivoGlosa"/>
74
+ <element name="protocoloRecebimentoAnexo" type="ans:ct_anexoRecebimento"/>
75
+ </choice>
76
+ </complexType>
77
+ </element>
78
+ <element name="recebimentoRecursoGlosa" type="ans:ct_recebimentoRecurso" minOccurs="0"/>
79
+ <element name="demonstrativosRetorno" type="ans:ct_demonstrativoRetorno" minOccurs="0"/>
80
+ <element name="situacaoProtocolo" type="ans:ct_situacaoProtocolo" minOccurs="0"/>
81
+ <!-- Estrutura para responder a solicita��o de procedimento (ctm_solicitcaoLote) -->
82
+ <element name="autorizacaoServicos" type="ans:ct_situacaoAutorizacao" minOccurs="0"/>
83
+ <element name="situacaoAutorizacao" type="ans:ct_situacaoAutorizacao" minOccurs="0"/>
84
+ <element name="respostaElegibilidade" minOccurs="0">
85
+ <complexType>
86
+ <choice>
87
+ <element name="mensagemErro" type="ans:ct_motivoGlosa"/>
88
+ <element name="reciboElegibilidade" type="ans:ct_elegibilidadeRecibo"/>
89
+ </choice>
90
+ </complexType>
91
+ </element>
92
+ <element name="reciboCancelaGuia" type="ans:ct_reciboCancelaGuia" minOccurs="0"/>
93
+ <element name="reciboComunicacao" type="ans:ct_reciboComunicacao" minOccurs="0"/>
94
+ <element name="respostaRecursoGlosa" type="ans:ct_respostaGlosa" minOccurs="0"/>
95
+ </choice>
96
+ </complexType>
97
+ <!-- ************************************************ Mensagens da PRESTADOR para a OPERADORA ************** -->
98
+ <complexType name="prestadorOperadora">
99
+ <choice>
100
+ <element name="loteGuias" type="ans:ctm_guiaLote" minOccurs="0"/>
101
+ <element name="loteAnexos" type="ans:ct_anexoLote" minOccurs="0"/>
102
+ <element name="solicitacaoDemonstrativoRetorno" type="ans:ct_demonstrativoSolicitacao" minOccurs="0"/>
103
+ <element name="solicitacaoStatusProtocolo" type="ans:ct_protocoloSolicitacaoStatus" minOccurs="0"/>
104
+ <element name="solicitacaoProcedimento" type="ans:ct_solicitacaoProcedimento" minOccurs="0"/>
105
+ <element name="solicitaStatusAutorizacao" type="ans:ct_autorizacaoSolicitaStatus" minOccurs="0"/>
106
+ <element name="verificaElegibilidade" type="ans:ct_elegibilidadeVerifica" minOccurs="0"/>
107
+ <element name="cancelaGuia" type="ans:ct_guiaCancelamento" minOccurs="0"/>
108
+ <element name="comunicacaoInternacao" type="ans:ctm_beneficiarioComunicacao" minOccurs="0"/>
109
+ <element name="recursoGlosa" type="ans:ct_guiaRecursoLote" minOccurs="0"/>
110
+ <element name="solicitacaoStatusRecursoGlosa" type="ans:ct_protocoloSolicitacaoStatus" minOccurs="0"/>
111
+ </choice>
112
+ </complexType>
113
+ <complexType name="epilogo">
114
+ <sequence>
115
+ <element name="hash" type="string"/>
116
+ </sequence>
117
+ </complexType>
118
+ </schema>
@@ -0,0 +1,309 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" [
3
+ <!ATTLIST schema
4
+ xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
5
+ <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
6
+ <!ENTITY % p ''>
7
+ <!ENTITY % s ''>
8
+ ]>
9
+
10
+ <!-- Schema for XML Signatures
11
+ http://www.w3.org/2000/09/xmldsig#
12
+ $Revision: 1.1 $ on $Date: 2002/02/08 20:32:26 $ by $Author: reagle $
13
+
14
+ Copyright 2001 The Internet Society and W3C (Massachusetts Institute
15
+ of Technology, Institut National de Recherche en Informatique et en
16
+ Automatique, Keio University). All Rights Reserved.
17
+ http://www.w3.org/Consortium/Legal/
18
+
19
+ This document is governed by the W3C Software License [1] as described
20
+ in the FAQ [2].
21
+
22
+ [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
23
+ [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
24
+ -->
25
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.w3.org/2000/09/xmldsig#" version="0.1" elementFormDefault="qualified">
26
+
27
+ <!-- Basic Types Defined for Signatures -->
28
+
29
+ <simpleType name="CryptoBinary">
30
+ <restriction base="base64Binary">
31
+ </restriction>
32
+ </simpleType>
33
+
34
+ <!-- Start Signature -->
35
+
36
+ <element name="Signature" type="ds:SignatureType"/>
37
+ <complexType name="SignatureType">
38
+ <sequence>
39
+ <element ref="ds:SignedInfo"/>
40
+ <element ref="ds:SignatureValue"/>
41
+ <element ref="ds:KeyInfo" minOccurs="0"/>
42
+ <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
43
+ </sequence>
44
+ <attribute name="Id" type="ID" use="optional"/>
45
+ </complexType>
46
+
47
+ <element name="SignatureValue" type="ds:SignatureValueType"/>
48
+ <complexType name="SignatureValueType">
49
+ <simpleContent>
50
+ <extension base="base64Binary">
51
+ <attribute name="Id" type="ID" use="optional"/>
52
+ </extension>
53
+ </simpleContent>
54
+ </complexType>
55
+
56
+ <!-- Start SignedInfo -->
57
+
58
+ <element name="SignedInfo" type="ds:SignedInfoType"/>
59
+ <complexType name="SignedInfoType">
60
+ <sequence>
61
+ <element ref="ds:CanonicalizationMethod"/>
62
+ <element ref="ds:SignatureMethod"/>
63
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
64
+ </sequence>
65
+ <attribute name="Id" type="ID" use="optional"/>
66
+ </complexType>
67
+
68
+ <element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/>
69
+ <complexType name="CanonicalizationMethodType" mixed="true">
70
+ <sequence>
71
+ <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
72
+ <!-- (0,unbounded) elements from (1,1) namespace -->
73
+ </sequence>
74
+ <attribute name="Algorithm" type="anyURI" use="required"/>
75
+ </complexType>
76
+
77
+ <element name="SignatureMethod" type="ds:SignatureMethodType"/>
78
+ <complexType name="SignatureMethodType" mixed="true">
79
+ <sequence>
80
+ <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
81
+ <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
82
+ <!-- (0,unbounded) elements from (1,1) external namespace -->
83
+ </sequence>
84
+ <attribute name="Algorithm" type="anyURI" use="required"/>
85
+ </complexType>
86
+
87
+ <!-- Start Reference -->
88
+
89
+ <element name="Reference" type="ds:ReferenceType"/>
90
+ <complexType name="ReferenceType">
91
+ <sequence>
92
+ <element ref="ds:Transforms" minOccurs="0"/>
93
+ <element ref="ds:DigestMethod"/>
94
+ <element ref="ds:DigestValue"/>
95
+ </sequence>
96
+ <attribute name="Id" type="ID" use="optional"/>
97
+ <attribute name="URI" type="anyURI" use="optional"/>
98
+ <attribute name="Type" type="anyURI" use="optional"/>
99
+ </complexType>
100
+
101
+ <element name="Transforms" type="ds:TransformsType"/>
102
+ <complexType name="TransformsType">
103
+ <sequence>
104
+ <element ref="ds:Transform" maxOccurs="unbounded"/>
105
+ </sequence>
106
+ </complexType>
107
+
108
+ <element name="Transform" type="ds:TransformType"/>
109
+ <complexType name="TransformType" mixed="true">
110
+ <choice minOccurs="0" maxOccurs="unbounded">
111
+ <any namespace="##other" processContents="lax"/>
112
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
113
+ <element name="XPath" type="string"/>
114
+ </choice>
115
+ <attribute name="Algorithm" type="anyURI" use="required"/>
116
+ </complexType>
117
+
118
+ <!-- End Reference -->
119
+
120
+ <element name="DigestMethod" type="ds:DigestMethodType"/>
121
+ <complexType name="DigestMethodType" mixed="true">
122
+ <sequence>
123
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
124
+ </sequence>
125
+ <attribute name="Algorithm" type="anyURI" use="required"/>
126
+ </complexType>
127
+
128
+ <element name="DigestValue" type="ds:DigestValueType"/>
129
+ <simpleType name="DigestValueType">
130
+ <restriction base="base64Binary"/>
131
+ </simpleType>
132
+
133
+ <!-- End SignedInfo -->
134
+
135
+ <!-- Start KeyInfo -->
136
+
137
+ <element name="KeyInfo" type="ds:KeyInfoType"/>
138
+ <complexType name="KeyInfoType" mixed="true">
139
+ <choice maxOccurs="unbounded">
140
+ <element ref="ds:KeyName"/>
141
+ <element ref="ds:KeyValue"/>
142
+ <element ref="ds:RetrievalMethod"/>
143
+ <element ref="ds:X509Data"/>
144
+ <element ref="ds:PGPData"/>
145
+ <element ref="ds:SPKIData"/>
146
+ <element ref="ds:MgmtData"/>
147
+ <any processContents="lax" namespace="##other"/>
148
+ <!-- (1,1) elements from (0,unbounded) namespaces -->
149
+ </choice>
150
+ <attribute name="Id" type="ID" use="optional"/>
151
+ </complexType>
152
+
153
+ <element name="KeyName" type="string"/>
154
+ <element name="MgmtData" type="string"/>
155
+
156
+ <element name="KeyValue" type="ds:KeyValueType"/>
157
+ <complexType name="KeyValueType" mixed="true">
158
+ <choice>
159
+ <element ref="ds:DSAKeyValue"/>
160
+ <element ref="ds:RSAKeyValue"/>
161
+ <any namespace="##other" processContents="lax"/>
162
+ </choice>
163
+ </complexType>
164
+
165
+ <element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
166
+ <complexType name="RetrievalMethodType">
167
+ <sequence>
168
+ <element ref="ds:Transforms" minOccurs="0"/>
169
+ </sequence>
170
+ <attribute name="URI" type="anyURI"/>
171
+ <attribute name="Type" type="anyURI" use="optional"/>
172
+ </complexType>
173
+
174
+ <!-- Start X509Data -->
175
+
176
+ <element name="X509Data" type="ds:X509DataType"/>
177
+ <complexType name="X509DataType">
178
+ <sequence maxOccurs="unbounded">
179
+ <choice>
180
+ <element name="X509IssuerSerial" type="ds:X509IssuerSerialType"/>
181
+ <element name="X509SKI" type="base64Binary"/>
182
+ <element name="X509SubjectName" type="string"/>
183
+ <element name="X509Certificate" type="base64Binary"/>
184
+ <element name="X509CRL" type="base64Binary"/>
185
+ <any namespace="##other" processContents="lax"/>
186
+ </choice>
187
+ </sequence>
188
+ </complexType>
189
+
190
+ <complexType name="X509IssuerSerialType">
191
+ <sequence>
192
+ <element name="X509IssuerName" type="string"/>
193
+ <element name="X509SerialNumber" type="integer"/>
194
+ </sequence>
195
+ </complexType>
196
+
197
+ <!-- End X509Data -->
198
+
199
+ <!-- Begin PGPData -->
200
+
201
+ <element name="PGPData" type="ds:PGPDataType"/>
202
+ <complexType name="PGPDataType">
203
+ <choice>
204
+ <sequence>
205
+ <element name="PGPKeyID" type="base64Binary"/>
206
+ <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
207
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
208
+ </sequence>
209
+ <sequence>
210
+ <element name="PGPKeyPacket" type="base64Binary"/>
211
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
212
+ </sequence>
213
+ </choice>
214
+ </complexType>
215
+
216
+ <!-- End PGPData -->
217
+
218
+ <!-- Begin SPKIData -->
219
+
220
+ <element name="SPKIData" type="ds:SPKIDataType"/>
221
+ <complexType name="SPKIDataType">
222
+ <sequence maxOccurs="unbounded">
223
+ <element name="SPKISexp" type="base64Binary"/>
224
+ <any namespace="##other" processContents="lax" minOccurs="0"/>
225
+ </sequence>
226
+ </complexType>
227
+
228
+ <!-- End SPKIData -->
229
+
230
+ <!-- End KeyInfo -->
231
+
232
+ <!-- Start Object (Manifest, SignatureProperty) -->
233
+
234
+ <element name="Object" type="ds:ObjectType"/>
235
+ <complexType name="ObjectType" mixed="true">
236
+ <sequence minOccurs="0" maxOccurs="unbounded">
237
+ <any namespace="##any" processContents="lax"/>
238
+ </sequence>
239
+ <attribute name="Id" type="ID" use="optional"/>
240
+ <attribute name="MimeType" type="string" use="optional"/> <!-- add a grep facet -->
241
+ <attribute name="Encoding" type="anyURI" use="optional"/>
242
+ </complexType>
243
+
244
+ <element name="Manifest" type="ds:ManifestType"/>
245
+ <complexType name="ManifestType">
246
+ <sequence>
247
+ <element ref="ds:Reference" maxOccurs="unbounded"/>
248
+ </sequence>
249
+ <attribute name="Id" type="ID" use="optional"/>
250
+ </complexType>
251
+
252
+ <element name="SignatureProperties" type="ds:SignaturePropertiesType"/>
253
+ <complexType name="SignaturePropertiesType">
254
+ <sequence>
255
+ <element ref="ds:SignatureProperty" maxOccurs="unbounded"/>
256
+ </sequence>
257
+ <attribute name="Id" type="ID" use="optional"/>
258
+ </complexType>
259
+
260
+ <element name="SignatureProperty" type="ds:SignaturePropertyType"/>
261
+ <complexType name="SignaturePropertyType" mixed="true">
262
+ <choice maxOccurs="unbounded">
263
+ <any namespace="##other" processContents="lax"/>
264
+ <!-- (1,1) elements from (1,unbounded) namespaces -->
265
+ </choice>
266
+ <attribute name="Target" type="anyURI" use="required"/>
267
+ <attribute name="Id" type="ID" use="optional"/>
268
+ </complexType>
269
+
270
+ <!-- End Object (Manifest, SignatureProperty) -->
271
+
272
+ <!-- Start Algorithm Parameters -->
273
+
274
+ <simpleType name="HMACOutputLengthType">
275
+ <restriction base="integer"/>
276
+ </simpleType>
277
+
278
+ <!-- Start KeyValue Element-types -->
279
+
280
+ <element name="DSAKeyValue" type="ds:DSAKeyValueType"/>
281
+ <complexType name="DSAKeyValueType">
282
+ <sequence>
283
+ <sequence minOccurs="0">
284
+ <element name="P" type="ds:CryptoBinary"/>
285
+ <element name="Q" type="ds:CryptoBinary"/>
286
+ </sequence>
287
+ <element name="G" type="ds:CryptoBinary" minOccurs="0"/>
288
+ <element name="Y" type="ds:CryptoBinary"/>
289
+ <element name="J" type="ds:CryptoBinary" minOccurs="0"/>
290
+ <sequence minOccurs="0">
291
+ <element name="Seed" type="ds:CryptoBinary"/>
292
+ <element name="PgenCounter" type="ds:CryptoBinary"/>
293
+ </sequence>
294
+ </sequence>
295
+ </complexType>
296
+
297
+ <element name="RSAKeyValue" type="ds:RSAKeyValueType"/>
298
+ <complexType name="RSAKeyValueType">
299
+ <sequence>
300
+ <element name="Modulus" type="ds:CryptoBinary"/>
301
+ <element name="Exponent" type="ds:CryptoBinary"/>
302
+ </sequence>
303
+ </complexType>
304
+
305
+ <!-- End KeyValue Element-types -->
306
+
307
+ <!-- End Signature -->
308
+
309
+ </schema>
data/tiss-ruby.gemspec ADDED
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'tiss/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'tiss-ruby'
9
+ spec.version = Tiss::VERSION
10
+ spec.authors = ['Marcos Junior']
11
+ spec.email = ['marcos.junior@rhsoftware.com.br']
12
+
13
+ spec.summary = 'Cria o XML do TISS'
14
+ spec.description = 'Esta gem é responsável por facilitar a criação do XML do TISS'
15
+ spec.homepage = 'https://github.com/marcosgugs/tiss-ruby'
16
+ spec.license = 'MIT'
17
+
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ # if spec.respond_to?(:metadata)
21
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
22
+ # else
23
+ # raise 'RubyGems 2.0 or newer is required to protect against ' \
24
+ # 'public gem pushes.'
25
+ # end
26
+
27
+ # Specify which files should be added to the gem when it is released.
28
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
31
+ end
32
+ spec.bindir = 'exe'
33
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ['lib']
35
+
36
+ spec.add_development_dependency 'bundler', '~> 1.16'
37
+ spec.add_development_dependency 'pry'
38
+ spec.add_development_dependency 'pry-coolline'
39
+ spec.add_development_dependency 'pry-nav'
40
+ spec.add_development_dependency 'pry-rescue'
41
+ spec.add_development_dependency 'pry-stack_explorer'
42
+ spec.add_development_dependency 'rake', '~> 10.0'
43
+ spec.add_development_dependency 'rb-readline'
44
+ spec.add_development_dependency 'rspec', '~> 3.0'
45
+ spec.add_development_dependency 'rubocop', '~> 0.79.0'
46
+ spec.add_development_dependency 'rubocop-rspec'
47
+ spec.add_development_dependency 'awesome_print', '~> 1.6', '~> 1.6.1'
48
+
49
+ spec.add_dependency 'activemodel'
50
+ spec.add_dependency 'activesupport'
51
+ spec.add_dependency 'dry-configurable'
52
+ spec.add_dependency 'nokogiri'
53
+
54
+
55
+ end