Created
May 20, 2026 03:24
-
-
Save TheOutdoorProgrammer/03410ca7e11cb986233b26d4aaad8ed3 to your computer and use it in GitHub Desktop.
Fasten Health Dashboard: Overview — vitals, conditions, encounters, medications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "overview", | |
| "schema_version": "1.0", | |
| "title": "Health Overview", | |
| "description": "Vitals, conditions, encounters, and key metrics at a glance", | |
| "widgets": [ | |
| { | |
| "title_text": "Records Summary", | |
| "description_text": "", | |
| "x": 0, | |
| "y": 0, | |
| "width": 8, | |
| "height": 6, | |
| "item_type": "records-summary-widget" | |
| }, | |
| { | |
| "title_text": "Patient Vitals", | |
| "description_text": "", | |
| "x": 8, | |
| "y": 0, | |
| "width": 4, | |
| "height": 6, | |
| "item_type": "patient-vitals-widget" | |
| }, | |
| { | |
| "title_text": "Conditions", | |
| "description_text": "", | |
| "x": 0, | |
| "y": 6, | |
| "width": 6, | |
| "height": 5, | |
| "item_type": "donut-chart-widget", | |
| "queries": [{ | |
| "q": { | |
| "select": [], | |
| "from": "Condition", | |
| "where": {}, | |
| "aggregations": { | |
| "count_by": {"field": "code:code"} | |
| } | |
| } | |
| }], | |
| "parsing": { | |
| "label": "label", | |
| "key": "value" | |
| } | |
| }, | |
| { | |
| "title_text": "Allergies", | |
| "description_text": "", | |
| "x": 6, | |
| "y": 6, | |
| "width": 6, | |
| "height": 5, | |
| "item_type": "donut-chart-widget", | |
| "queries": [{ | |
| "q": { | |
| "select": [], | |
| "from": "AllergyIntolerance", | |
| "where": {}, | |
| "aggregations": { | |
| "count_by": {"field": "code:code"} | |
| } | |
| } | |
| }], | |
| "parsing": { | |
| "label": "label", | |
| "key": "value" | |
| } | |
| }, | |
| { | |
| "title_text": "Weight", | |
| "description_text": "", | |
| "x": 0, | |
| "y": 11, | |
| "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|29463-7,http://loinc.org|3141-9" | |
| }, | |
| "limit": 50 | |
| } | |
| }], | |
| "parsing": { | |
| "xAxisKey": "label", | |
| "yAxisKey": "data" | |
| } | |
| }, | |
| { | |
| "title_text": "Blood Pressure", | |
| "description_text": "", | |
| "x": 3, | |
| "y": 11, | |
| "width": 5, | |
| "height": 3, | |
| "item_type": "grouped-bar-chart-widget", | |
| "queries": [ | |
| { | |
| "q": { | |
| "select": [ | |
| "component.where(code.coding.system = 'http://loinc.org' and code.coding.code = '8462-4').valueQuantity.value as data", | |
| "component.where(code.coding.system = 'http://loinc.org' and code.coding.code = '8462-4').valueQuantity.unit as unit" | |
| ], | |
| "from": "Observation", | |
| "where": { | |
| "componentCode": "http://loinc.org|8462-4" | |
| }, | |
| "limit": 50 | |
| }, | |
| "dataset_options": { | |
| "label": "Diastolic" | |
| } | |
| }, | |
| { | |
| "q": { | |
| "select": [ | |
| "component.where(code.coding.system = 'http://loinc.org' and code.coding.code = '8480-6').valueQuantity.value as data", | |
| "component.where(code.coding.system = 'http://loinc.org' and code.coding.code = '8480-6').valueQuantity.unit as unit" | |
| ], | |
| "from": "Observation", | |
| "where": { | |
| "componentCode": "http://loinc.org|8480-6" | |
| }, | |
| "limit": 50 | |
| }, | |
| "dataset_options": { | |
| "label": "Systolic" | |
| } | |
| } | |
| ], | |
| "parsing": { | |
| "xAxisKey": "id", | |
| "yAxisKey": "data" | |
| } | |
| }, | |
| { | |
| "title_text": "Heart Rate", | |
| "description_text": "", | |
| "x": 8, | |
| "y": 11, | |
| "width": 2, | |
| "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|8867-4" | |
| }, | |
| "limit": 50 | |
| } | |
| }], | |
| "parsing": { | |
| "xAxisKey": "label", | |
| "yAxisKey": "data" | |
| } | |
| }, | |
| { | |
| "title_text": "SpO2", | |
| "description_text": "", | |
| "x": 10, | |
| "y": 11, | |
| "width": 2, | |
| "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|59408-5,http://loinc.org|2708-6" | |
| }, | |
| "limit": 50 | |
| } | |
| }], | |
| "parsing": { | |
| "xAxisKey": "label", | |
| "yAxisKey": "data" | |
| } | |
| }, | |
| { | |
| "title_text": "Recent Encounters", | |
| "description_text": "", | |
| "x": 0, | |
| "y": 14, | |
| "width": 12, | |
| "height": 5, | |
| "item_type": "table-widget", | |
| "queries": [{ | |
| "q": { | |
| "select": [ | |
| "serviceProvider.display as institution", | |
| "period.start as date", | |
| "reasonCode.coding.display.first() as reason", | |
| "participant.individual.display as provider" | |
| ], | |
| "from": "Encounter", | |
| "where": {}, | |
| "limit": 50 | |
| } | |
| }], | |
| "parsing": { | |
| "Id": "id", | |
| "Date": "date", | |
| "Institution": "institution", | |
| "Reason": "reason", | |
| "Provider": "provider" | |
| } | |
| }, | |
| { | |
| "title_text": "Compliance", | |
| "description_text": "", | |
| "x": 0, | |
| "y": 19, | |
| "width": 4, | |
| "height": 2, | |
| "item_type": "dual-gauges-widget", | |
| "queries": [ | |
| { | |
| "dataset_options": {"label": "Immunizations"}, | |
| "q": { | |
| "select": [], | |
| "from": "Immunization", | |
| "where": {}, | |
| "aggregations": { | |
| "count_by": {"field": "*"} | |
| } | |
| } | |
| }, | |
| { | |
| "dataset_options": {"label": "Medications"}, | |
| "q": { | |
| "select": [], | |
| "from": "MedicationRequest", | |
| "where": {}, | |
| "aggregations": { | |
| "count_by": {"field": "*"} | |
| } | |
| } | |
| } | |
| ], | |
| "parsing": { | |
| "label": "key", | |
| "key": "value" | |
| } | |
| }, | |
| { | |
| "title_text": "Medications", | |
| "description_text": "", | |
| "x": 4, | |
| "y": 19, | |
| "width": 8, | |
| "height": 4, | |
| "item_type": "table-widget", | |
| "queries": [{ | |
| "q": { | |
| "select": [ | |
| "medicationReference.display as medication", | |
| "authoredOn as date", | |
| "dosageInstruction.text.first() as dosage", | |
| "status as status" | |
| ], | |
| "from": "MedicationRequest", | |
| "where": {}, | |
| "limit": 50 | |
| } | |
| }], | |
| "parsing": { | |
| "Id": "id", | |
| "Date": "date", | |
| "Medication": "medication", | |
| "Dosage": "dosage", | |
| "Status": "status" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment