Skip to content

Commit

Permalink
adds a basic add patient pathway to the scaffold for when you create …
Browse files Browse the repository at this point in the history
…a new app
  • Loading branch information
fredkingham committed Aug 19, 2019
1 parent 934728b commit 3d679c0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions opal/scaffolding/scaffold/app/__init__.py.jinja2
Expand Up @@ -2,9 +2,21 @@
{{ name }} - Our Opal Application
"""
from opal.core import application
from opal.core import menus

class Application(application.OpalApplication):
javascripts = [
'js/{{ name }}/routes.js',
'js/opal/controllers/discharge.js'
]

menuitems = [
menus.MenuItem(
href='/pathway/#/add_patient',
display='Add Patient',
icon='fa fa-plus',
activepattern='/pathway/#/add_patient'
)
]


12 changes: 12 additions & 0 deletions opal/scaffolding/scaffold/app/pathways.py.jinja2
@@ -0,0 +1,12 @@
from opal.core.pathway import PagePathway
from {{ name }} import models


class AddPatient(PagePathway):
display_name = "Add Patient"
slug = "add_patient"
icon = 'fa-plus'

steps = [
models.Demographics
]

0 comments on commit 3d679c0

Please sign in to comment.