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.0.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sintezy-0.1.0.tar.gz.
File metadata
- Download URL: sintezy-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5f3b716d7ff4941a55d2c1bea1475803b29e6a40c3f5159c148c3ae0fd273b
|
|
| MD5 |
2f18194b8cc3223bddd43dcb9e7212c1
|
|
| BLAKE2b-256 |
77d6402c9b40b3e897606e80e55c9ec342f485e9506013242c685e9e61f7a406
|
File details
Details for the file sintezy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sintezy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ec21ace23b792ce05abe2b82a831ff78524bfb78b2d15e22e3284d5b5f929b
|
|
| MD5 |
e67a21697c0be85f71cb908ded723052
|
|
| BLAKE2b-256 |
48d0490ca1d71eae079dd0976ba07f97949956dab93f762cb42a6ce266b366f8
|