Get Patient
curl --request GET \
--url https://api.example.com/v1/patients/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/v1/patients/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/v1/patients/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/patients/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/patients/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/patients/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/patients/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"phone_number": "<string>",
"additional_phone_number": "<string>",
"email": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"address": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"zip": "<string>",
"workflow_stage_id": "<string>",
"assigned_user_id": "<string>",
"location_id": "<string>",
"organization_id": "<string>",
"created_from": "form",
"active": true,
"version": 1,
"first_communication_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"comments": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"workflow_stage": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"order": 123,
"description": "<string>"
},
"assigned_user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"policies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"patient_id": "<string>",
"insurance_id": "<string>",
"member_number": "<string>",
"coverage_tier": "primary",
"insurance_display_name": "<string>",
"group_number": "<string>",
"group_description": "<string>",
"medicaid_id": "<string>",
"plan_name": "<string>",
"plan_type": "ppo",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"relationship_to_subscriber": "spouse",
"subscriber": {
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"member_number": "<string>",
"address": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"zip": "<string>"
},
"external_id": "<string>",
"insurance_card_front_file_id": "<string>",
"insurance_card_back_file_id": "<string>",
"active": true,
"version": 0,
"current_version": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vob_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "<string>",
"patient_policy_id": "<string>",
"cbh_status": "active",
"plan_funding_type": "fully_funded",
"plan_renewal_date_type": "calendar_year",
"benefit_period_end_date": "2023-12-25",
"cob_on_file": true,
"cob_last_verified_at": "2023-11-07T05:31:56Z",
"has_other_active_coverage": true,
"cob_other_coverages": [
{
"name": "<string>",
"position": "primary"
}
],
"out_of_state_benefits": true,
"covered_states": [
"alabama"
],
"in_grace_period": true,
"last_payment_date": "2023-12-25",
"is_cobra_coverage": true,
"eligibility_check_status": "pending",
"eligibility_check_date": "2023-11-07T05:31:56Z",
"benefits_related_entities": [
{
"entity_name": "<string>",
"entity_firstname": "<string>",
"entity_middlename": "<string>",
"entity_type": "<string>",
"entity_identifier": "<string>",
"entity_identification": "<string>",
"entity_identification_value": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"postal_code": "<string>"
},
"contact_information": {
"name": "<string>",
"contacts": [
{
"communication_mode": "<string>",
"communication_number": "<string>"
}
]
},
"service_type_codes": [
"1"
],
"benefit_name": "<string>"
}
],
"eligibility_version": 0,
"services": [
{
"created_at": "2024-01-15T10:30:00Z",
"id": "550e8400-e29b-41d4-a716-446655440014",
"payor_id": "550e8400-e29b-41d4-a716-446655440012",
"specialty": "physical_therapy",
"updated_at": "2024-01-15T10:30:00Z",
"verification_benefits_status": "completed"
}
],
"active": true,
"version": 1
},
"latest_eligibility_check": {
"id": "<string>",
"eligibility_status": "active",
"created_at": "2023-11-07T05:31:56Z",
"payor_id": "<string>"
},
"expected_vob_type": {
"vob_type": "full"
},
"insurance": {
"id": "<string>",
"name": "<string>",
"is_active": true,
"trading_partner_service_id": "<string>",
"aliases": [
"<string>"
],
"payer_id": "<string>",
"additional_fields": {}
},
"patient": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone_number": "<string>"
}
}
],
"external_id_values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"external_id_type": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"type": "validation_error",
"code": "invalid_parameter",
"message": "Field validation failed",
"param": "phone_number"
}Patients
Get Patient
GET
/
v1
/
patients
/
{id}
Get Patient
curl --request GET \
--url https://api.example.com/v1/patients/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/v1/patients/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/v1/patients/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/patients/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/patients/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/patients/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/patients/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"phone_number": "<string>",
"additional_phone_number": "<string>",
"email": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"address": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"zip": "<string>",
"workflow_stage_id": "<string>",
"assigned_user_id": "<string>",
"location_id": "<string>",
"organization_id": "<string>",
"created_from": "form",
"active": true,
"version": 1,
"first_communication_at": "2023-11-07T05:31:56Z",
"custom_fields": {},
"comments": "<string>",
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"workflow_stage": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"order": 123,
"description": "<string>"
},
"assigned_user": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"policies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"patient_id": "<string>",
"insurance_id": "<string>",
"member_number": "<string>",
"coverage_tier": "primary",
"insurance_display_name": "<string>",
"group_number": "<string>",
"group_description": "<string>",
"medicaid_id": "<string>",
"plan_name": "<string>",
"plan_type": "ppo",
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"relationship_to_subscriber": "spouse",
"subscriber": {
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"date_of_birth": "2023-12-25",
"gender": "male",
"member_number": "<string>",
"address": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"zip": "<string>"
},
"external_id": "<string>",
"insurance_card_front_file_id": "<string>",
"insurance_card_back_file_id": "<string>",
"active": true,
"version": 0,
"current_version": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vob_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "<string>",
"patient_policy_id": "<string>",
"cbh_status": "active",
"plan_funding_type": "fully_funded",
"plan_renewal_date_type": "calendar_year",
"benefit_period_end_date": "2023-12-25",
"cob_on_file": true,
"cob_last_verified_at": "2023-11-07T05:31:56Z",
"has_other_active_coverage": true,
"cob_other_coverages": [
{
"name": "<string>",
"position": "primary"
}
],
"out_of_state_benefits": true,
"covered_states": [
"alabama"
],
"in_grace_period": true,
"last_payment_date": "2023-12-25",
"is_cobra_coverage": true,
"eligibility_check_status": "pending",
"eligibility_check_date": "2023-11-07T05:31:56Z",
"benefits_related_entities": [
{
"entity_name": "<string>",
"entity_firstname": "<string>",
"entity_middlename": "<string>",
"entity_type": "<string>",
"entity_identifier": "<string>",
"entity_identification": "<string>",
"entity_identification_value": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "alabama",
"postal_code": "<string>"
},
"contact_information": {
"name": "<string>",
"contacts": [
{
"communication_mode": "<string>",
"communication_number": "<string>"
}
]
},
"service_type_codes": [
"1"
],
"benefit_name": "<string>"
}
],
"eligibility_version": 0,
"services": [
{
"created_at": "2024-01-15T10:30:00Z",
"id": "550e8400-e29b-41d4-a716-446655440014",
"payor_id": "550e8400-e29b-41d4-a716-446655440012",
"specialty": "physical_therapy",
"updated_at": "2024-01-15T10:30:00Z",
"verification_benefits_status": "completed"
}
],
"active": true,
"version": 1
},
"latest_eligibility_check": {
"id": "<string>",
"eligibility_status": "active",
"created_at": "2023-11-07T05:31:56Z",
"payor_id": "<string>"
},
"expected_vob_type": {
"vob_type": "full"
},
"insurance": {
"id": "<string>",
"name": "<string>",
"is_active": true,
"trading_partner_service_id": "<string>",
"aliases": [
"<string>"
],
"payer_id": "<string>",
"additional_fields": {}
},
"patient": {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone_number": "<string>"
}
}
],
"external_id_values": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"external_id_type": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"type": "validation_error",
"code": "invalid_parameter",
"message": "Field validation failed",
"param": "phone_number"
}Query Parameters
Response
Successful Response
Patient resource response model.
US States enum matching Prisma @map values
Available options:
alabama, alaska, arizona, arkansas, california, colorado, connecticut, delaware, florida, georgia, hawaii, idaho, illinois, indiana, iowa, kansas, kentucky, louisiana, maine, maryland, massachusetts, michigan, minnesota, mississippi, missouri, montana, nebraska, nevada, new_hampshire, new_jersey, new_mexico, new_york, north_carolina, north_dakota, ohio, oklahoma, oregon, pennsylvania, rhode_island, south_carolina, south_dakota, tennessee, texas, utah, vermont, virginia, washington, west_virginia, wisconsin, wyoming, district_of_columbia, puerto_rico, virgin_islands, guam, northern_mariana_islands, american_samoa 
