Get list of supported LOINC codes for clinical note sections
cURL
curl --request GET \ --url https://sdp.suki-stage.com/api/v1/info/loincs \ --header 'sdp_suki_token: <sdp_suki_token>'
{ "loincs": [ { "code": "10164-2", "common_name": "History of Present Illness" } ] }
import requests url = "https://sdp.suki.ai/api/v1/info/loincs" headers = { "sdp_suki_token": "<sdp_suki_token>" } response = requests.get(url, headers=headers) if response.status_code == 200: loincs_data = response.json() print("Supported LOINC Codes:") for loinc in loincs_data.get("loincs", []): print(f" {loinc.get('code')}: {loinc.get('common_name')}") else: print(f"Failed to get LOINC codes: {response.status_code}") print(response.json())
const response = await fetch('https://sdp.suki.ai/api/v1/info/loincs', { headers: { 'sdp_suki_token': '<sdp_suki_token>' } }); if (response.ok) { const loincsData = await response.json(); console.log('Supported LOINC Codes:'); loincsData.loincs?.forEach((loinc: any) => { console.log(` ${loinc.code}: ${loinc.common_name}`); }); } else { const error = await response.json(); console.error(`Failed to get LOINC codes: ${response.status}`, error); }
sdp_suki_token
Success Response
Response body for the /info/loincs endpoint
Information about supported section codes
Show child attributes
Suggestions