1
|
from django.conf.urls import patterns, url
|
2
|
|
3
|
from calebasse.cbv import ListView, CreateView, DeleteView, UpdateView
|
4
|
|
5
|
from models import PatientRecord
|
6
|
from views import (patientrecord_home, patient_record, state_form,
|
7
|
new_patient_record, patientrecord_delete, new_patient_contact,
|
8
|
new_patient_address, delete_patient_contact, delete_patient_address,
|
9
|
update_paper_id, update_patient_address, update_patient_contact,
|
10
|
new_healthcare_treatment,
|
11
|
update_healthcare_treatment,
|
12
|
delete_healthcare_treatment,
|
13
|
new_healthcare_diagnostic,
|
14
|
update_healthcare_diagnostic,
|
15
|
delete_healthcare_diagnostic,
|
16
|
new_healthcare_notification,
|
17
|
update_healthcare_notification,
|
18
|
delete_healthcare_notification,
|
19
|
new_socialisation_duration,
|
20
|
update_socialisation_duration,
|
21
|
delete_socialisation_duration,
|
22
|
update_patient_state,
|
23
|
delete_patient_state,
|
24
|
new_mdph_request,
|
25
|
update_mdph_request,
|
26
|
delete_mdph_request,
|
27
|
new_mdph_response,
|
28
|
update_mdph_response,
|
29
|
delete_mdph_response,
|
30
|
generate_rtf_form,
|
31
|
patientrecord_quotations,
|
32
|
create_directory)
|
33
|
from forms import EditPatientRecordForm
|
34
|
|
35
|
urlpatterns = patterns('',
|
36
|
url(r'^$', patientrecord_home),
|
37
|
url(r'^quotations$', patientrecord_quotations),
|
38
|
url(r'^new$', new_patient_record),
|
39
|
url(r'^(?P<pk>\d+)/view$', patient_record),
|
40
|
url(r'^(?P<pk>\d+)/delete$', patientrecord_delete),
|
41
|
url(r'^(?P<pk>\d+)/update/paper_id$', update_paper_id),
|
42
|
url(r'^(?P<patientrecord_id>\d+)/update-state$', state_form),
|
43
|
url(r'^(?P<patientrecord_id>\d+)/address/new$', new_patient_address),
|
44
|
url(r'^(?P<patientrecord_id>\d+)/address/(?P<pk>\d+)/update$', update_patient_address),
|
45
|
url(r'^(?P<patientrecord_id>\d+)/address/(?P<pk>\d+)/del$', delete_patient_address),
|
46
|
url(r'^(?P<patientrecord_id>\d+)/contact/new$', new_patient_contact),
|
47
|
url(r'^(?P<patientrecord_id>\d+)/contact/(?P<pk>\d+)/update$', update_patient_contact),
|
48
|
url(r'^(?P<patientrecord_id>\d+)/contact/(?P<pk>\d+)/del$', delete_patient_contact),
|
49
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/new$', new_healthcare_treatment),
|
50
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/(?P<pk>\d+)/update$', update_healthcare_treatment),
|
51
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/(?P<pk>\d+)/del$', delete_healthcare_treatment),
|
52
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/new$', new_healthcare_diagnostic),
|
53
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/(?P<pk>\d+)/update$', update_healthcare_diagnostic),
|
54
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/(?P<pk>\d+)/del$', delete_healthcare_diagnostic),
|
55
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/new$', new_healthcare_notification),
|
56
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/(?P<pk>\d+)/update$', update_healthcare_notification),
|
57
|
url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/(?P<pk>\d+)/del$', delete_healthcare_notification),
|
58
|
url(r'^(?P<patientrecord_id>\d+)/socialisation/new$', new_socialisation_duration),
|
59
|
url(r'^(?P<patientrecord_id>\d+)/socialisation/(?P<pk>\d+)/update$', update_socialisation_duration),
|
60
|
url(r'^(?P<patientrecord_id>\d+)/socialisation/(?P<pk>\d+)/del$', delete_socialisation_duration),
|
61
|
url(r'^(?P<patientrecord_id>\d+)/state/(?P<pk>\d+)/update$', update_patient_state),
|
62
|
url(r'^(?P<patientrecord_id>\d+)/state/(?P<pk>\d+)/del$', delete_patient_state),
|
63
|
url(r'^(?P<patientrecord_id>\d+)/mdph_request/new$', new_mdph_request),
|
64
|
url(r'^(?P<patientrecord_id>\d+)/mdph_request/(?P<pk>\d+)/update$', update_mdph_request),
|
65
|
url(r'^(?P<patientrecord_id>\d+)/mdph_request/(?P<pk>\d+)/del$', delete_mdph_request),
|
66
|
url(r'^(?P<patientrecord_id>\d+)/mdph_response/new$', new_mdph_response),
|
67
|
url(r'^(?P<patientrecord_id>\d+)/mdph_response/(?P<pk>\d+)/update$', update_mdph_response),
|
68
|
url(r'^(?P<patientrecord_id>\d+)/mdph_response/(?P<pk>\d+)/del$', delete_mdph_response),
|
69
|
url(r'^(?P<patientrecord_id>\d+)/generate$', generate_rtf_form),
|
70
|
url(r'^(?P<patientrecord_id>\d+)/create-directory$', create_directory),
|
71
|
)
|