Skip to main content

The Thalamus project provides a RESTful API hub to all the GNU Health Federation nodes. The main functions are:

# Message server: A concentrator and message relay from and to the participating nodes in the GNU Health Federation and the GNU Health Information System (MongoDB). Some of the participating nodes include the GNU Health HMIS (Tryton based), MyGNUHealth mobile PHR application, laboratories, research institutions and civil offices.

# Authentication Server : Thalamus also serves as an authentication and authorization server to interact with the GNUHealth Information System

Thalamus is part of the GNU Health project, but it is a self contained, independent server that can be used in different health related scenarios.

Installation

Thalamus is pip-installable.

>>> pip install thalamus

Technology

RESTful API: Thalamus uses a REST (Representional State Transfer) architectural style, powered by Flask technology

Thalamus will perform CRUD (Create, Read, Update, Delete) operations. They will be achived via the following methods upon resources and their instances.

# GET : Read

# POST : Create

# PUT / PATCH : Update

# DELETE : Minimal (or even none)

JSON: The information will be encoded in JSON format.

Resources

Some examples of resources and end-points are:

People (/people)

DomiciliaryUnits (/domiciliary-units)

Institutions (/institutions)

Encounters (/encounters)

Events (/events)

PersonalDocs (/personal-documents)

Running Thalamus from a WSGI Container

In production settings, for performance reasons you should use a HTTP server. We have chosen Gunicorn , but you can use any WSGI server.

Gunicorn supports WSGI natively and it comes as Python package. We have included a very simple config file (etc/gunicorn.cfg) to run Thalamus from Gunicorn with SSL enabled.

For example, you can run the Thalamus application from Gunicorn as follows

>>> gunicorn --config etc/gunicorn.cfg thalamus:app

Development

Thalamus is part of the GNU Health project.

The development will be done on GNU Savannah, using the Mercurial repository.

Tasks, bugs and mailing lists will be on health-dev@gnu.org , for development.

General questions can be done on health@gnu.org mailing list.

You can visit http://health.gnu.org

Release Cycle

Thalamus will follow its own release process, independent from GNU Health HMIS.

Packaging

There will be a tarball, as well as a Python package (pypi)

Author:

Luis Falcon <lfalcon@gnusolidario.org>

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thalamus-0.0.1.tar.gz (42.2 kB view details)

Uploaded Source

File details

Details for the file thalamus-0.0.1.tar.gz.

File metadata

  • Download URL: thalamus-0.0.1.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for thalamus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9156e6bd626388a7acea604d0ac232a597a79836151a6632f79e3d4819249fb7
MD5 b28d6d044feb560ddd49f5a1b6b950b9
BLAKE2b-256 f927d2981212ff662d17389eb5e0c1bd12ac6b5f34addd1a2c2a4a59431d4dd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page