Skip to main content

SDK oficial para integração com a plataforma Sintezy

Project description

Sintezy SDK Python

SDK oficial para integração com a plataforma Sintezy.

Instalação

pip install sintezy

Uso Rápido

from sintezy import SintezySDK

# 1. Inicializar a SDK
sdk = SintezySDK(
    client_id='seu-client-id',
    client_secret='seu-client-secret'
)

# 2. Criar uma consulta (autenticação é automática)
appointment = sdk.create_appointment(
    user_email='medico@clinica.com',
    user_name='Dr. João Silva',
    layout={
        'fields': [
            {'name': 'Queixa Principal', 'content': 'inserir aqui a queixa principal', 'position': 0},
            {'name': 'História da Doença Atual', 'content': 'inserir aqui a história', 'position': 1},
            {'name': 'Exame Físico', 'content': 'inserir aqui os exames', 'position': 2},
            {'name': 'Diagnóstico', 'content': 'inserir aqui o diagnóstico', 'position': 3},
            {'name': 'Conduta', 'content': 'inserir aqui a conduta', 'position': 4},
        ]
    }
)

# 3. Abrir portal para gravação
print(f"Portal URL: {appointment.portal_url}")
# O médico grava a consulta no portal

# 4. Após finalizar, buscar o documento principal
documento = sdk.get_document(appointment.secure_id, 'document')

# 5. Gerar outros documentos
receita = sdk.generate_document(appointment.secure_id, 'prescription')
atestado = sdk.generate_document(appointment.secure_id, 'certificate')

Métodos Disponíveis

Autenticação

Método Descrição
authenticate() Autentica usando Client Credentials (OAuth 2.0). Chamado automaticamente.
is_authenticated() Verifica se há um token válido

Consultas (Appointments)

Método Descrição
create_appointment(...) Cria uma nova consulta e retorna a URL do portal
get_appointment(secure_id) Busca uma consulta pelo ID
delete_appointment(secure_id) Exclui uma consulta (soft delete)

Documentos

Método Descrição
generate_document(secure_id, type) Gera um documento a partir de uma consulta finalizada
get_document(secure_id, type) Busca um documento específico
list_documents(secure_id) Lista todos os documentos disponíveis

Tipos de Documento

Tipo Descrição
document Prontuário/Documento principal (gerado automaticamente ao finalizar)
anamnese_summary Resumo de anamnese
clinic_summary Resumo clínico
referral Encaminhamento
exames_call Solicitação de exames
prescription Receita médica
certificate Atestado médico
inss_report Laudo INSS

Licença

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sintezy-0.1.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sintezy-0.1.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file sintezy-0.1.3.tar.gz.

File metadata

  • Download URL: sintezy-0.1.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sintezy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fcb71c065d4f99090b24b0db3c5e58f23c97ce88920b9dfc343a081e49e50393
MD5 5c2965cb72b68afd0ec47d71ef434296
BLAKE2b-256 91c103691e0879d013289f8ce47d5ebe51bbf2c49edd77875966c6f55f867782

See more details on using hashes here.

File details

Details for the file sintezy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sintezy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sintezy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ec3bb848d42132b635d9032007a1fd68e8e910f1c30da81c6af350e8e94f105
MD5 60fc451dabea3054ef83dc68052ed634
BLAKE2b-256 e949273a08307b856cb32d2f950b691a0d3e7e4c3f10c2593c6ed3f3cc218a8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page