import requests
url = 'https://api.miramace.com/v1/patient/d7038030-aa24-4b89-a076-23c3fd29df34'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json()){
"id": "123e4567-e89b-12d3-a456-426614174001",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Doe",
"date_of_birth": "1990-01-15",
"phone_number": "+14155555555",
"address": {
"street_name": "123 Market Street",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country_code": "US"
},
"primary_care_provider": {
"name": "Dr. Sarah Smith",
"practice": "SF Medical Group"
},
"insurance": {
"medical": [
{
"company_name": "Blue Cross Blue Shield",
"member_id": "BCB123456789",
"group_number": "GRP987654",
"plan_name": "PPO Gold",
"phone_number": "+18005551234",
"relationship_to_subscriber": "SELF"
}
],
"dental": [
{
"company_name": "Delta Dental",
"member_id": "DDB123456789",
"group_number": "GRPD123",
"plan_name": "Premier Plan",
"phone_number": "+18005553456",
"relationship_to_subscriber": "SELF"
}
],
"vision": [
{
"company_name": "VSP",
"member_id": "VSP123456789",
"group_number": "GRPV123",
"plan_name": "Vision Care",
"phone_number": "+18005554567",
"relationship_to_subscriber": "SELF"
}
]
},
"created_at": "2024-03-20T08:00:00Z",
"updated_at": "2024-03-20T08:00:00Z"
}Get detailed information about a patient
import requests
url = 'https://api.miramace.com/v1/patient/d7038030-aa24-4b89-a076-23c3fd29df34'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json()){
"id": "123e4567-e89b-12d3-a456-426614174001",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Doe",
"date_of_birth": "1990-01-15",
"phone_number": "+14155555555",
"address": {
"street_name": "123 Market Street",
"city": "San Francisco",
"state": "CA",
"postal_code": "94105",
"country_code": "US"
},
"primary_care_provider": {
"name": "Dr. Sarah Smith",
"practice": "SF Medical Group"
},
"insurance": {
"medical": [
{
"company_name": "Blue Cross Blue Shield",
"member_id": "BCB123456789",
"group_number": "GRP987654",
"plan_name": "PPO Gold",
"phone_number": "+18005551234",
"relationship_to_subscriber": "SELF"
}
],
"dental": [
{
"company_name": "Delta Dental",
"member_id": "DDB123456789",
"group_number": "GRPD123",
"plan_name": "Premier Plan",
"phone_number": "+18005553456",
"relationship_to_subscriber": "SELF"
}
],
"vision": [
{
"company_name": "VSP",
"member_id": "VSP123456789",
"group_number": "GRPV123",
"plan_name": "Vision Care",
"phone_number": "+18005554567",
"relationship_to_subscriber": "SELF"
}
]
},
"created_at": "2024-03-20T08:00:00Z",
"updated_at": "2024-03-20T08:00:00Z"
}The ID of the patient to retrieve UUID of the patient to retrieve
"123e4567-e89b-12d3-a456-426614174001"
Patient details retrieved successfully
Email address of the patient
First name of the patient
"Jane"
Last name of the patient
"Doe"
Date in ISO 8601 format (YYYY-MM-DD)
"1990-01-01"
The phone number in E.164 format (e.g., +15555555555)
"+15555555555"
Show child attributes
Street address
"123 Main St"
City
"San Francisco"
State/province
"CA"
Postal/ZIP code
"94105"
Two-letter country code
"US"
Show child attributes
Show child attributes
The name of the insurance company
"Blue Cross Blue Shield"
The member ID
"XYZ1234567"
The group number
"GRP123456"
The plan name
"PPO Gold"
The phone number in E.164 format (e.g., +15555555555)
"+15555555555"
The relationship of the member to the primary subscriber
RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED, SELF, SPOUSE, DEPENDENT "SELF"
Show child attributes
The name of the insurance company
"Blue Cross Blue Shield"
The member ID
"XYZ1234567"
The group number
"GRP123456"
The plan name
"PPO Gold"
The phone number in E.164 format (e.g., +15555555555)
"+15555555555"
The relationship of the member to the primary subscriber
RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED, SELF, SPOUSE, DEPENDENT "SELF"
Show child attributes
The name of the insurance company
"Blue Cross Blue Shield"
The member ID
"XYZ1234567"
The group number
"GRP123456"
The plan name
"PPO Gold"
The phone number in E.164 format (e.g., +15555555555)
"+15555555555"
The relationship of the member to the primary subscriber
RELATIONSHIP_TO_SUBSCRIBER_UNSPECIFIED, SELF, SPOUSE, DEPENDENT "SELF"
UUID of the patient
"123e4567-e89b-12d3-a456-426614174001"
UUID of the project this patient belongs to
"123e4567-e89b-12d3-a456-426614174000"
Timestamp when the patient was created
Timestamp when the patient was last updated