Skip to content

Update

PATCH

/:tenantId/patients/:id

Parameters

NameTypeRequiredDescription
first_namestringyesThe first name of the individual.
last_namestringyesThe last name of the individual.
photostringnoA base64-encoded string representing the individual's photo.
mobilestringnoThe individual's mobile phone number.
phonestringnoThe individual's general phone number.
nationalitystringnoThe nationality of the individual.
foreigner_typestringnoThe type of foreigner, if applicable. See Foreigner Types endpoint.
identity_numberstringnoThe individual's TCKN number, allows passport number.
protocol_nostringnoThe protocol number associated with the individual.
birth_datestringnoThe birth date of the individual (format: YYYY-MM-DD).
birthplacestringnoThe birthplace of the individual.
control_datestringnoThe control date associated with the individual (format: YYYY-MM-DD).
work_phonestringnoThe individual's work phone number.
home_phonestringnoThe individual's home phone number.
faxstringnoThe individual's fax number.
emailstringnoThe individual's email address.
addressstringnoThe individual's residential address.
citystringnoThe city of the individual's residence.
townstringnoThe town of the individual's residence.
districtstringnoThe district of the individual's residence.
post_codestringnoThe postal code of the individual's residence.
countrystringnoThe country of the individual's residence.
work_addressstringnoThe address of the individual's workplace.
occupationstringnoThe occupation of the individual.
user_idstringnoAssigned user for the patient.
came_fromstringnoThe country from where the individual came, for non-Turkish patient. See Countries endpoint.
referencestringnoReference details for the individual.
blood_typestringnoThe blood type of the individual.
discount_rateintegernoThe discount rate applicable to the individual.
healthcare_idstringnoThe healthcare ID associated with the individual.
insurance_type_idstringyesThe ID of the insurance type associated with the individual.
typestringnoThe type of individual or record.
genderintegeryesThe gender of the individual.
0: Unspecified (default)
1: Male
2: Female
emergency_contact_namestringnoThe name of the emergency contact person.
emergency_contact_phonestringnoThe phone number of the emergency contact person.
emergency_contact_relationshipstringnoThe relationship of the emergency contact person to the individual.
group_idarraynoAn array of patient group IDs associated with the individual.
sourcestringnoThe source of the record.
external_idstringnoAn external identifier associated with the record.

:::

Body

json
{
    "first_name": "John",
    "last_name": "Done",
    "photo": "",
    "mobile": "",
    "phone": "",
    "nationality": "",
    "foreigner_type": "",
    "identity_number": "",
    "protocol_no": "",
    "birth_date": "",
    "birthplace": "",
    "control_date": "",
    "work_phone": "",
    "home_phone": "",
    "fax": "",
    "email": "",
    "address": "",
    "city": "",
    "town": "",
    "district": "",
    "post_code": "",
    "country": "",
    "work_address": "",
    "occupation": "",
    "user_id": "",
    "came_from": "",
    "reference": "",
    "blood_type": "",
    "discount_rate": 15,
    "healthcare_id": "",
    "insurance_type_id": "1",
    "type": "",
    "gender": 1,
    "emergency_contact_name": "",
    "emergency_contact_phone": "",
    "emergency_contact_relationship": "",
    "group_id": [],
    "source": "",
    "external_id": ""
}

Response

HTTP 200 OK

json
{
  "data": {
    "id": 1896,
    "first_name": "John",
    "last_name": "Done",
    "name": null,
    "mobile": null,
    "phone": null,
    "identity_number": null,
    "protocol_no": null,
    "birth_date": null,
    "birthplace": null,
    "control_date": null,
    "work_phone": null,
    "home_phone": null,
    "fax": null,
    "email": null,
    "address": null,
    "state": null,
    "city": null,
    "town": null,
    "district": null,
    "post_code": null,
    "country": null,
    "work_address": null,
    "nationality": null,
    "foreigner_type": null,
    "occupation": null,
    "user_id": null,
    "came_from": null,
    "reference": null,
    "blood_type": null,
    "discount_rate": 15,
    "healthcare_id": null,
    "insurance_type_id": "1",
    "type": null,
    "gender": 1,
    "emergency_contact_name": null,
    "emergency_contact_phone": null,
    "emergency_contact_relationship": null,
    "created_at": "2024-11-29T06:32:25.000000Z",
    "notes": [],
    "group_id": [],
    "user": null,
    "photo": null,
    "sms_consent": null,
    "privacy_consented_at": null,
    "can_send_to_uss": false
  }
}

422 Unprocessable Entity

json
{
  "message": "The selected hasta grubu is invalid.",
  "errors": {
    "group_id.0": [
      "The selected hasta grubu is invalid."
    ]
  }
}