Create patient
feegow_create_patientWRITE: registers a new patient and returns the patient_id. Feegow does not duplicate: when a patient with the same CPF and birth date (or, without a CPF, the same name plus mobile, e-mail or birth date) exists, that patient's id is returned and nothing is created. Set no_cpf=true for a patient without CPF. Health data (LGPD): only register data the patient gave the clinic. POST /patient/create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpf | No | CPF, 11 digits, numbers only. | |
| zip | No | CEP (max 9 characters). | |
| city | No | City. | |
| No | E-mail. | ||
| notes | No | Note on the patient record. | |
| phone | No | Phone, digits only. | |
| state | No | State, two letters (e.g. RJ). | |
| email2 | No | Second e-mail. | |
| gender | No | M or F. | |
| mobile | No | Mobile phone, digits only. | |
| no_cpf | No | true = the patient has no CPF (then cpf is ignored). | |
| number | No | Street number. | |
| phone2 | No | Second phone, digits only. | |
| address | No | Street. | |
| mobile2 | No | Second mobile phone, digits only. | |
| district | No | District (bairro). | |
| full_name | Yes | Full name (max 200 characters). | |
| source_id | No | Patient source id (feegow_list_patient_sources). | |
| birth_date | No | Birth date, yyyy-mm-dd. | |
| complement | No | Address complement. | |
| social_name | No | Social name. | |
| insurance_id | No | Insurance (convênio) id. | |
| insurance_card | No | Insurance card number (matrícula). | |
| price_table_id | No | Private price table id. | |
| insurance_holder | No | Insurance holder's name. | |
| insurance_plan_id | No | Insurance plan id. | |
| insurance_valid_until | No | Insurance validity, yyyy-mm-dd. |