const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
phone: '<string>',
email: 'jsmith@example.com',
dni: '<string>',
address: '<string>',
sex: '<string>',
birthdate: '<string>'
})
};
fetch('https://api.vambe.me/api/public/booking-url/{urlName}/patients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));