openhealthcare/django-openehr

Name: django-openehr

Owner: Open Health Care

Description: experimental django models based on openehr archetypes

Created: 2018-01-17 17:23:24.0

Updated: 2018-03-16 12:25:09.0

Pushed: 2018-03-16 12:25:08.0

Homepage: null

Size: 113

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

django-openehr

PyPI version

Experimental | Not officially supported by OHCUK

supported_by_apperta_lores.png

Experimental Django models based on openEHR archetypes and distributed as a Python Package on PyPi, with an accompanying demo Django application, showing the implementation of a single openEHR Template as a Django Form composed of data fields from the correct underlying openEHR Archetypes, as defined in the Template on the UK Apperta Clinical Knowledge Manager

The intentions of the experiment are:

Templates included (in the demo app)

| Django Form | openEHR Template | |——|———-| | IDCR template | IDCR Transfer of Care summary (minimal).v0 |

Archetypes included

| Django Model | openEHR Archetype | | ————-| —————– | | models/address_details.py | openEHR-EHR-CLUSTER.address.v1 | | models/adverse_reaction.py | openEHR-EHR-EVALUATION.adverse_reaction_uk.v1 | | models/clinical_synopsis.py | openEHR-EHR-EVALUATION.clinical_synopsis.v1 | models/demographic_personal.py | openEHR-EHR-CLUSTER.individual_personal_uk.v1 | | models/demographic_professional.py | openEHR-EHR-CLUSTER.individual_professional_uk.v1 | | models/inpatient_admission.py | openEHR-EHR-ADMIN_ENTRY.inpatient_admission_uk.v1 | | models/person_name.py | openEHR-EHR-CLUSTER.person_name.v1 | | models/problem_diagnosis.py | openEHR-EHR-EVALUATION.problem_diagnosis.v1 | | models/reason_for_encounter.py | openEHR-EHR-EVALUATION.reason_for_encounter.v1 | | models/relevant_contact.py | openEHR-EHR-ADMIN_ENTRY.relevant_contact_rcp.v0 | | models/symptom_sign/py | openEHR-EHR-CLUSTER.symptom_sign.v1 | | models/telecom_details.py | openEHR-EHR-CLUSTER.telecom_uk.v1 | | models/therapeutic_direction.py | openEHR-EHR-CLUSTER.therapeutic_direction.v1 |

all data from each CKM archetype has been retained as comments in the respective Django model file

Reference Model artefacts converted

| Django Model | openEHR Reference Model artefact | |————–|———————————-| | DV_IDENTIFIER | models/identifier.py |

Method/Approach
Upstream Issues with Archetypes

Installation

Installing the package

add django_openehr to your requirements.txt file, and then run

install -r requirements.txt
Adding these models to an existing Django application
Interacting with the models using the Django shell

Contributing to this project

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.