GET /people/{people_id}/medical_history
curl --request GET \
--url https://api.example.test/people/{people_id}/medical_historyimport requests
url = "https://api.example.test/people/{people_id}/medical_history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/people/{people_id}/medical_history', 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/people/{people_id}/medical_history",
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/people/{people_id}/medical_history"
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/people/{people_id}/medical_history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/people/{people_id}/medical_history")
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{
"medical_history": {
"id": 123,
"person_id": 123,
"allergies": null,
"links": {
"medical_history_prescription_drugs": "<string>",
"medical_history_attachments": "<string>",
"medical_history_allergies": "<string>"
},
"pathological_records": {
"stds": {
"text": null
},
"other": {
"text": null
},
"cancer": {
"text": null
},
"diabetes": {
"text": null
},
"injuries": {
"text": null
},
"respiratory": {
"text": null
},
"hypertension": {
"text": null
},
"transfusions": {
"text": null
},
"tuberculosis": {
"text": null
},
"heart_diseases": {
"text": null
},
"prior_surgeries": {
"text": null
},
"gastrointestinal": {
"text": null
},
"thyroid_diseases": {
"text": null
},
"prior_hospitalization": {
"text": null
}
},
"nonpathological_records": {
"other": {
"text": null
},
"smoking": {
"text": null
},
"alcoholism": {
"text": null
},
"drugs_abuse": {
"text": null
},
"physical_activity": {
"text": null
},
"recent_immunization": {
"text": null
}
},
"heredofamilial_records": {
"other": {
"text": null
},
"diabetes": {
"text": null
},
"hypertension": {
"text": null
},
"heart_diseases": {
"text": null
},
"thyroid_diseases": {
"text": null
}
},
"gineco_obstetrics_records": {
"other": {
"text": null
},
"pregnancies": {
"text": null
},
"breast_cancer": {
"text": null
},
"last_pap_smear": {
"text": null
},
"uterine_cancer": {
"text": null
},
"cervical_cancer": {
"text": null
},
"sexual_activity": {
"text": null
},
"last_mastography": {
"text": null
},
"birth_control_method": {
"text": null
},
"menstruation_last_date": {
"text": null
},
"menstruation_first_date": {
"text": null
},
"hormone_replacement_therapy": {
"text": null
},
"menstruation_characteristics": {
"text": null
}
},
"vaccines_mx": {
"other": {
"text": null
},
"month_2": null,
"month_4": null,
"month_6": null,
"month_7": null,
"newborn": null,
"month_12": null,
"month_18": null,
"month_24": null,
"month_36": null,
"month_48": null,
"month_60": null,
"month_72": null,
"month_120": null
},
"diet": {
"lunch": {
"text": null
},
"other": {
"text": null
},
"dinner": {
"text": null
},
"satiety": null,
"breakfast": {
"text": null
},
"past_diets": {
"text": null
},
"supplements": {
"text": null
},
"ideal_weight": {
"text": null
},
"past_ailment": {
"text": null
},
"food_diseases": {
"text": null
},
"home_prepared": {
"text": null
},
"liquid_intake": {
"text": null
},
"appetite_level": null,
"current_ailment": {
"text": null
},
"food_preferences": {
"text": null
},
"collation_morning": {
"text": null
},
"glasses_water_day": null,
"collation_afternoon": {
"text": null
},
"nutritional_education": {
"text": null
}
},
"psychiatric_records": {
"work_life": {
"text": null
},
"family_life": {
"text": null
},
"social_life": {
"text": null
},
"family_history": {
"text": null
},
"impulse_control": {
"text": null
},
"deals_with_stress": {
"text": null
},
"illness_awareness": {
"text": null
},
"affected_life_aspects": {
"text": null
},
"family_and_friends_support": {
"text": null
},
"past_and_present_treatments": {
"text": null
},
"relationship_with_authority": {
"text": null
}
},
"perinatal_records": {
"final_edb": {
"text": null
},
"cycle_length": {
"text": null
},
"pregnancy_notes": {
"text": null
},
"assisted_conception": {
"text": null
},
"last_menstrual_period": {
"text": null
},
"last_used_contraceptive_type": {
"text": null
},
"estimated_date_of_birth_by_lmp": {
"text": null
}
},
"postnatal_records": {
"babys_health": {
"text": null
},
"birth_review": {
"text": null
},
"name_of_baby": {
"text": null
},
"infant_feeding": null,
"emotional_state": {
"text": null
},
"weight_at_birth": {
"text": null
}
},
"has_allergies": null,
"updater_name": "<string>"
}
}Medical history
GET /people/{people_id}/medical_history
GET
/
people
/
{people_id}
/
medical_history
GET /people/{people_id}/medical_history
curl --request GET \
--url https://api.example.test/people/{people_id}/medical_historyimport requests
url = "https://api.example.test/people/{people_id}/medical_history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/people/{people_id}/medical_history', 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/people/{people_id}/medical_history",
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/people/{people_id}/medical_history"
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/people/{people_id}/medical_history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/people/{people_id}/medical_history")
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{
"medical_history": {
"id": 123,
"person_id": 123,
"allergies": null,
"links": {
"medical_history_prescription_drugs": "<string>",
"medical_history_attachments": "<string>",
"medical_history_allergies": "<string>"
},
"pathological_records": {
"stds": {
"text": null
},
"other": {
"text": null
},
"cancer": {
"text": null
},
"diabetes": {
"text": null
},
"injuries": {
"text": null
},
"respiratory": {
"text": null
},
"hypertension": {
"text": null
},
"transfusions": {
"text": null
},
"tuberculosis": {
"text": null
},
"heart_diseases": {
"text": null
},
"prior_surgeries": {
"text": null
},
"gastrointestinal": {
"text": null
},
"thyroid_diseases": {
"text": null
},
"prior_hospitalization": {
"text": null
}
},
"nonpathological_records": {
"other": {
"text": null
},
"smoking": {
"text": null
},
"alcoholism": {
"text": null
},
"drugs_abuse": {
"text": null
},
"physical_activity": {
"text": null
},
"recent_immunization": {
"text": null
}
},
"heredofamilial_records": {
"other": {
"text": null
},
"diabetes": {
"text": null
},
"hypertension": {
"text": null
},
"heart_diseases": {
"text": null
},
"thyroid_diseases": {
"text": null
}
},
"gineco_obstetrics_records": {
"other": {
"text": null
},
"pregnancies": {
"text": null
},
"breast_cancer": {
"text": null
},
"last_pap_smear": {
"text": null
},
"uterine_cancer": {
"text": null
},
"cervical_cancer": {
"text": null
},
"sexual_activity": {
"text": null
},
"last_mastography": {
"text": null
},
"birth_control_method": {
"text": null
},
"menstruation_last_date": {
"text": null
},
"menstruation_first_date": {
"text": null
},
"hormone_replacement_therapy": {
"text": null
},
"menstruation_characteristics": {
"text": null
}
},
"vaccines_mx": {
"other": {
"text": null
},
"month_2": null,
"month_4": null,
"month_6": null,
"month_7": null,
"newborn": null,
"month_12": null,
"month_18": null,
"month_24": null,
"month_36": null,
"month_48": null,
"month_60": null,
"month_72": null,
"month_120": null
},
"diet": {
"lunch": {
"text": null
},
"other": {
"text": null
},
"dinner": {
"text": null
},
"satiety": null,
"breakfast": {
"text": null
},
"past_diets": {
"text": null
},
"supplements": {
"text": null
},
"ideal_weight": {
"text": null
},
"past_ailment": {
"text": null
},
"food_diseases": {
"text": null
},
"home_prepared": {
"text": null
},
"liquid_intake": {
"text": null
},
"appetite_level": null,
"current_ailment": {
"text": null
},
"food_preferences": {
"text": null
},
"collation_morning": {
"text": null
},
"glasses_water_day": null,
"collation_afternoon": {
"text": null
},
"nutritional_education": {
"text": null
}
},
"psychiatric_records": {
"work_life": {
"text": null
},
"family_life": {
"text": null
},
"social_life": {
"text": null
},
"family_history": {
"text": null
},
"impulse_control": {
"text": null
},
"deals_with_stress": {
"text": null
},
"illness_awareness": {
"text": null
},
"affected_life_aspects": {
"text": null
},
"family_and_friends_support": {
"text": null
},
"past_and_present_treatments": {
"text": null
},
"relationship_with_authority": {
"text": null
}
},
"perinatal_records": {
"final_edb": {
"text": null
},
"cycle_length": {
"text": null
},
"pregnancy_notes": {
"text": null
},
"assisted_conception": {
"text": null
},
"last_menstrual_period": {
"text": null
},
"last_used_contraceptive_type": {
"text": null
},
"estimated_date_of_birth_by_lmp": {
"text": null
}
},
"postnatal_records": {
"babys_health": {
"text": null
},
"birth_review": {
"text": null
},
"name_of_baby": {
"text": null
},
"infant_feeding": null,
"emotional_state": {
"text": null
},
"weight_at_birth": {
"text": null
}
},
"has_allergies": null,
"updater_name": "<string>"
}
}⌘I