Project

General

Profile

Download (4.82 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / dossiers / urls.py @ 6188a681

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
        patientrecord_waiting_queue,
33
        create_directory,
34
        prescription_transport,
35
        new_protection,
36
        update_protection,
37
        delete_protection)
38
from forms import EditPatientRecordForm
39

    
40
urlpatterns = patterns('',
41
        url(r'^$', patientrecord_home),
42
        url(r'^quotations$', patientrecord_quotations),
43
        url(r'^waiting-queue$', patientrecord_waiting_queue),
44
        url(r'^new$', new_patient_record),
45
        url(r'^(?P<pk>\d+)/view$', patient_record),
46
        url(r'^(?P<pk>\d+)/delete$', patientrecord_delete),
47
        url(r'^(?P<pk>\d+)/update/paper_id$', update_paper_id),
48
        url(r'^(?P<patientrecord_id>\d+)/update-state$', state_form),
49
        url(r'^(?P<patientrecord_id>\d+)/address/new$', new_patient_address),
50
        url(r'^(?P<patientrecord_id>\d+)/address/(?P<pk>\d+)/update$', update_patient_address),
51
        url(r'^(?P<patientrecord_id>\d+)/address/(?P<pk>\d+)/del$', delete_patient_address),
52
        url(r'^(?P<patientrecord_id>\d+)/contact/new$', new_patient_contact),
53
        url(r'^(?P<patientrecord_id>\d+)/contact/(?P<pk>\d+)/update$', update_patient_contact),
54
        url(r'^(?P<patientrecord_id>\d+)/contact/(?P<pk>\d+)/del$', delete_patient_contact),
55
        url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/new$', new_healthcare_treatment),
56
        url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/(?P<pk>\d+)/update$', update_healthcare_treatment),
57
        url(r'^(?P<patientrecord_id>\d+)/healthcare_treatment/(?P<pk>\d+)/del$', delete_healthcare_treatment),
58
        url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/new$', new_healthcare_diagnostic),
59
        url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/(?P<pk>\d+)/update$', update_healthcare_diagnostic),
60
        url(r'^(?P<patientrecord_id>\d+)/healthcare_diagnostic/(?P<pk>\d+)/del$', delete_healthcare_diagnostic),
61
        url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/new$', new_healthcare_notification),
62
        url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/(?P<pk>\d+)/update$', update_healthcare_notification),
63
        url(r'^(?P<patientrecord_id>\d+)/healthcare_notification/(?P<pk>\d+)/del$', delete_healthcare_notification),
64
        url(r'^(?P<patientrecord_id>\d+)/socialisation/new$', new_socialisation_duration),
65
        url(r'^(?P<patientrecord_id>\d+)/socialisation/(?P<pk>\d+)/update$', update_socialisation_duration),
66
        url(r'^(?P<patientrecord_id>\d+)/socialisation/(?P<pk>\d+)/del$', delete_socialisation_duration),
67
        url(r'^(?P<patientrecord_id>\d+)/state/(?P<pk>\d+)/update$', update_patient_state),
68
        url(r'^(?P<patientrecord_id>\d+)/state/(?P<pk>\d+)/del$', delete_patient_state),
69
        url(r'^(?P<patientrecord_id>\d+)/mdph_request/new$', new_mdph_request),
70
        url(r'^(?P<patientrecord_id>\d+)/mdph_request/(?P<pk>\d+)/update$', update_mdph_request),
71
        url(r'^(?P<patientrecord_id>\d+)/mdph_request/(?P<pk>\d+)/del$', delete_mdph_request),
72
        url(r'^(?P<patientrecord_id>\d+)/mdph_response/new$', new_mdph_response),
73
        url(r'^(?P<patientrecord_id>\d+)/mdph_response/(?P<pk>\d+)/update$', update_mdph_response),
74
        url(r'^(?P<patientrecord_id>\d+)/mdph_response/(?P<pk>\d+)/del$', delete_mdph_response),
75
        url(r'^(?P<patientrecord_id>\d+)/generate$', generate_rtf_form),
76
        url(r'^(?P<patientrecord_id>\d+)/create-directory$', create_directory),
77
        url(r'^(?P<patientrecord_id>\d+)/prescription-transport$', prescription_transport),
78
        url(r'^(?P<patientrecord_id>\d+)/protection/new$', new_protection),
79
        url(r'^(?P<patientrecord_id>\d+)/protection/(?P<pk>\d+)/update$', update_protection),
80
        url(r'^(?P<patientrecord_id>\d+)/protection/(?P<pk>\d+)/del$', delete_protection),)
(10-10/11)