GET GetPatientsExist?ApiCode={ApiCode}&SuccCode={SuccCode}&EmailPatient={EmailPatient}&NoTelPatient={NoTelPatient}
Fonction s'occupant de vérifier si le courriel fourni en paramètre correspont à un ou plusieurs patient.
Paramètres reçus
- Clé de l'API
- SuccCode: Code de succursale
- Email: Courriel du patient
- JSON info patient et ressources disponibles
1 Valeur retournée (string) pour validation :
0 - Info patient disponible
1 - Code d'erreur 1 / Erreur de connexion à la BD
2 - Code d'erreur 2 / Erreur de connexion à la succursale
3 - Code d'erreur 3 / Code de succursale invalide
8 - Erreur format de réception des données d'entrée
9 - Clé API invalide
Get: /GetPatientsExist
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ApiCode | string |
Required |
|
| SuccCode | string |
Required |
|
| EmailPatient | string |
Required |
|
| NoTelPatient | string |
Required |
Body Parameters
None.
Response Information
Resource Description
InfoPatients| Name | Description | Type | Additional information |
|---|---|---|---|
| Validation | string |
None. |
|
| Patient | Collection of Patient |
None. |
Response Formats
application/json, text/json
Exemple:
{
"Validation": "sample string 1",
"Patient": [
{
"PatientId": 0,
"Name": null,
"Fname": null,
"Email": null,
"Sexe": null,
"Age": 0
},
{
"PatientId": 0,
"Name": null,
"Fname": null,
"Email": null,
"Sexe": null,
"Age": 0
}
]
}
application/xml, text/xml
Exemple:
<clsData.InfoPatients xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WsOptiPro">
<Patient>
<clsRessource.Patient>
<Age>0</Age>
<Email i:nil="true" />
<Fname i:nil="true" />
<Name i:nil="true" />
<PatientId>0</PatientId>
<Sexe i:nil="true" />
</clsRessource.Patient>
<clsRessource.Patient>
<Age>0</Age>
<Email i:nil="true" />
<Fname i:nil="true" />
<Name i:nil="true" />
<PatientId>0</PatientId>
<Sexe i:nil="true" />
</clsRessource.Patient>
</Patient>
<Validation>sample string 1</Validation>
</clsData.InfoPatients>