api-patient-exists.patient-exists¶
Service to check if a patient exists by email.
Channel /patient/{version}/exists.
This class provides a method to verify if a patient exists in the system
based on their email address.
- This class check if patient exists :
In keycloak with ResourceOwner
In Odoo with Person.categories = PATIENT and Person.telecom.email = request
- Returns:
- HTTP status code:
200: If the patient exists.
404: If the patient does not exist.
500: If it exists in one system but not the other.
- JSON: payload with the status code and a text message.
status_code (int): 200 or 404
text (str): “Patient exists” or “Patient not found”
Input¶
Name |
Datatype |
Required |
Description |
|---|---|---|---|
string |
Yes |
— |
Output¶
Name |
Datatype |
Required |
Description |
|---|---|---|---|
status_code |
integer |
Yes |
— |
text |
string |
Yes |
— |