Project

General

Profile

« Previous | Next » 

Revision 0c0dd2ce

Added by Jérôme Schneider over 12 years ago

Add fixtures with data for agenda

View differences:

calebasse/cale_base/fixtures/actes.json
1
[
2
  {
3
    "pk": 1, 
4
    "model": "actes.act", 
5
    "fields": {
6
      "act_type": 1, 
7
      "patient": 8, 
8
      "transport_type": null, 
9
      "transport_company": null, 
10
      "doctors": [], 
11
      "date": "2012-10-30T00:00:00", 
12
      "validated": false
13
    }
14
  }, 
15
  {
16
    "pk": 2, 
17
    "model": "actes.act", 
18
    "fields": {
19
      "act_type": 1, 
20
      "patient": 9, 
21
      "transport_type": null, 
22
      "transport_company": null, 
23
      "doctors": [], 
24
      "date": "2012-10-30T00:00:00", 
25
      "validated": false
26
    }
27
  }, 
28
  {
29
    "pk": 1, 
30
    "model": "actes.eventact", 
31
    "fields": {
32
      "attendance": "absent", 
33
      "participants": [
34
        5
35
      ], 
36
      "doctors": [], 
37
      "services": [
38
        1
39
      ], 
40
      "event_ptr": 1, 
41
      "convocation_sent": false
42
    }
43
  }, 
44
  {
45
    "pk": 2, 
46
    "model": "actes.eventact", 
47
    "fields": {
48
      "attendance": "absent", 
49
      "participants": [
50
        5
51
      ], 
52
      "doctors": [], 
53
      "services": [
54
        1
55
      ], 
56
      "event_ptr": 2, 
57
      "convocation_sent": false
58
    }
59
  }
60
]
calebasse/cale_base/fixtures/agenda.json
1
[
2
  {
3
    "pk": 1, 
4
    "model": "agenda.eventtype", 
5
    "fields": {
6
      "label": "patient_appointment"
7
    }
8
  }, 
9
  {
10
    "pk": 2, 
11
    "model": "agenda.eventtype", 
12
    "fields": {
13
      "label": "meeting"
14
    }
15
  }, 
16
  {
17
    "pk": 3, 
18
    "model": "agenda.event", 
19
    "fields": {
20
      "event_type": 2, 
21
      "services": [
22
        1, 
23
        2
24
      ], 
25
      "participants": [], 
26
      "description": "", 
27
      "title": "R\u00e9union"
28
    }
29
  }, 
30
  {
31
    "pk": 2, 
32
    "model": "agenda.event", 
33
    "fields": {
34
      "event_type": 1, 
35
      "services": [
36
        1
37
      ], 
38
      "participants": [
39
        5
40
      ], 
41
      "description": "blabla bla bla", 
42
      "title": "rdv jack"
43
    }
44
  }, 
45
  {
46
    "pk": 1, 
47
    "model": "agenda.event", 
48
    "fields": {
49
      "event_type": 1, 
50
      "services": [
51
        1
52
      ], 
53
      "participants": [
54
        5
55
      ], 
56
      "description": "blabla", 
57
      "title": "rdv john doe"
58
    }
59
  }, 
60
  {
61
    "pk": 1, 
62
    "model": "agenda.occurrence", 
63
    "fields": {
64
      "start_time": "2012-10-30T10:00:00", 
65
      "room": null, 
66
      "end_time": "2012-10-30T10:30:00", 
67
      "event": 1
68
    }
69
  }, 
70
  {
71
    "pk": 2, 
72
    "model": "agenda.occurrence", 
73
    "fields": {
74
      "start_time": "2012-10-30T10:45:00", 
75
      "room": null, 
76
      "end_time": "2012-10-30T11:00:00", 
77
      "event": 2
78
    }
79
  }, 
80
  {
81
    "pk": 3, 
82
    "model": "agenda.occurrence", 
83
    "fields": {
84
      "start_time": "2012-10-30T11:30:00", 
85
      "room": null, 
86
      "end_time": "2012-10-30T12:00:00", 
87
      "event": 3
88
    }
89
  }
90
]
calebasse/cale_base/fixtures/dossiers.json
1
[
2
  {
3
    "pk": 8, 
4
    "model": "dossiers.patientrecord", 
5
    "fields": {
6
      "service": 1, 
7
      "contacts": [
8
        1, 
9
        2, 
10
        3, 
11
        4
12
      ]
13
    }
14
  }, 
15
  {
16
    "pk": 9, 
17
    "model": "dossiers.patientrecord", 
18
    "fields": {
19
      "service": 1, 
20
      "contacts": [
21
        1, 
22
        2, 
23
        3, 
24
        4
25
      ]
26
    }
27
  }
28
]
calebasse/cale_base/fixtures/personnes.json
62 62
      "display_name": " Lepoulpe Pol"
63 63
    }
64 64
  }, 
65
  {
66
    "pk": 8, 
67
    "model": "personnes.people", 
68
    "fields": {
69
      "first_name": "John", 
70
      "last_name": "Doe", 
71
      "display_name": "John Doe"
72
    }
73
  }, 
74
  {
75
    "pk": 9, 
76
    "model": "personnes.people", 
77
    "fields": {
78
      "first_name": "Jack", 
79
      "last_name": "Itchan", 
80
      "display_name": "Jack Itchan"
81
    }
82
  }, 
65 83
  {
66 84
    "pk": 1, 
67 85
    "model": "personnes.worker", 
calebasse/cale_base/fixtures/ressources.json
1
[
2
  {
3
    "pk": 1, 
4
    "model": "ressources.office", 
5
    "fields": {
6
      "city": "Somwhere", 
7
      "fax": "", 
8
      "description": "", 
9
      "service": 1, 
10
      "slug": "CMPP_siege", 
11
      "phone": "", 
12
      "address": "30 rue du coup", 
13
      "zip_code": "3000", 
14
      "email": "", 
15
      "address_complement": ""
16
    }
17
  }, 
18
  {
19
    "pk": 1, 
20
    "model": "ressources.room", 
21
    "fields": {
22
      "etablissement": 1, 
23
      "name": "SK"
24
    }
25
  }, 
26
  {
27
    "pk": 2, 
28
    "model": "ressources.room", 
29
    "fields": {
30
      "etablissement": 1, 
31
      "name": "Salle 4"
32
    }
33
  }, 
34
  {
35
    "pk": 3, 
36
    "model": "ressources.room", 
37
    "fields": {
38
      "etablissement": 1, 
39
      "name": "test"
40
    }
41
  }, 
42
  {
43
    "pk": 1, 
44
    "model": "ressources.service", 
45
    "fields": {
46
      "fax": "", 
47
      "description": "", 
48
      "slug": "cmpp", 
49
      "phone": "", 
50
      "email": "", 
51
      "name": "CMPP"
52
    }
53
  }, 
54
  {
55
    "pk": 2, 
56
    "model": "ressources.service", 
57
    "fields": {
58
      "fax": "", 
59
      "description": "", 
60
      "slug": "camsp", 
61
      "phone": "", 
62
      "email": "", 
63
      "name": "CAMSP"
64
    }
65
  }, 
66
  {
67
    "pk": 3, 
68
    "model": "ressources.service", 
69
    "fields": {
70
      "fax": "", 
71
      "description": "", 
72
      "slug": "sessad-dys", 
73
      "phone": "", 
74
      "email": "", 
75
      "name": "SESSAD DYS"
76
    }
77
  }, 
78
  {
79
    "pk": 4, 
80
    "model": "ressources.service", 
81
    "fields": {
82
      "fax": "", 
83
      "description": "", 
84
      "slug": "sessad-ted", 
85
      "phone": "", 
86
      "email": "", 
87
      "name": "SESSAD TED"
88
    }
89
  }, 
90
  {
91
    "pk": 1, 
92
    "model": "ressources.acttype", 
93
    "fields": {
94
      "name": "CS", 
95
      "billable": true
96
    }
97
  }, 
98
  {
99
    "pk": 1, 
100
    "model": "ressources.workertype", 
101
    "fields": {
102
      "intervene": false, 
103
      "name": "Secr\u00e9taire"
104
    }
105
  }, 
106
  {
107
    "pk": 2, 
108
    "model": "ressources.workertype", 
109
    "fields": {
110
      "intervene": true, 
111
      "name": "Neuropsychiatre"
112
    }
113
  }, 
114
  {
115
    "pk": 3, 
116
    "model": "ressources.workertype", 
117
    "fields": {
118
      "intervene": true, 
119
      "name": "G\u00e9n\u00e9raliste"
120
    }
121
  }, 
122
  {
123
    "pk": 4, 
124
    "model": "ressources.workertype", 
125
    "fields": {
126
      "intervene": true, 
127
      "name": "Orthophonistes"
128
    }
129
  }
130
]

Also available in: Unified diff