Create Physio
Create Physio
Request Body schema: application/json
| domicilio | string |
string | |
| name | string |
| nif | string |
| telefono | string |
| username | string |
Responses
Request samples
- Payload
Content type
application/json
{- "domicilio": "Madrid",
- "email": "physio_username@trak.es",
- "name": "Physio Name",
- "nif": "11111111A",
- "telefono": "666666666",
- "username": "physio_username"
}Response samples
- 201
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
- Payload
Content type
application/json
{- "active": false
}Response samples
- 200
Content type
application/json
{- "active": true,
- "domicilio": "Cordoba",
- "email": "lira+physio_new1@trak.es",
- "name": "Antonio",
- "nif": "459429492S",
- "telefono": "658309867",
- "username": "physio_create"
}Get Token
Allow you to get a temporal token for a physiotherapist or a patient in order to create frontend views
path Parameters
| user_id required | string |
Responses
Response samples
- 200
Content type
application/json
{- "data": {
- "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiABCDIjoxNzEyNTkxMjk4LCJpYXQiOjE3MTI1OTA5OTgsImp0aSI6IjcxYTExNzI2Njc4ODRhNmViYTk2MzE2YWZhYzg4NDM4IiwidXNlcl9pZCI6MjU2NTR9.w2imp79kt3P2_v41r9zFwQ90T_IvY0B6Va7hV5qumas"
}
}Retrieve
Retrieve
path Parameters
| protocol_id required | string |
query Parameters
| patient_id | string Patient identifier |
| date_start | string Filter to return which protocols are in session on that date. In case a protocol has already finished or is about to start it will not be returned. |
| active | string Either protocol is active or not |
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
- Payload
Content type
application/json
{- "birthDate": "2024-08-01",
- "careManager": [
- {
- "telecom": "fer"
}
], - "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": [
- {
- "family": "Lira",
- "given": "Antonio"
}
], - "phone": 666666666,
- "resourceType": "Patient",
- "telecom": "lira@trak.es"
}Edit Patient
Edit Patient
Request Body schema: application/json
| active | boolean |
| bday | string |
| commentary | string |
string | |
| email_subscription | boolean |
| gender | string |
| injury | string |
| mrn | number |
| name | string |
| phone | string |
| physio | number |
Responses
Request samples
- Payload
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
}