Skip to main content

Create/Update Patient

Use the PatientCareIntegration_registerFollowupPatient method to register a patient in a Patient Care follow-up flow.

This method lets you register the patient and associate them with the follow-up configured in the program.


Step 1: Get the Authentication Token and Headers

Before performing any operation, 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: Create/Update Patient

Use the PatientCareIntegration_registerFollowupPatient method to register a patient in the desired follow-up flow.

Parameters

ParameterTypeRequiredDescriptionValue
followupSlugStringYesFollow-up identifierPossible values - followupSlug
inputObjectYesPatient and caregiver dataObject

Possible values - followupSlug

ValueDescription
SAC_TEVATeva SAC service flow
Esclerose_multiplaMultiple sclerosis follow-up program
enxaquecaMigraine follow-up program
huntington_ou_discinesiaHuntington's disease or dyskinesia follow-up program
diagnostico_huntingtonHuntington's disease diagnosis flow

Input Fields

FieldTypeRequiredDescription
nameStringYesPatient name
countryIntYesCountry code. Possible values - country
cpfStringYesPatient CPF
emailStringNoPatient email
acceptProgramTermsBooleanYesAcceptance of the program terms
recipientTypeStringYesRecipient type. Possible values - recipientType
phoneStringNoMain phone number
caregiverCpfStringNoCaregiver CPF
caregiverNameStringNoCaregiver name
caregiverKinshipIntNoKinship degree. Possible values - caregiverKinship
cityStringNoCity
stateStringNoState
doctorCrmStringNoDoctor CRM
doctorUfStringNoCRM state
doctorNameStringNoDoctor name

Possible values - recipientType

ValueDescription
PATIENTPatient
CLINICClinic

Possible values - country

ValueCountry
0Brazil
1Peru
2Mexico

Possible values - caregiverKinship

ValueDescription
0Father
1Mother
2Sibling
3Child
4Uncle/Aunt
5Friend
6Other
7Relative
8Healthcare professional
9Husband
10Wife

GraphQL Mutation Example

mutation registerFollowupPatient {
PatientCareIntegration_registerFollowupPatient(
followupSlug: "programa_acompanhamento"
input: {
name: "JOAO DA SILVA"
country: 0
cpf: "12345678900"
email: "joao.silva@email.com"
acceptProgramTerms: true
recipientType: "PATIENT"
phone: "11999999999"
caregiverCpf: "98765432100"
caregiverName: "MARIA DA SILVA"
caregiverKinship: 1
city: "São Paulo"
state: "SP"
doctorCrm: "123456"
doctorUf: "SP"
doctorName: "DRA ANA TESTE"
}
) {
id
idPatient
followup
numberRegisterPatient
isNew
}
}

Return Example

{
"data": {
"PatientCareIntegration_registerFollowupPatient": {
"id": "8c7d6f11-52b1-4eab-9a32-2d4f1a7c6b90",
"idPatient": "3f4a9b21-9d3f-45c8-b11d-8a1e6d2f7c44",
"followup": "programa_acompanhamento",
"numberRegisterPatient": 100245,
"isNew": true
}
}
}

Notes

  • The followupSlug field identifies the follow-up flow configured in Patient Care.
  • The recipientType field must follow the valid values defined by the integration.
  • The country and caregiverKinship fields use numeric values according to the platform's internal enums.
  • The method may create a new patient or reuse an existing registration, according to the platform's internal validations.