Skip to content
MD Live logoMD Live logoMD Live Developer API

Primary Care Physician Questions

While scheduling an appointment, you can capture information about a patient’s primary care physician (PCP). MD Live will send information to the patient’s PCP if the patient confirms their PCP’s contact information and opts to have their information sent.

To retrieve a list of PCP related questions, make a request to:

GET {server}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions

This request must include a valid User JWT token, please see our documentation

Parameter Default
Content-type application/json
Accept application/json
Authorization Bearer {jwttoken}
Parameter Required Description
patient_id true MD Live ID for patient
Terminal window
curl -X GET {server_url}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions
-H "Content-type: application/json"
-H "Authorization: Bearer 34a2sample-api-token"
-H "Accept: application/json"
{
"pcp_questions": [
{
"name": "primary_care_physician",
"question": "Do you have a Primary Care Physician?",
"value": false
},
{
"name": "pcp_correct_information",
"question": "Is your Primary Care Physician information correct?",
"value": true
},
{
"name": "pcp_visit_information",
"question": "Would you like the visit information to be sent to your PCP?",
"value": false
}
]
}

To update a patient’s responses to primary care physician (PCP) related questions, make a request to:

PUT {server}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions

This request must include a valid User JWT token, please see our documentation

Parameter Default
Content-type application/json
Accept application/json
Authorization Bearer {jwttoken}
Parameter Required Description
patient_id true MD Live ID for patient
Parameter Type Required Description
pcp_questions array of objects true Parent attribute for array of pcp questions
↳ name string true Name for PCP question
↳ value boolean true True or False answer to the Primary Care Physician question
Terminal window
curl -X PUT {server_url}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions
-H "Content-type: application/json"
-H "Authorization: Bearer 34a2sample-api-token"
-H "Accept: application/json"
-d '{
"pcp_questions": [
{
"name": "primary_care_physician",
"value": true
}
]
}'
{
"pcp_questions": [
{
"name": "primary_care_physician",
"question": "Do you have a Primary Care Physician?",
"value": true
},
{
"name": "pcp_correct_information",
"question": "Is your Primary Care Physician information correct?",
"value": false
},
{
"name": "pcp_visit_information",
"question": "Would you like the visit information to be sent to your PCP?",
"value": false
}
]
}