Skip to content

Commit

Permalink
Merge pull request #126 from openhealthcare/v0.2.0
Browse files Browse the repository at this point in the history
V0.2.0
  • Loading branch information
fredkingham committed Feb 6, 2017
2 parents 4803338 + d1406eb commit de20065
Show file tree
Hide file tree
Showing 12 changed files with 935 additions and 77 deletions.
916 changes: 916 additions & 0 deletions elcid/migrations/0001_initial.py

Large diffs are not rendered by default.

Empty file added elcid/migrations/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion elcid/pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class AddPatientPathway(SaveTaggingMixin, RedirectsToEpisodeMixin, WizardPathway
Step(
model=models.Location,
template_url="/templates/pathway/blood_culture_location.html",
controller_class="BloodCulturePathwayFormCtrl"
),
)

@transaction.atomic
def save(self, data, *args, **kwargs):
"""
saves the patient.
Expand Down
3 changes: 1 addition & 2 deletions elcid/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
AUTOCOMPLETE_SEARCH = False

ADMINS = (
('David Miller', 'david@openhealthcare.org.uk'),
('Fred Kingham', 'fred.kingham@openhealthcare.org.uk'),
('Support', 'support@openhealthcare.org.uk',),
)

MANAGERS = ADMINS
Expand Down
31 changes: 5 additions & 26 deletions elcid/templates/acceptance/adt/adding_patients.feature
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@
As a Doctor
I need to add patients to my team's list
So that I can care for them on my ward
I need to be able to add patients
So that I can comment on their issues

Given that I am on the ID Inpatients list
Given that I am on the Hepatology list
When I click Add Patient
When I enter a new Patient
Then that patient is added to the ID Inpatients list

As a Doctor
I need to collect patient symptoms on admission
So that I can care for them on my ward

Given that I am on the ID Inpatients list
When I click Add Patient
Then I should be asked to enter a patient's symptoms, I should be able to enter
multiple symptoms and synonyms.
Then if my symptom is not on the list, I should be prompted (and able) to enter
it in the details text box

As a Doctor
I need to add patients to multiple lists
So that we can share the care of patients while managing our own workloads

Given that a patient on the ID Inpatients list
Given that I am on the Virology list
When I click Add Patient
When I enter the patient's hospital number
Then that patient is added to the Virology list
Then that patient is tagged to both Virology and ID Inpatients
Then that patient is added to the Hepatology list
I should be able to see their name, hospital number and date of birth
6 changes: 6 additions & 0 deletions elcid/templates/acceptance/appearance/banner.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
As a User
I need to know what version of the service I'm using
So that I understand whether this is a test instance, or the live service

Given that I am looking at elCID
Then the banner should read elCID $version

This file was deleted.

12 changes: 0 additions & 12 deletions elcid/templates/acceptance/epics/epic.feature

This file was deleted.

10 changes: 0 additions & 10 deletions elcid/templates/acceptance/microhaem/clinical_advice.feature

This file was deleted.

9 changes: 0 additions & 9 deletions elcid/templates/acceptance/opat/outcomes.feature

This file was deleted.

6 changes: 3 additions & 3 deletions elcid/templates/pathway/blood_culture.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div ng-show="$index">
<h3>Blood Culture [[ $index + 1]]</h3>
</div>
{% datepicker label="Date Ordered" model="bloodCulture.date_ordered" %}
{% input label="Source" model="bloodCulture.source" lookuplist="bloodculturesource_list" %}
{% input label="Lab Number" model="bloodCulture.lab_number" %}
{% datepicker element_name="'blood_culture_date_ordered' + $index" label="Date Ordered" model="bloodCulture.date_ordered" %}
{% input label="Source" element_name="'blood_culture_source' + $index" model="bloodCulture.source" lookuplist="bloodculturesource_list" %}
{% input label="Lab Number" element_name="'blood_culture_lab_number' + $index" model="bloodCulture.lab_number" %}
<div ng-repeat="aerobic in [true, false]">
<div class="row text-center content-offset-25">
<h3 ng-show="aerobic">Aerobic</h3>
Expand Down
7 changes: 3 additions & 4 deletions elcid/templates/stories.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% extends 'accepting.html' %}
{% load stories %}

{% block stories %}
{% story 'Epics' 'acceptance/epics' %}

{% endblock %}
{% story 'Appearance' 'acceptance/appearance' %}
{% story 'Admission, Discharge & Transfer' 'acceptance/adt' %}
{% endblock stories %}

0 comments on commit de20065

Please sign in to comment.