Skip to content

Commit

Permalink
changes the urls so that episode/patient are optional as part of the …
Browse files Browse the repository at this point in the history
…regular expression
  • Loading branch information
fredkingham committed Dec 20, 2018
1 parent b2ba01c commit 3869b1e
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions opal/core/pathway/urls.py
Expand Up @@ -16,23 +16,7 @@
views.PathwayTemplateView.as_view(), name="pathway_template"
),
url(
r'^pathway/detail/{}$'.format(PATHWAY_REGEX),
api.PathwayApi.as_view({
'post': 'create',
'get': 'retrieve'
}),
name="pathway"
),
url(
r'^pathway/detail/{0}/{1}$'.format(PATHWAY_REGEX, PATIENT_ID_REGEX),
api.PathwayApi.as_view({
'post': 'create',
'get': 'retrieve'
}),
name="pathway"
),
url(
r'^pathway/detail/{0}/{1}/{2}$'.format(
r'^pathway/detail/{0}(?:/{1})?(?:/{2})?$'.format(
PATHWAY_REGEX, PATIENT_ID_REGEX, EPISODE_ID_REGEX
),
api.PathwayApi.as_view({
Expand Down

0 comments on commit 3869b1e

Please sign in to comment.