GET /accounts/{account_id}
curl --request GET \
--url https://api.example.test/accounts/{account_id}import requests
url = "https://api.example.test/accounts/{account_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/accounts/{account_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.test/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.test/accounts/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
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.test/accounts/{account_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account": {
"certified_information": true,
"consultations_count": 123,
"email": "jsmith@example.com",
"eprescription_enabled": true,
"account_setup_completed": true,
"id": 123,
"role": "<string>",
"links": {
"response_templates": "<string>",
"physician_specialty": "<string>",
"location": "<string>"
},
"name": "<string>",
"username": "<string>",
"office_state_id": 123,
"survey_answered": true,
"physician_institution": "<string>",
"physician_license": "<string>",
"physician_specialty_id": 123,
"configuration": {
"locale": "<string>",
"schedule": {
"fri": [
"<string>"
],
"mon": [
"<string>"
],
"sat": [
"<string>"
],
"thu": [
"<string>"
],
"tue": [
"<string>"
],
"wed": [
"<string>"
],
"weeks_limit": {
"id": 123,
"time": 123,
"interval": "<string>"
},
"consultation_duration": 123
},
"timezone": "<string>",
"consultation": {
"odontogram": true,
"physical_exam": true,
"physiotherapy": true,
"treatment_plan": true,
"disability_leave": true
},
"custom_forms": {
"person": {
"employee": true
},
"consultation": {
"ketosis_elements": {
"cramps": true,
"hunger": true,
"anxiety": true,
"fatigue": true,
"satiety": true,
"diarrhea": true,
"headache": true,
"dizziness": true,
"halitosis": true,
"tolerance": true,
"depression": true,
"impatience": true,
"constipation": true,
"irritability": true,
"concentration": true,
"aggressiveness": true,
"impulse_control": true,
"stimulants_need": true,
"sleeping_problems": true
},
"nutrition_elements": {
"fat": true,
"waist": true,
"water": true,
"muscle": true,
"abdomen": true,
"lost_weight": true
},
"vital_signs_elements": {
"height": true,
"weight": true,
"systole": true,
"diastole": true,
"body_mass": true,
"heart_rate": true,
"temperature": true,
"lean_body_mass": true,
"respiratory_rate": true,
"oxygen_saturation": true,
"head_circumference": true,
"body_fat_percentage": true
},
"lab_test_results_elements": {
"co2": true,
"sodium": true,
"calcium": true,
"glucose": true,
"chloride": true,
"platelet": true,
"potassium": true,
"creatinine": true,
"hematocrit": true,
"hemoglobin": true,
"reticulocyte": true,
"triglycerides": true,
"red_blood_cells": true,
"white_blood_cell": true,
"total_cholesterol": true,
"blood_urea_nitrogen": true,
"low_density_lipoprotein": true,
"high_density_lipoprotein": true,
"very_low_density_lipoprotein": true
}
},
"medical_history": {
"diet": true,
"perinatal": true,
"postnatal": true,
"psychiatric": true,
"vaccines_mx": true,
"pathological": true,
"work_history": true,
"heredo_familial": true,
"non_pathological": true,
"gineco_obstetrics": true
}
},
"custom_roles": {
"administrator": true
},
"weekly_email": true,
"schedule_type": "<string>",
"feature_toggles": {
"nimbo_chat": true,
"section_nms": true,
"physiotherapy": true,
"cirrus_integration": true,
"farhos_integration": true,
"section_telehealth": true
},
"custom_catalogue": {
"lab_tests": {
"filters": "<string>"
}
},
"prescription_copy": true,
"print_diagnostics": true,
"print_vital_signs": true,
"interface_language": "<string>",
"only_existing_patient": true,
"prescription_template": "<string>",
"send_cancellation_information": true
},
"settings": {
"reports": {
"dashboard": true,
"daily-sheet": true,
"suive": true
},
"onboarding": true,
"consultation": {
"odontogram": true,
"invoice-items": true,
"disease-notes": {
"vital-signs-graphs": true
},
"diagnostic-and-treatment": {
"medispan": true,
"custom-lab-tests": true,
"custom-drugs": true
}
},
"inventories": true,
"feature-toggle": {
"items-importer": true
}
},
"frequent_consultation_causes": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"pending_confirmation_email": null,
"cellphone": "<string>",
"cellphone_verified": true,
"cellphone_country_id": 123,
"affiliation_id": 123,
"professional_standard": {},
"sis_type_of_staff": null,
"sis_specify_type_of_staff": null,
"referral_token": null,
"should_reset_password": true,
"referral_token_meta": null,
"metadata": {
"cirrus": {
"credentials": {
"extra": {
"role_id": "<string>",
"estServId": "<string>"
},
"password": "<string>",
"username": "<string>"
}
}
},
"temporary_schedules_expired": true,
"new_patients_count": 123,
"appointments_count": 123,
"bio": "<string>"
}
}Authentication and accounts
GET /accounts/{account_id}
GET
/
accounts
/
{account_id}
GET /accounts/{account_id}
curl --request GET \
--url https://api.example.test/accounts/{account_id}import requests
url = "https://api.example.test/accounts/{account_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/accounts/{account_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.test/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.test/accounts/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
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.test/accounts/{account_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account": {
"certified_information": true,
"consultations_count": 123,
"email": "jsmith@example.com",
"eprescription_enabled": true,
"account_setup_completed": true,
"id": 123,
"role": "<string>",
"links": {
"response_templates": "<string>",
"physician_specialty": "<string>",
"location": "<string>"
},
"name": "<string>",
"username": "<string>",
"office_state_id": 123,
"survey_answered": true,
"physician_institution": "<string>",
"physician_license": "<string>",
"physician_specialty_id": 123,
"configuration": {
"locale": "<string>",
"schedule": {
"fri": [
"<string>"
],
"mon": [
"<string>"
],
"sat": [
"<string>"
],
"thu": [
"<string>"
],
"tue": [
"<string>"
],
"wed": [
"<string>"
],
"weeks_limit": {
"id": 123,
"time": 123,
"interval": "<string>"
},
"consultation_duration": 123
},
"timezone": "<string>",
"consultation": {
"odontogram": true,
"physical_exam": true,
"physiotherapy": true,
"treatment_plan": true,
"disability_leave": true
},
"custom_forms": {
"person": {
"employee": true
},
"consultation": {
"ketosis_elements": {
"cramps": true,
"hunger": true,
"anxiety": true,
"fatigue": true,
"satiety": true,
"diarrhea": true,
"headache": true,
"dizziness": true,
"halitosis": true,
"tolerance": true,
"depression": true,
"impatience": true,
"constipation": true,
"irritability": true,
"concentration": true,
"aggressiveness": true,
"impulse_control": true,
"stimulants_need": true,
"sleeping_problems": true
},
"nutrition_elements": {
"fat": true,
"waist": true,
"water": true,
"muscle": true,
"abdomen": true,
"lost_weight": true
},
"vital_signs_elements": {
"height": true,
"weight": true,
"systole": true,
"diastole": true,
"body_mass": true,
"heart_rate": true,
"temperature": true,
"lean_body_mass": true,
"respiratory_rate": true,
"oxygen_saturation": true,
"head_circumference": true,
"body_fat_percentage": true
},
"lab_test_results_elements": {
"co2": true,
"sodium": true,
"calcium": true,
"glucose": true,
"chloride": true,
"platelet": true,
"potassium": true,
"creatinine": true,
"hematocrit": true,
"hemoglobin": true,
"reticulocyte": true,
"triglycerides": true,
"red_blood_cells": true,
"white_blood_cell": true,
"total_cholesterol": true,
"blood_urea_nitrogen": true,
"low_density_lipoprotein": true,
"high_density_lipoprotein": true,
"very_low_density_lipoprotein": true
}
},
"medical_history": {
"diet": true,
"perinatal": true,
"postnatal": true,
"psychiatric": true,
"vaccines_mx": true,
"pathological": true,
"work_history": true,
"heredo_familial": true,
"non_pathological": true,
"gineco_obstetrics": true
}
},
"custom_roles": {
"administrator": true
},
"weekly_email": true,
"schedule_type": "<string>",
"feature_toggles": {
"nimbo_chat": true,
"section_nms": true,
"physiotherapy": true,
"cirrus_integration": true,
"farhos_integration": true,
"section_telehealth": true
},
"custom_catalogue": {
"lab_tests": {
"filters": "<string>"
}
},
"prescription_copy": true,
"print_diagnostics": true,
"print_vital_signs": true,
"interface_language": "<string>",
"only_existing_patient": true,
"prescription_template": "<string>",
"send_cancellation_information": true
},
"settings": {
"reports": {
"dashboard": true,
"daily-sheet": true,
"suive": true
},
"onboarding": true,
"consultation": {
"odontogram": true,
"invoice-items": true,
"disease-notes": {
"vital-signs-graphs": true
},
"diagnostic-and-treatment": {
"medispan": true,
"custom-lab-tests": true,
"custom-drugs": true
}
},
"inventories": true,
"feature-toggle": {
"items-importer": true
}
},
"frequent_consultation_causes": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"pending_confirmation_email": null,
"cellphone": "<string>",
"cellphone_verified": true,
"cellphone_country_id": 123,
"affiliation_id": 123,
"professional_standard": {},
"sis_type_of_staff": null,
"sis_specify_type_of_staff": null,
"referral_token": null,
"should_reset_password": true,
"referral_token_meta": null,
"metadata": {
"cirrus": {
"credentials": {
"extra": {
"role_id": "<string>",
"estServId": "<string>"
},
"password": "<string>",
"username": "<string>"
}
}
},
"temporary_schedules_expired": true,
"new_patients_count": 123,
"appointments_count": 123,
"bio": "<string>"
}
}⌘I