Saltar al contenido principal
POST
/
v1
/
medical-record-configurations
Create a Smart Template
curl --request POST \
  --url https://synapse.telepatia.ai/v1/medical-record-configurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "chiefComplaint": {
    "schema": {
      "instructions": "Patient's chief complaint.",
      "type": "string"
    }
  },
  "vitals": {
    "instructionSet": {
      "telepatiaPromptId": "VITAL_SIGNS"
    },
    "schema": {
      "instructions": "Vital signs.",
      "properties": {
        "heartRate": {
          "instructions": "Heart rate in bpm.",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}
EOF
{
  "created": true,
  "createdAt": "2026-04-20T14:30:00Z",
  "hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "id": "mrc_a1b2c3d4e5f6g7h8"
}

Autorizaciones

Authorization
string
header
requerido

Clave API enviada como token Bearer

Cuerpo

application/json

Cuerpo de solicitud para registrar una configuración de historia clínica — un mapa de clave de sección a definición de sección.

{key}
Section · object

A single section in the medical record configuration.

Pairs an output schema with optional generation instructions.

Respuesta

Respuesta exitosa

Cuerpo de respuesta al registrar una configuración de historia clínica.

id
string
requerido

Public ID of the medical record configuration.

Ejemplo:

"mrc_a1b2c3d4e5f6g7h8"

hash
string
requerido

SHA-256 hash of the canonical configuration JSON.

Ejemplo:

"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"

createdAt
string<date-time>
requerido
Ejemplo:

"2026-04-20T14:30:00Z"

created
boolean
requerido

True if a new configuration was created; False if a matching one already existed.

Ejemplo:

true