post Patients
POST {{baseUrl}}/patients?subdomain={{subdomain}}&location_id={{location_id}}
Create a patient
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
subdomain | string | (Required) Used to scope the request to the specified institution | |
location_id | string | (Required) Used to scope the request to the specified institution |
Request Body
{"provider"=>{"provider_id"=>"<integer>"}, "patient"=>{"first_name"=>"<string>", "last_name"=>"<string>", "email"=>"<string>", "bio"=>{"date_of_birth"=>"<date>", "phone_number"=>"<string>", "home_phone_number"=>"<string>", "cell_phone_number"=>"<string>", "work_phone_number"=>"<string>", "custom_contact_number"=>"<string>", "gender"=>"<string>", "weight"=>"<integer>", "height"=>"<integer>", "street_address"=>"<string>", "city"=>"<string>", "state"=>"<string>", "zip_code"=>"<string>", "insurance_name"=>"<string>", "ssn"=>"<string>", "race"=>"<string>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"code":"\u003cboolean\u003e","description":"\u003cstring\u003e","error":["\u003cstring\u003e","\u003cstring\u003e"],"data":{"user":{"id":"\u003cinteger\u003e","email":"\u003cstring\u003e","first_name":"\u003cstring\u003e","middle_name":"\u003cstring\u003e","last_name":"\u003cstring\u003e","name":"\u003cstring\u003e","created_at":"\u003cstring\u003e","updated_at":"\u003cstring\u003e","institution_id":"\u003cinteger\u003e","foreign_id":"\u003cstring\u003e","foreign_id_type":"\u003cstring\u003e","bio":"\u003cobject\u003e","inactive":"\u003cboolean\u003e","last_sync_time":"\u003cstring\u003e","guarantor_id":"\u003cinteger\u003e","unsubscribe_sms":"\u003cboolean\u003e"}},"count":"\u003cinteger\u003e"}