Provider Types
HTTP Request
Section titled “HTTP Request”MD Live offers multiple types of appointments, and the available provider types for a patient are determined based on the patient’s MD Live affiliation settings.
These settings can be updated by MD Live account management team. If you would like to update or add any services, please contact your account manager.
To retrieve the provider types a specific patient is eligible for, send a GET request to the following endpoint:
GET {server_url}/api/v2/patients/{patient_id}/provider_types
This request will return a list of provider types that the specified patient is allowed to schedule.
Headers
Section titled “Headers”| Parameter | Default |
|---|---|
| Authorization | Bearer {jwt_token} |
| Accept | application/json |
This request must include a valid User JWT token, please see our documentation.
URL Parameters
Section titled “URL Parameters”The following parameters need to be included in the URL of the request:
| Attribute | 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}/provider_types \ -H 'Authorization: Bearer {jwt_token}' \ -H 'Accept: application/json'RestClient::Request.new( :method => :get, :url => '{server_url}/api/v2/patients/{patient_id}/provider_types', :headers => { 'Authorization' => 'Bearer {jwt_token}', 'Accept' => 'application/json' }).executeExample Response
Section titled “Example Response”{ "provider_types": [ { "name": "Urgent Care", "key": "general_health_adult", "ids": [3], "combined_types": [] }, { "name": "Therapist", "key": "psychologist", "ids": [5], "combined_types": [] }, { "name": "Psychiatrist", "key": "psychiatrist", "ids": [6], "combined_types": [] }, { "name": "Therapist EAP", "key": "therapist_eap", "ids": [38], "combined_types": [] } ]}