Gravitate-Health / lens-selector-mvp2

Set of lenses for MVP2
Apache License 2.0
0 stars 0 forks source link

Gravitate Health Lens Selector Example

License


Table of contents


Introduction

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.


Kubernetes Deployment

  1. Create the following resources:
    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"

Usage

Service will be accessible internally from the kubernetes cluster with the url http://lens-selector-mvp2.default.svc.cluster.local:3000/focus


Avaible Lenses

The lenses are based on the following definition

avaible lenses

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

Known issues and limitations

It only recognises ePIs anotated with the \ method and the classes mentioned in the table above.


Getting help

Open an issue if any bug is detected


Contributing


License

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.

Authors and history


Acknowledgments