📄️ Introduction
What are lenses and how they contribute to the Focusing Mechanism?
📄️ Getting Started with Lens Development
The fastest way to start developing a Lens is to use the official lens-template repository. This template provides a minimal working lens with a complete test suite to validate your lens implementation.
📄️ FHIR Metadata
The Lens Profile is the FHIR resource profile used to package Lenses, which encode the specific logic (algorithm) required to automatically adapt ePI content for personalization. This profile is derived from the standard FHIR Library resource.
📄️ Basic lens structure
Functions interface
📄️ Deploying your Lens
Lenses are typically deployed using a Lens selector. The Focusing Manager uses Lens selectors to securely access the available lenses.
📄️ Testing Your Lens
Comprehensive testing ensures your Lens operates correctly, maintains regulatory compliance, and delivers the intended personalization without removing regulated content. Use a combination of automated unit tests and visual inspection to validate your lens implementation.
📄️ Lens Examples
The following lenses have been developed for the Gravitate-Health platform and are available as open-source implementations.
📄️ Advanced Topic: Adding dependencies to your lens
It is assumed that lenses are bundled within a single JS object, but it may be possible to embed dependencies, like libraries, to your lens.