Retrieving Data
The Patient Chart uses the access token obtained during the SMART on FHIR launch to retrieve clinical data for the active patient and session context. The chart does not store any data locally. It performs real time, read only API calls to the Health Gorilla FHIR endpoints.
How it works
After the viewer is authorized and launched, it uses the access token to retrieve structured data through the FHIR API. Resources are requested dynamically and displayed in their corresponding chart sections. Typical resource types include:
- Patient: Demographic and identifier information
- AllergyIntolerance: Documented allergies
- Condition: Active and historical problems
- MedicationStatement: Medications and adherence
- Procedure: Clinical and surgical history
- Observation: Vitals, lab results, and test outcomes
- DocumentReference: Clinical notes and attached reports
- Encounter: Recent visits or hospitalizations
These resources are rendered using standard FHIR structures and grouped by section within the chart interface.
Scope requirements
To ensure successful data access, your SMART on FHIR client must request the following scopes during authorization:
patient/*.*: Grants read access to all patient-scoped FHIR resourceslaunch: Indicates the launch originates from an EHR systemopenidandfhirUser: Grants user identity context and enables role-based access control
If these scopes are omitted or misconfigured, the chart may not retrieve data or may return authorization errors.