Actions20
Overview
The node "Consultorio Live" integrates with the Consultorio Live API, which is designed for managing clinics and medical offices. Specifically, the "Paciente" (Patient) resource with the "Atualizar" (Update) operation allows users to update existing patient records in the system. This is useful in scenarios where patient information such as contact details, address, or personal data needs to be corrected or kept up-to-date.
Practical examples include:
- Updating a patient's email or phone number after they provide new contact information.
- Correcting or adding missing address details.
- Modifying birth date or document identifiers if errors were made during initial entry.
Properties
| Name | Meaning |
|---|---|
| ID Do Paciente | The unique identifier of the patient whose record will be updated. |
| Dados Do Paciente | A collection of patient data fields that can be updated: |
| - Nome | Full name of the patient (required). |
| Patient's email address (required). | |
| - Data De Nascimento | Patient's birth date. |
| - Documento | Patient's document number (CPF or RG). |
| - Telefone | Patient's phone number. |
| - Endereço | Nested address details including: |
| CEP | Postal code. |
| Cidade | City name. |
| Estado | State abbreviation. |
| Número | Residence number. |
| Rua | Street name. |
Output
The node outputs JSON data representing the response from the Consultorio Live API after attempting to update the patient record. This typically includes the updated patient information or confirmation of the update operation. There is no indication that binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating with the Consultorio Live API.
- The base URL for the API is configured via credentials.
- The node sends requests with
AcceptandContent-Typeheaders set toapplication/json.
Troubleshooting
- Missing Required Fields: If required fields like "ID Do Paciente", "Nome", or "Email" are not provided, the API may reject the request. Ensure these fields are filled.
- Invalid Patient ID: Providing an incorrect or non-existent patient ID will likely result in an error indicating the patient was not found.
- API Authentication Errors: If the API key credential is invalid or missing, authentication errors will occur.
- Data Format Issues: Incorrectly formatted dates or malformed JSON in nested address fields could cause validation errors.
- To resolve errors, verify all required inputs, ensure correct formatting, and confirm valid API credentials.
Links and References
- Consultorio Live API Documentation (example link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes