Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Voa Health

CI PyPI Python Licença MCP

Documentação · tiss

terminologia

Cliente Python e ferramentas MCP para consultar CID-10, CIAP-2, TUSS, SIGTAP, ANVISA, CBO, LOINC, UCUM e outros sistemas de terminologia em FHIR.

Início rápido

pip install terminologia

Crie uma chave de produto da organização em https://tiss-api.voa.health/org e configure:

export TERMINOLOGIA_KEY=sk_voa_...

Chaves sk_tiss_ existentes também podem ser usadas quando possuem o escopo terminology:read.

import terminologia

resultado = terminologia.cid10.buscar("dor torácica")
for conceito in resultado:
    print(conceito.coding())

consulta = terminologia.tuss.lookup("10101012")
if consulta:
    print(consulta.display)

CLI

Comando Uso
terminologia buscar <sistema> <texto> [-n N] Buscar conceitos
terminologia lookup <sistema> <código> Consultar um código
terminologia validar <sistema> <código> Validar um código
terminologia traduzir <sistema> <código> [--para SISTEMA] Traduzir um código
terminologia sistemas Listar os sistemas
terminologia mcp Iniciar o servidor MCP local

Use --json nos comandos, exceto mcp, para receber JSON. O código de saída é 0 para sucesso, 1 quando não há resultado ou o código é inválido e 2 para erros de uso, chave, acesso, cota, rede ou servidor.

Conectar agentes

Claude Code:

claude mcp add terminologia -e TERMINOLOGIA_KEY=sk_voa_... -- \
  uvx --from "terminologia[mcp]" terminologia mcp

Codex (~/.codex/config.toml):

[mcp_servers.terminologia]
command = "uvx"
args = ["--from", "terminologia[mcp]", "terminologia", "mcp"]

[mcp_servers.terminologia.env]
TERMINOLOGIA_KEY = "sk_voa_..."

Cursor (mcp.json):

{
  "mcpServers": {
    "terminologia": {
      "command": "uvx",
      "args": ["--from", "terminologia[mcp]", "terminologia", "mcp"],
      "env": {
        "TERMINOLOGIA_KEY": "sk_voa_..."
      }
    }
  }
}

Sistemas

Nome Canônico
cid10 http://hl7.org/fhir/sid/icd-10
ciap2 http://hl7.org/fhir/sid/icpc-2
tuss https://voa.health/fhir/CodeSystem/tuss
tuss-diarias https://voa.health/fhir/CodeSystem/tuss-diarias-taxas-gases-medicinais
tuss-materiais https://voa.health/fhir/CodeSystem/tuss-materiais-opme
tuss-medicamentos https://voa.health/fhir/CodeSystem/tuss-medicamentos
sigtap https://voa.health/fhir/CodeSystem/sigtap
anvisa urn:voa:anvisa:registro
cbo https://voa.health/fhir/CodeSystem/cbo
loinc http://loinc.org
ucum http://unitsofmeasure.org
tiss-50 https://voa.health/fhir/CodeSystem/tiss-tipo-atendimento
tiss-52 https://voa.health/fhir/CodeSystem/tiss-tipo-consulta
tiss-60 https://voa.health/fhir/CodeSystem/tiss-unidade-medida
tiss-76 https://voa.health/fhir/CodeSystem/tiss-regime-atendimento
voa-categoria https://voa.health/fhir/CodeSystem/voa-categoria-servico

A allowlist de licença é definida pelo servidor.

Atribuição

  • CIAP-2 (ICPC-2) © WONCA International Classification Committee. Cite a WONCA ao exibir códigos CIAP-2.
  • This material contains content from LOINC® (http://loinc.org). LOINC is copyright © Regenstrief Institute, Inc. and the LOINC Committee and is available at no cost under the license at http://loinc.org/license.

Erros

Exceção Significado
ChaveInvalidaError Chave ausente ou inválida
AcessoNegadoError A chave não tem acesso ao sistema
CotaExcedidaError Cota excedida; consulte retry_after
RedeError Falha de conexão
TempoEsgotadoError Tempo limite excedido
ServidorError Erro retornado pelo serviço

terminologia ou tiss.tuss?

tiss.tuss consulta a tabela TUSS offline embutida no pacote tiss. terminologia é o cliente online da terminologia servida pela Voa, cobre todos os sistemas e valida na versão publicada. Requer chave e está sujeito à cota da organização.

Licença

Apache-2.0. Consulte LICENSE.

Metadata

Release files for terminologia 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terminologia 0.1.0a1
File Size Uploaded Provenance
terminologia-0.1.0a1.tar.gz 17.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for terminologia 0.1.0a1
File Interpreter ABI Platform
terminologia-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / terminologia-0.1.0a1.tar.gz

Download URL terminologia-0.1.0a1.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f6d3ff6985f6eb6fdef25ee36da604126ff2b1a9727ee4b8e699fb81ca33e961
BLAKE2b-256 checksum
How to use checksums
7221a011186c8d1d0adcd0b830ed9cf575f2f99d729470d26cf7d5e4e015e71b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / terminologia-0.1.0a1-py3-none-any.whl

Download URL terminologia-0.1.0a1-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3293b52c9cc01de6bd15a8f65a88a257058b6abf871a727e8d923d0d904e2691
BLAKE2b-256 checksum
How to use checksums
1cd00358f3cfe70d879b5be8a539dd2832b2946fea6a47046666b30d5f519dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for terminologia 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for terminologia-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page