videntity/django-monfhir

Name: django-monfhir

Owner: Videntity

Description: A Django-based FHIR server that uses MongoDB for FHIR resource storage

Forked from: TransparentHealth/django-monfhir

Created: 2017-05-15 13:54:56.0

Updated: 2017-05-15 13:54:58.0

Pushed: 2017-01-02 20:56:13.0

Homepage: null

Size: 33

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

django-monfhir

django-mongfhit is a “batteries included” FHIR server written in Django. This project is still in development. It should be considered alpha. CRUD interactions are functioning at this point.

Features include:

Monfhir is in deveelopment. Contributions/Pull requests welcome!

Installation

This is a reusable Django application so it should be attached to an existing Django project.

To install type the following in a shell:

git clone https://github.com/TransparentHealth/django-monfhir.git
pip install ./django-monfhir

Add “fhir” to your INSTALLED_APPS setting like this:

INSTALLED_APPS = (
    ...
    'monfhir',
)

Include the direct URLconf in your project urls.py like this:

url(r'^monfhir/', include('monfhir.urls')),

If you want to use oauth2, you need to be running hhs_oauth_server and then inlcude the urls like so:

url(r'^monfhir/', include('monfhir.oauth2_urls')),

Create your database tables by running migratre

python manage.py migrate

You must add ther resoutrces and interaction types you wish to support. This can be achieved via the Django admin. You can alSupport a couple resource types by adding them in the admin or using the following command to activate Practitioner and Organization. (You can also do this sort of thing via the Django admin.)

python manage.py loaddata [your download path]/django-monfhir/monfhir/fixtures/provider-directory-resources.json

Use the APIs. Visit http://127.0.0.1:8000/monfhir/hello to verify the installation.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.