Skip to main content

Patient

Patient API

GET /patients/search

Returns patient information if there is a match to the specified criteria

Query Parameters

  • gender: Gender of the patient (Male, Female, Other).
  • birth_date: Patient's date of birth in the format YYYY/MM/DD.
  • identifier_type: Type of patient identification (DNI, Passport, Other).
Example of search by gender and identification number
 GET /patients/search?gender=Male&identifier_type=DNI&identifier=31465466

Response:

Code 200
 {
"patients": [
{
"id": "f6262835-fbd8-423a-8746-46069edbaf18",
"name": "Jose",
"last_name": "Perez",
"gender": "Male",
"birth_date": "1985/11/30",
"identifier_type": "DNI",
"identifier": 31465466,
"medical_record_id": "2201125-12",
"phone": "+5495552512",
"email": "jose.perez@gmail.com",
"address": {
"street": "Alfonso XIII",
"number": "1234",
"floor": "5",
"apartment": "12",
"city": "Guaymallén",
"state": "Mendoza",
"country": "Argentina",
"zip_code": "5533"
}
}
]
}

GET /patients/{id}

Returns patient information for the specified patient id.

URI Parameters

  • id: Patient's ID

Response:

Code 200

{
"id": "f6262835-fbd8-423a-8746-46069edbaf18",
"name": "Jose",
"last_name": "Perez",
"gender": "Male",
"birth_date": "1985/11/30",
"identifier_type": "DNI",
"identifier": 31465466,
"medical_record_id": "2201125-12",
"phone": "+5495552512",
"email": "jose.perez@gmail.com",
"address":{
"street": "Alfonso XIII",
"number": "1234",
"floor": "5",
"apartment": "12",
"city": "Guaymallén",
"state": "Mendoza",
"country": "Argentina",
"zip_code": "5533"
}
}

POST /patients/

Registers a new patient.

Body
{
"birth_date": "1985/11/30",
"identifier_type": "DNI",
"identifier": 31465466,
"gender": "Male",
"email": "jose.perez@gmail.com",
"phone": "+5495552512"
}

Response:

Code 200
 {
"id": "f6262835-fbd8-423a-8746-46069edbaf18",
"name": "Jose",
"last_name": "Perez",
"gender": "Male",
"birth_date": "1985/11/30",
"identifier_type": "DNI",
"identifier": 31465466,
"medical_record_id": "2201125-12",
"phone": "+5495552512",
"email": "jose.perez@gmail.com",
"address":{
"street": "Alfonso XIII",
"number": "1234",
"floor": "5",
"apartment": "12",
"city": "Guaymallén",
"state": "Mendoza",
"country": "Argentina",
"zip_code": "5533"
}
}

PUT /patients/{id}

Updates patients data and contact information. This endpoint is optional.

URI Parameters

  • id: Patient's ID
Body
{
"name": "Jose",
"last_name": "Perez",
"gender": "Male",
"birth_date": "1985/11/30",
"identifier_type": "DNI",
"identifier": 31465466,
"medical_record_id": "2201125-12",
"phone": "+5495552512",
"email": "jose.perez@gmail.com",
"address":{
"street": "Alfonso XIII",
"number": "1234",
"floor": "5",
"apartment": "12",
"city": "Guaymallén",
"state": "Mendoza",
"country": "Argentina",
"zip_code": "5533"
}
}

Response:

Code 200
 {}