This repository contains an example of a lens selector. A lens selector provides a list of lens names, and also provides the lenses to the focusing manager.
kubectl apply -f kubernetes-yaml/001_lens-selector-example-service.yaml
kubectl apply -f kubernetes-yaml/002_lens-selector-example-deployment.yaml
In order to be discovered by the focusing manager, the service.yaml needs to include the following selector in the spec
field:
metadata:
labels:
eu.gravitate-health.fosps.focusing: "true"
Service will be accessible internally from the kubernetes cluster with the url http://lens-selector-mvp2.default.svc.cluster.local:3000/focus
The lenses are based on the following definition
The lenses that are avaible in this package or in testing are detailed on this table
LENSE | DESCRIPTION |
---|---|
Pregnancy | Hightlights the pregnancyCategory, breastfeedingCategory, contra-indication-pregancy classes |
Diabetes | WIP |
HIV | WIP |
It only recognises ePIs anotated with the \ method and the classes mentioned in the table above.
Open an issue if any bug is detected
This project is distributed under the terms of the Apache License, Version 2.0 (AL2). The license applies to this file and other files in the GitHub repository hosting this file.
Copyright 2022 Universidad Politécnica de Madrid
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.