docLogica API Examples

view full API specs here


Question

What are the characteristics of the symptom with id S0001 (fatigue)?

API Endpoint

GET https://api2.doclogica.com/symptoms/S0001

{ "id": "S0001", "umlsId": "C0015672", "synonyms": [ "lethargy", "weariness", "tiredness", "tired", "tired out" ], "name": "fatigue", "sex": "any", "category": "general body sensation" }

Question

What are the characteristics of the disease with id D0017 (myocardial infarction)?

API Endpoint

GET https://api2.doclogica.com/diseases/D0017

{ "umlsId": "C0027051", "acuity": "acute", "emergent": true, "id": "D0017", "findings": [ { "id": "S0037", "name": "dyspnea", "frequency": "common" }, { "id": "D0718", "name": "vomiting", "frequency": "common" }, { "id": "S0346", "name": "lightheadedness", "frequency": "common" }, { "id": "D0078", "name": "ventricular arrythmia", "frequency": "uncommon" }, { "id": "S0740", "name": "jaw pain", "frequency": "uncommon" }, { "id": "D1510", "name": "myocardial rupture (papillary muscle)", "frequency": "rare" }, { "id": "S1425", "name": "left arm pain", "frequency": "common" }, { "id": "S1426", "name": "right arm pain", "frequency": "common" }, { "id": "S0293", "name": "left shoulder pain", "frequency": "common" }, { "id": "S0297", "name": "right shoulder pain", "frequency": "common" }, { "id": "S0427", "name": "upper back pain", "frequency": "common" }, { "id": "S0143", "name": "headache", "frequency": "uncommon" }, { "id": "S0076", "name": "weakness (generalized)", "frequency": "common" }, { "id": "S0039", "name": "cough", "frequency": "uncommon" }, { "id": "S0546", "name": "hiccough", "frequency": "uncommon" }, { "id": "S0345", "name": "palpitations", "frequency": "common" }, { "id": "S0081", "name": "chest pain", "frequency": "veryCommon" }, { "id": "S0180", "name": "increased belching", "frequency": "common" }, { "id": "D0719", "name": "nausea", "frequency": "common" }, { "id": "S0178", "name": "excessive sweating", "frequency": "veryCommon" }, { "id": "S0182", "name": "dyspepsia", "frequency": "common" }, { "id": "S0001", "name": "fatigue", "frequency": "common" }, { "id": "D0170", "name": "heart failure", "frequency": "common" }, { "id": "S0077", "name": "epigastric pain", "frequency": "common" }, { "id": "S0313", "name": "syncope", "frequency": "uncommon" }, { "id": "S0782", "name": "anterior neck pain", "frequency": "common" }, { "id": "D1508", "name": "myocardial rupture (free wall)", "frequency": "uncommon" }, { "id": "D1509", "name": "myocardial rupture (interventricular septum)", "frequency": "rare" } ], "synonyms": [ "heart attack", "MI", "cardiac infarction", "infarction of heart" ], "epidemiology": { "location": [ "Sweden" ], "maleIncidence": "9.2e+02", "totalIncidence": "7.2e+02", "femaleAgeGroupIncidence": [ { "incidence": "-2.0e+00", "ageRange": "0.0-29.0" }, { "incidence": "5.0e+00", "ageRange": "30.0-34.0" }, { "incidence": "7.0e+00", "ageRange": "35.0-39.0" }, { "incidence": "2.5e+01", "ageRange": "40.0-44.0" }, { "incidence": "5.1e+01", "ageRange": "45.0-49.0" }, { "incidence": "9.3e+01", "ageRange": "50.0-54.0" }, { "incidence": "1.7e+02", "ageRange": "55.0-59.0" }, { "incidence": "3.5e+02", "ageRange": "60.0-64.0" }, { "incidence": "5.5e+02", "ageRange": "65.0-69.0" }, { "incidence": "1.0e+03", "ageRange": "70.0-74.0" }, { "incidence": "1.6e+03", "ageRange": "75.0-79.0" }, { "incidence": "2.5e+03", "ageRange": "80.0-84.0" }, { "incidence": "3.3e+03", "ageRange": "85.0-89.0" } ], "femaleIncidence": "5.2e+02", "maleAgeGroupIncidence": [ { "incidence": "-2.0e+00", "ageRange": "0.0-29.0" }, { "incidence": "1.0e+01", "ageRange": "30.0-34.0" }, { "incidence": "3.9e+01", "ageRange": "35.0-39.0" }, { "incidence": "9.9e+01", "ageRange": "40.0-44.0" }, { "incidence": "2.1e+02", "ageRange": "45.0-49.0" }, { "incidence": "4.0e+02", "ageRange": "50.0-54.0" }, { "incidence": "7.1e+02", "ageRange": "55.0-59.0" }, { "incidence": "1.1e+03", "ageRange": "60.0-64.0" }, { "incidence": "1.6e+03", "ageRange": "65.0-69.0" }, { "incidence": "2.3e+03", "ageRange": "70.0-74.0" }, { "incidence": "3.3e+03", "ageRange": "75.0-79.0" }, { "incidence": "4.4e+03", "ageRange": "80.0-84.0" }, { "incidence": "5.4e+03", "ageRange": "85.0-89.0" } ], "totalAgeGroupIncidence": [ { "incidence": "-2.0e+00", "ageRange": "0.0-29.0" }, { "incidence": "7.5e+00", "ageRange": "30.0-34.0" }, { "incidence": "2.3e+01", "ageRange": "35.0-39.0" }, { "incidence": "6.2e+01", "ageRange": "40.0-44.0" }, { "incidence": "1.3e+02", "ageRange": "45.0-49.0" }, { "incidence": "2.5e+02", "ageRange": "50.0-54.0" }, { "incidence": "4.4e+02", "ageRange": "55.0-59.0" }, { "incidence": "7.2e+02", "ageRange": "60.0-64.0" }, { "incidence": "1.1e+03", "ageRange": "65.0-69.0" }, { "incidence": "1.7e+03", "ageRange": "70.0-74.0" }, { "incidence": "2.5e+03", "ageRange": "75.0-79.0" }, { "incidence": "3.4e+03", "ageRange": "80.0-84.0" }, { "incidence": "4.4e+03", "ageRange": "85.0-89.0" } ] }, "sex": "any", "name": "myocardial infarction", "etiologicCategory": "ischemia" }

Question

What is the relationship between "full lips" and other clinical terms?

API Endpoint

GET https://api2.doclogica.com/semantics?name=full%20lips

[{ "supras": [ "enlarged face" ], "primary": true, "subs": [], "id": 2319, "synonyms": [ "enlarged lips", "prominent lips" ], "additives": [], "type": "symptom", "similars": [ "lip swelling" ], "name": "full lips", "databaseId": "S1262" }]

Question

What is the differential for abdominal pain (semantic id 1966) and clubbing (semantic id 5956)?

API Endpoint

POST https://api2.doclogica.com/ddx/query BODY { "symptoms": [1966,5956]}

GET https://api2.doclogica.com/ddx/result

[ { "incidence": "1.8e+00", "id": "D0074", "emergent": false, "name": "Graves disease", "pathogenesis": "hormonal", "complications": "hyperthyroidism" }, { "incidence": "6.5e-01", "id": "D0013", "emergent": false, "name": "polycystic kidney disease (autosomal dominant)", "pathogenesis": "genetic", "complications": "bronchiectasis" }, { "incidence": "1.2e-01", "id": "D0201", "emergent": false, "name": "ulcerative colitis", "pathogenesis": "autoimmune", "complications": null }, { "incidence": "1.1e-01", "id": "D1873", "emergent": false, "name": "human betaherpesvirus 7 infection", "pathogenesis": "infectious", "complications": "hepatitis (infectious, non-abscess forming)" }, { "incidence": "1.1e-01", "id": "D0200", "emergent": false, "name": "Crohn disease", "pathogenesis": "autoimmune", "complications": null }, { "incidence": "8.6e-02", "id": "D0677", "emergent": true, "name": "infective endocarditis (excluding valvular complications)", "pathogenesis": "infectious", "complications": null }, { "incidence": "7.2e-02", "id": "D0001", "emergent": false, "name": "systemic lupus erythematosus", "pathogenesis": "autoimmune", "complications": "tendinitis / tendinopathy → De Quervain's tenosynovitis" }, { "incidence": "6.3e-02", "id": "D0068", "emergent": true, "name": "pneumonia (common bacterial)", "pathogenesis": "infectious", "complications": "systemic inflammatory response syndrome → hepatitis (non-infectious) → liver failure (acute) → liver failure (chronic)" }, { "incidence": "4.9e-02", "id": "D1022", "emergent": false, "name": "rheumatoid arthritis", "pathogenesis": "autoimmune", "complications": "amyloidosis (secondary) → hepatomegaly" }, { "incidence": "4.3e-02", "id": "D0086", "emergent": false, "name": "prolactinoma (woman, premenopausal)", "pathogenesis": "hormonal", "complications": "hypothyroidism" }, { "incidence": "2.5e-02", "id": "D0622", "emergent": false, "name": "pancreatic cancer (neuroendocrine, non-functioning)", "pathogenesis": "neoplasm", "complications": "liver metastases/tumor → liver failure (chronic)" }, { "incidence": "1.5e-02", "id": "D0942", "emergent": false, "name": "liver failure (chronic)", "pathogenesis": "organ failure", "complications": "hepatocellular carcinoma" }, { "incidence": "1.3e-02", "id": "D1867", "emergent": false, "name": "mycobacterium avium complex infection", "pathogenesis": "infectious", "complications": "hepatitis (infectious, abscess forming)" }, { "incidence": "9.0e-03", "id": "D0655", "emergent": true, "name": "bone fracture", "pathogenesis": "organ (other than vascular) tear, break or non-congenital deformity", "complications": "complex regional pain syndrome" }, { "incidence": "6.1e-03", "id": "D0019", "emergent": true, "name": "hypokalemia", "pathogenesis": "acid/base and electrolytes", "complications": "hypertension (chronic) → coronary artery disease → myocardial infarction" }, { "incidence": "4.5e-03", "id": "D0358", "emergent": false, "name": "infectious mononucleosis", "pathogenesis": "infectious", "complications": "hepatitis (infectious, non-abscess forming) → liver failure (acute) → liver failure (chronic)" }, { "incidence": "3.8e-03", "id": "D0592", "emergent": false, "name": "somatotroph adenoma (pre-puberty)", "pathogenesis": "abnormal growth (potentially non-cancerous)", "complications": "hypothyroidism" }, { "incidence": "3.2e-03", "id": "D0010", "emergent": false, "name": "herpes zoster infection", "pathogenesis": "infectious", "complications": "hepatitis (infectious, non-abscess forming) → liver failure (acute) → liver failure (chronic)" }, { "incidence": "3.0e-03", "id": "D0739", "emergent": true, "name": "infective endocarditis (aortic valve)", "pathogenesis": "infectious", "complications": "infective endocarditis (excluding valvular complications)" }, { "incidence": "3.0e-03", "id": "D0416", "emergent": true, "name": "systemic inflammatory response syndrome", "pathogenesis": "inflammatory (could be infectious, autoimmune etc.)", "complications": "hepatitis (non-infectious) → liver failure (acute) → liver failure (chronic)" }, { "incidence": "2.1e-03", "id": "D0448", "emergent": false, "name": "bladder cancer", "pathogenesis": "neoplasm", "complications": "liver metastases/tumor" }, ... ]