Skip to content

Instantly share code, notes, and snippets.

@TheOutdoorProgrammer
Created May 20, 2026 03:24
Show Gist options
  • Select an option

  • Save TheOutdoorProgrammer/3128a0eef551ecff37f3629ea6e8ffd6 to your computer and use it in GitHub Desktop.

Select an option

Save TheOutdoorProgrammer/3128a0eef551ecff37f3629ea6e8ffd6 to your computer and use it in GitHub Desktop.
Fasten Health Dashboard: Lab Results — metabolic panel, lipids, liver, HbA1c, kidney
{
"id": "labs",
"schema_version": "1.0",
"title": "Lab Results",
"description": "Metabolic panel, lipid panel, liver function, HbA1c, and kidney markers over time",
"widgets": [
{
"title_text": "HbA1c",
"description_text": "Hemoglobin A1c — 3-month average blood sugar",
"x": 0,
"y": 0,
"width": 4,
"height": 4,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|4548-4"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Glucose",
"description_text": "Serum glucose",
"x": 4,
"y": 0,
"width": 4,
"height": 4,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2345-7"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "GFR (Kidney)",
"description_text": "Glomerular filtration rate — kidney function",
"x": 8,
"y": 0,
"width": 4,
"height": 4,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|48642-3"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Cholesterol",
"description_text": "Total cholesterol",
"x": 0,
"y": 4,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2093-3"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "HDL",
"description_text": "HDL (good) cholesterol",
"x": 3,
"y": 4,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2085-9"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "LDL",
"description_text": "LDL (bad) cholesterol",
"x": 6,
"y": 4,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|13457-7,http://loinc.org|18262-6"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Triglycerides",
"description_text": "",
"x": 9,
"y": 4,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2571-8"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Sodium",
"description_text": "",
"x": 0,
"y": 7,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2951-2"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Potassium",
"description_text": "",
"x": 3,
"y": 7,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2823-3"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "BUN",
"description_text": "Blood urea nitrogen",
"x": 6,
"y": 7,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|3094-0"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Creatinine",
"description_text": "",
"x": 9,
"y": 7,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2160-0"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "ALT (SGPT)",
"description_text": "Liver enzyme",
"x": 0,
"y": 10,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|1744-2"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "AST (SGOT)",
"description_text": "Liver enzyme",
"x": 3,
"y": 10,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|1920-8"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Alk Phos",
"description_text": "Alkaline phosphatase",
"x": 6,
"y": 10,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|6768-6"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Total Bilirubin",
"description_text": "",
"x": 9,
"y": 10,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|1975-2"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Albumin",
"description_text": "",
"x": 0,
"y": 13,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|61151-7"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Total Protein",
"description_text": "",
"x": 3,
"y": 13,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2885-2"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Urine Microalbumin",
"description_text": "Kidney health marker",
"x": 6,
"y": 13,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|2888-6"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
},
{
"title_text": "Microalb/Creat Ratio",
"description_text": "Kidney health marker",
"x": 9,
"y": 13,
"width": 3,
"height": 3,
"item_type": "simple-line-chart-widget",
"queries": [{
"q": {
"select": [
"valueQuantity.value as data",
"valueQuantity.unit as unit",
"(effectiveDateTime | issued).first() as label"
],
"from": "Observation",
"where": {
"code": "http://loinc.org|34535-5"
},
"limit": 50
}
}],
"parsing": {
"xAxisKey": "label",
"yAxisKey": "data"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment