Saltar al contenido principal

TRAK-API-DOCS (1.0.0)

Download OpenAPI specification:Download

Physios

Create Physio

Create Physio

Request Body schema: application/json
domicilio
string
email
string
name
string
nif
string
telefono
string
username
string

Responses

Request samples

Content type
application/json
{
  • "domicilio": "Madrid",
  • "email": "physio_username@trak.es",
  • "name": "Physio Name",
  • "nif": "11111111A",
  • "telefono": "666666666",
  • "username": "physio_username"
}

Response samples

Content type
application/json
{
  • "domicilio": "Madrid",
  • "email": "physio_sanitas@sanitas.es",
  • "name": "Physio Name",
  • "nif": "11111111A",
  • "telefono": "666666666",
  • "username": "physio_sanitas_cra"
}

Deactivate/Activate Physio

Deactivate/Activate Physio

path Parameters
physio-id
required
string
Request Body schema: application/json
active
boolean

Responses

Request samples

Content type
application/json
{
  • "active": false
}

Response samples

Content type
application/json
{
  • "active": true,
  • "domicilio": "Cordoba",
  • "email": "lira+physio_new1@trak.es",
  • "name": "Antonio",
  • "nif": "459429492S",
  • "telefono": "658309867",
  • "username": "physio_create"
}

Authentication

Get Token

Allow you to get a temporal token for a physiotherapist or a patient in order to create frontend views

path Parameters
patient_id
required
string

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

Protocols

Retrieve

Retrieve

query Parameters
patient_id
string

Patient identifier

date_start
string

Date

active
string

Either is active or not

Responses

Create with protocol-id

Create with protocol-id

Request Body schema: application/json
days
Array of strings
protocol_id
number

Responses

Request samples

Content type
application/json
{
  • "days": [
    ],
  • "protocol_id": 45705
}

Patients

List Patients

List Patients

Responses

Create Patient

Create Patient

Request Body schema: application/json
birthDate
string
Array of objects
commentary
string
gender
string
identifier
string
injury
string
mrn
number
Array of objects
phone
number
resourceType
string
telecom
string

Responses

Request samples

Content type
application/json
{
  • "birthDate": "2024-08-01",
  • "careManager": [
    ],
  • "commentary": "el paciente sufrio una rotura jugando al baloncesto, necesitara al menos 3 semanas de rehabilitacion",
  • "gender": "male",
  • "identifier": "lira@trak.es",
  • "injury": "Tendiditis",
  • "mrn": 893629,
  • "name": [
    ],
  • "phone": 666666666,
  • "resourceType": "Patient",
  • "telecom": "lira@trak.es"
}

Edit Patient

Edit Patient

Request Body schema: application/json
active
boolean
bday
string
commentary
string
email
string
email_subscription
boolean
gender
string
injury
string
mrn
number
name
string
phone
string
physio
number

Responses

Request samples

Content type
application/json
{
  • "active": true,
  • "bday": "2024-08-01",
  • "commentary": "el paciente sufrio una rotura jugando al baloncesto, necesitara al menos 3 semanas de rehabilitacion",
  • "email": "lira@trak.com",
  • "email_subscription": true,
  • "gender": "male",
  • "injury": "Tendiditis",
  • "mrn": 893629,
  • "name": "Antonio",
  • "phone": "66666666",
  • "physio": 10
}

Delete Patient

Delete Patient

path Parameters
user_patient_id
required
string

Responses

Retrieve patients

Retrieve patients

path Parameters
user_patient_id
required
string

Responses