curl --request POST \
--url https://api.decodahealth.com/v1/patient/create \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firebaseUid": "<string>",
"firstName": "<string>",
"gender": "MALE",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "PATIENT",
"updatedDate": "2023-11-07T05:31:56Z",
"zipCode": "<string>"
}'
{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"zipCode": "<string>"
}
Create a new Patient
.
Also creates a new Chat
for the patient.
curl --request POST \
--url https://api.decodahealth.com/v1/patient/create \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firebaseUid": "<string>",
"firstName": "<string>",
"gender": "MALE",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "PATIENT",
"updatedDate": "2023-11-07T05:31:56Z",
"zipCode": "<string>"
}'
{
"address": "<string>",
"addressLineTwo": "<string>",
"addressValid": true,
"allergies": [
"<string>"
],
"city": "<string>",
"country": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"dateOfBirth": "2023-12-25",
"email": "<string>",
"externalUserId": "<string>",
"familyHistory": [
"<string>"
],
"firstName": "<string>",
"id": "<string>",
"lastName": "<string>",
"medicalHistory": [
"<string>"
],
"medications": [
"<string>"
],
"meta": {},
"optedOutOfSms": false,
"phoneNumber": "<string>",
"prescriptions": [
"<string>"
],
"state": "<string>",
"type": "<string>",
"zipCode": "<string>"
}
The tenant you are making this request on behalf of
Your api key
Successful Response
The response is of type object
.