Primary Care Physician Questions
Retrieve Questions
Section titled “Retrieve 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:
HTTP Request
Section titled “HTTP Request”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
Header Parameter
Section titled “Header Parameter”| Parameter | Default |
|---|---|
| Content-type | application/json |
| Accept | application/json |
| Authorization | Bearer {jwttoken} |
URL Parameter
Section titled “URL Parameter”| Parameter | Required | Description |
|---|---|---|
| patient_id | true | MD Live ID for patient |
Example Request
Section titled “Example Request”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"RestClient::Request.new( :method => :get, :url => "{server_url}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions", :headers => { "Content-type" => "application/json", "Authorization" => "Bearer 34a2sample-api-token", "Accept" => "application/json" }).executeExample Response
Section titled “Example Response”{ "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 } ]}Update Responses to PCP Questions
Section titled “Update Responses to PCP Questions”To update a patient’s responses to primary care physician (PCP) related questions, make a request to:
HTTP Request
Section titled “HTTP Request”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
Header Parameter
Section titled “Header Parameter”| Parameter | Default |
|---|---|
| Content-type | application/json |
| Accept | application/json |
| Authorization | Bearer {jwttoken} |
URL Parameter
Section titled “URL Parameter”| Parameter | Required | Description |
|---|---|---|
| patient_id | true | MD Live ID for patient |
Request Body Parameters
Section titled “Request Body Parameters”| 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 |
Example Request
Section titled “Example Request”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 } ] }'RestClient::Request.new( :method => :put, :url => "{server_url}/api/v2/patients/{patient_id}/evr_primary_care_physician_questions", :headers => { "Content-type" => "application/json", "Authorization" => "Bearer 34a2sample-api-token", "Accept" => "application/json" }, :payload => { pcp_questions: { name: "primary_care_physician", value: true } }).executeExample Response
Section titled “Example Response”{ "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 } ]}