Listar respuestas de un formulario
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "resp_aaa111",
"formId": "form_abc123",
"patientId": "pat_xyz789",
"scheduleId": "sch_def456",
"responses": [
{ "fieldId": "pain_level", "value": 3 },
{ "fieldId": "pain_location", "value": "Espalda" },
{ "fieldId": "pain_duration", "value": "1-6 horas" },
{ "fieldId": "medication_taken", "value": true },
{ "fieldId": "notes", "value": "Mejorando respecto a ayer" }
],
"completedAt": "2026-05-14T09:15:00Z"
},
{
"id": "resp_bbb222",
"formId": "form_abc123",
"patientId": "pat_abc123",
"scheduleId": "sch_ghi789",
"responses": [
{ "fieldId": "pain_level", "value": 7 },
{ "fieldId": "pain_location", "value": "Abdomen" },
{ "fieldId": "pain_duration", "value": "Más de 24 horas" },
{ "fieldId": "medication_taken", "value": false },
{ "fieldId": "notes", "value": "" }
],
"completedAt": "2026-05-14T10:30:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InJlc3BfYmJiMjIyIn0=",
"hasMore": false,
"limit": 20
}
}
Formularios Clínicos
Listar respuestas
Obtiene las respuestas enviadas por pacientes para un formulario específico.
GET
/
clinical-forms
/
{id}
/
responses
Listar respuestas de un formulario
curl --request GET \
--url https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linahealthcareplatform.com/api/v1/clinical-forms/{id}/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "resp_aaa111",
"formId": "form_abc123",
"patientId": "pat_xyz789",
"scheduleId": "sch_def456",
"responses": [
{ "fieldId": "pain_level", "value": 3 },
{ "fieldId": "pain_location", "value": "Espalda" },
{ "fieldId": "pain_duration", "value": "1-6 horas" },
{ "fieldId": "medication_taken", "value": true },
{ "fieldId": "notes", "value": "Mejorando respecto a ayer" }
],
"completedAt": "2026-05-14T09:15:00Z"
},
{
"id": "resp_bbb222",
"formId": "form_abc123",
"patientId": "pat_abc123",
"scheduleId": "sch_ghi789",
"responses": [
{ "fieldId": "pain_level", "value": 7 },
{ "fieldId": "pain_location", "value": "Abdomen" },
{ "fieldId": "pain_duration", "value": "Más de 24 horas" },
{ "fieldId": "medication_taken", "value": false },
{ "fieldId": "notes", "value": "" }
],
"completedAt": "2026-05-14T10:30:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InJlc3BfYmJiMjIyIn0=",
"hasMore": false,
"limit": 20
}
}
Path Parameters
ID del formulario (ej.
form_abc123).Query Parameters
Filtra respuestas por paciente.
Fecha inicio en formato ISO 8601 (ej.
2026-05-01T00:00:00Z).Fecha fin en formato ISO 8601.
Número de resultados por página (máximo 100).
Cursor de paginación.
{
"data": [
{
"id": "resp_aaa111",
"formId": "form_abc123",
"patientId": "pat_xyz789",
"scheduleId": "sch_def456",
"responses": [
{ "fieldId": "pain_level", "value": 3 },
{ "fieldId": "pain_location", "value": "Espalda" },
{ "fieldId": "pain_duration", "value": "1-6 horas" },
{ "fieldId": "medication_taken", "value": true },
{ "fieldId": "notes", "value": "Mejorando respecto a ayer" }
],
"completedAt": "2026-05-14T09:15:00Z"
},
{
"id": "resp_bbb222",
"formId": "form_abc123",
"patientId": "pat_abc123",
"scheduleId": "sch_ghi789",
"responses": [
{ "fieldId": "pain_level", "value": 7 },
{ "fieldId": "pain_location", "value": "Abdomen" },
{ "fieldId": "pain_duration", "value": "Más de 24 horas" },
{ "fieldId": "medication_taken", "value": false },
{ "fieldId": "notes", "value": "" }
],
"completedAt": "2026-05-14T10:30:00Z"
}
],
"pagination": {
"cursor": "eyJpZCI6InJlc3BfYmJiMjIyIn0=",
"hasMore": false,
"limit": 20
}
}
Array con las respuestas del paciente, cada una con
fieldId y value.Fecha y hora en que el paciente completó el formulario.
ID de la programación que originó este envío, si aplica.
⌘I

