POST api/IntegracaoAgenda/CriarPaciente?codClienteSSN={codClienteSSN}
Cria um paciente novo. Se o celular já tiver cadastro, devolve o ID existente (jaExistia = true) em vez de duplicar.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| codClienteSSN | string |
Required |
Body Parameters
IntegracaoCriarPacienteRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| nome | string |
None. |
|
| celular | string |
None. |
|
| cpf | string |
None. |
|
| nascimento | string |
None. |
|
| convenioId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"nome": "sample string 1",
"celular": "sample string 2",
"cpf": "sample string 3",
"nascimento": "sample string 4",
"convenioId": 5
}
application/xml, text/xml
Sample:
<IntegracaoCriarPacienteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webService2.Controllers"> <celular>sample string 2</celular> <convenioId>5</convenioId> <cpf>sample string 3</cpf> <nascimento>sample string 4</nascimento> <nome>sample string 1</nome> </IntegracaoCriarPacienteRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.