Get Person
Use the PatientCareIntegrationV2_getPerson method to locate the registration data of a legal entity already registered in Patient Care.
This method returns the company's main registration data, such as legal name, trade name, main phone number, and document.
Step 1: Get the Authentication Token and Headers
Before making any query, you must authenticate and obtain a valid token.
This endpoint uses the Patient Care authentication flow.
For more details, see: Patient Care Authentication
Step 2: Get Person
Use the PatientCareIntegrationV2_getPerson method to query the company's registration data by document.
Parameters
| Parameter | Type | Required | Description | Value |
|---|---|---|---|---|
| programSlug | String | Yes | Program identifier in Patient Care | Possible values - programSlug |
| document | String | Yes | Company document (CNPJ) | Map Input |
Possible values - programSlug
| Value | Description |
|---|---|
| teva_sac | Teva SAC Program |
| teva_cuidar | Teva Cuidar Program |
GraphQL Query Example
query getPerson {
PatientCareIntegrationV2_getPerson(
programSlug: "teva_cuidar"
document: "52834892000120"
) {
idPerson
name
socialName
mainPhone
document
country
typePerson
}
}
Return Example
{
"data": {
"PatientCareIntegrationV2_GetPerson": [
{
"idPerson": "d96ef1b7-8fe0-4a62-ae07-6d7efde03d10",
"name": "EMPRESA TESTE LTDA",
"socialName": "EMPRESA TESTE",
"mainPhone": "11999999999",
"document": "52834892000120",
"country": "_0",
"typePerson": "_1"
}
]
}
}