Prontuário Verde icon

Prontuário Verde

Integração com a API Prontuário Verde

Actions20

Overview

This node integrates with the Prontuário Verde API to manage patient data and related operations. Specifically, for the 'Paciente' resource and 'Atribuir Etiqueta' operation, it assigns tags (labels) to a patient by sending a POST request to the API with the patient ID and the tag(s) to be added. This is useful for categorizing or marking patients with specific labels for organizational or workflow purposes, such as marking patients with special conditions or statuses.

Use Case Examples

  1. Assign a tag 'Diabetic' to a patient with ID 123 to easily filter and identify diabetic patients in the system.
  2. Add multiple tags to a patient by providing a JSON array of tags, enabling complex categorization.

Properties

Name Meaning
ID Paciente The unique identifier of the patient to whom the tag will be assigned.
Etiqueta (Texto ou Array JSON) The tag or tags to assign to the patient. Can be a simple text string or a JSON array of tags.

Output

JSON

  • json - The JSON response from the Prontuário Verde API after assigning the tag(s) to the patient.

Dependencies

  • Requires an API key credential for Prontuário Verde API authentication.

Troubleshooting

  • Ensure the patient ID is provided and is greater than zero; otherwise, the node will throw an error indicating the patient ID is mandatory.
  • The 'Etiqueta' field must not be empty; if it is, the node will throw an error indicating the tag is required.
  • If the 'Etiqueta' input is not valid JSON when expected, the node will attempt to treat it as a plain string.
  • Check API authentication credentials if requests fail due to authorization errors.

Links

Discussion