quby-mongoid 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/gemfiles/mongoid2.gemfile +1 -1
- data/gemfiles/mongoid2.gemfile.lock +2 -2
- data/gemfiles/mongoid3.gemfile +1 -1
- data/gemfiles/mongoid3.gemfile.lock +2 -2
- data/gemfiles/mongoid4.gemfile +1 -1
- data/gemfiles/mongoid4.gemfile.lock +2 -2
- data/lib/quby/mongoid/version.rb +1 -1
- data/quby-mongoid.gemspec +1 -1
- data/spec/quby/answer_repos/mongoid_repo_spec.rb +3 -1
- data/spec/spec_helper.rb +2 -1
- metadata +6 -8
- data/spec/fixtures/big.rb +0 -377
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b49d047047305f6df43a6a2a322aa8e22d3b9c
|
4
|
+
data.tar.gz: 69362d3063e083aecfd1d6f4609649e7984d0030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff0b22b73f75b8f81b37580682dc1186b871ead292c4ab9b30a2931c5d58fe2c75c17572efb6e69c391c0960dacb077f7a169fa45fff4e8efae4b02d40a3be3
|
7
|
+
data.tar.gz: cdc905acb411d54fc6e7dc5a0b7b52f298cbb441873e151322741a8a297adc253b7fc3f6f5a8979a9731318858f6550543963d1810a4b9ad14934f23524d3c10
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
|
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
# Quby is not pushed to rubygems.org, so we specify its source here explicitly.
|
7
|
-
gem 'quby', git: 'git@github.com:roqua/quby_engine.git', ref: '
|
7
|
+
gem 'quby', git: 'git@github.com:roqua/quby_engine.git', ref: '68240b60ccdfa1f7975c13f0caec7780e9cce742'
|
8
8
|
# gem 'quby', path: '../quby'
|
9
9
|
|
10
10
|
gem 'appraisal', '1.0.0.beta3'
|
data/gemfiles/mongoid2.gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"
|
5
|
+
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"68240b60ccdfa1f7975c13f0caec7780e9cce742"
|
6
6
|
gem "appraisal", "1.0.0.beta3"
|
7
7
|
gem "mongoid", "~> 2.8"
|
8
8
|
gem "bson_ext"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:roqua/quby_engine.git
|
3
|
-
revision:
|
4
|
-
ref:
|
3
|
+
revision: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
4
|
+
ref: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
5
5
|
specs:
|
6
6
|
quby (1.0.0)
|
7
7
|
addressable
|
data/gemfiles/mongoid3.gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"
|
5
|
+
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"68240b60ccdfa1f7975c13f0caec7780e9cce742"
|
6
6
|
gem "appraisal", "1.0.0.beta3"
|
7
7
|
gem "mongoid", "~> 3.0"
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:roqua/quby_engine.git
|
3
|
-
revision:
|
4
|
-
ref:
|
3
|
+
revision: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
4
|
+
ref: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
5
5
|
specs:
|
6
6
|
quby (1.0.0)
|
7
7
|
addressable
|
data/gemfiles/mongoid4.gemfile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"
|
5
|
+
gem "quby", :git=>"git@github.com:roqua/quby_engine.git", :ref=>"68240b60ccdfa1f7975c13f0caec7780e9cce742"
|
6
6
|
gem "appraisal", "1.0.0.beta3"
|
7
7
|
gem "mongoid", "~> 4.0.0.beta1"
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:roqua/quby_engine.git
|
3
|
-
revision:
|
4
|
-
ref:
|
3
|
+
revision: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
4
|
+
ref: 68240b60ccdfa1f7975c13f0caec7780e9cce742
|
5
5
|
specs:
|
6
6
|
quby (1.0.0)
|
7
7
|
addressable
|
data/lib/quby/mongoid/version.rb
CHANGED
data/quby-mongoid.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'quby'
|
21
|
+
spec.add_dependency 'quby', '~> 1.0'
|
22
22
|
spec.add_dependency "mongoid", ">= 2.2", '< 5.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'quby/answer_repos/specs'
|
3
|
+
require 'quby/api/specs/answers_api_specs'
|
3
4
|
|
4
5
|
describe Quby::AnswerRepos::MongoidRepo do
|
5
|
-
it_behaves_like
|
6
|
+
it_behaves_like 'an answer repository'
|
7
|
+
it_behaves_like 'a valid backend for the answers api'
|
6
8
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,8 @@ ENV["RACK_ENV"] = "test"
|
|
3
3
|
ENV["MONGOID_ENV"] = "test"
|
4
4
|
|
5
5
|
require 'quby/mongoid'
|
6
|
-
Quby.questionnaires_path =
|
6
|
+
Quby.questionnaires_path = Quby.fixtures_path
|
7
|
+
Quby.answer_repo = Quby::AnswerRepos::MongoidRepo.new
|
7
8
|
|
8
9
|
require 'mongoid'
|
9
10
|
if ::Mongoid::VERSION > '4'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quby-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: quby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mongoid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,6 @@ files:
|
|
157
157
|
- lib/quby/mongoid/version.rb
|
158
158
|
- quby-mongoid.gemspec
|
159
159
|
- rubocop-todo.yml
|
160
|
-
- spec/fixtures/big.rb
|
161
160
|
- spec/quby/answer_repos/mongoid_repo_spec.rb
|
162
161
|
- spec/spec_helper.rb
|
163
162
|
homepage: ''
|
@@ -185,6 +184,5 @@ signing_key:
|
|
185
184
|
specification_version: 4
|
186
185
|
summary: Mongoid database adapter for the Quby questionnaire engine
|
187
186
|
test_files:
|
188
|
-
- spec/fixtures/big.rb
|
189
187
|
- spec/quby/answer_repos/mongoid_repo_spec.rb
|
190
188
|
- spec/spec_helper.rb
|
data/spec/fixtures/big.rb
DELETED
@@ -1,377 +0,0 @@
|
|
1
|
-
title "Grote Vragenlijst"
|
2
|
-
short_description "Een vragenlijst met een heleboel vragen"
|
3
|
-
description ""
|
4
|
-
outcome_description ""
|
5
|
-
|
6
|
-
abortable
|
7
|
-
enable_previous_questionnaire_button
|
8
|
-
allow_hotkeys :all
|
9
|
-
|
10
|
-
css "#content .paged .panel .item.text { margin-bottom: -18px !important; margin-top: 36px !important;}
|
11
|
-
#content .paged .panel .item.text p { margin-bottom: 0; }"
|
12
|
-
|
13
|
-
default_question_options :score_header => :description, :show_values => true, :deselectable => true
|
14
|
-
|
15
|
-
panel do
|
16
|
-
title "Heel Veel Vragen (HVV)"
|
17
|
-
|
18
|
-
text "*Positieve Schaal*"
|
19
|
-
table :columns => 7 do
|
20
|
-
question :v_6, :type => :radio do
|
21
|
-
title "P1 Waanvoorstellingen"
|
22
|
-
description ""
|
23
|
-
option :a1, :value => 1, :description => "afwezig"
|
24
|
-
option :a2, :value => 2, :description => "minimaal"
|
25
|
-
option :a3, :value => 3, :description => "licht"
|
26
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
27
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
28
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
29
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
30
|
-
end
|
31
|
-
question :v_7, :type => :radio do
|
32
|
-
title "P2 Conceptuele desorganisatie"
|
33
|
-
description ""
|
34
|
-
option :a1, :value => 1, :description => "afwezig"
|
35
|
-
option :a2, :value => 2, :description => "minimaal"
|
36
|
-
option :a3, :value => 3, :description => "licht"
|
37
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
38
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
39
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
40
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
41
|
-
end
|
42
|
-
question :v_8, :type => :radio do
|
43
|
-
title "P3 Hallucinatoir gedrag"
|
44
|
-
description ""
|
45
|
-
option :a1, :value => 1, :description => "afwezig"
|
46
|
-
option :a2, :value => 2, :description => "minimaal"
|
47
|
-
option :a3, :value => 3, :description => "licht"
|
48
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
49
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
50
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
51
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
52
|
-
end
|
53
|
-
question :v_9, :type => :radio do
|
54
|
-
title "P4 Opwinding"
|
55
|
-
description ""
|
56
|
-
option :a1, :value => 1, :description => "afwezig"
|
57
|
-
option :a2, :value => 2, :description => "minimaal"
|
58
|
-
option :a3, :value => 3, :description => "licht"
|
59
|
-
option :a4, :value => 4, :description => "matig"
|
60
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
61
|
-
option :a6, :value => 6, :description => "ernstig"
|
62
|
-
option :a7, :value => 7, :description => "extreem"
|
63
|
-
end
|
64
|
-
question :v_10, :type => :radio do
|
65
|
-
title "P5 Pompeusheid"
|
66
|
-
description ""
|
67
|
-
option :a1, :value => 1, :description => "afwezig"
|
68
|
-
option :a2, :value => 2, :description => "minimaal"
|
69
|
-
option :a3, :value => 3, :description => "licht"
|
70
|
-
option :a4, :value => 4, :description => "matig"
|
71
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
72
|
-
option :a6, :value => 6, :description => "ernstig"
|
73
|
-
option :a7, :value => 7, :description => "extreem"
|
74
|
-
end
|
75
|
-
question :v_11, :type => :radio do
|
76
|
-
title "P6 Achterdocht/ achtervolgingswaan"
|
77
|
-
description ""
|
78
|
-
option :a1, :value => 1, :description => "afwezig"
|
79
|
-
option :a2, :value => 2, :description => "minimaal"
|
80
|
-
option :a3, :value => 3, :description => "licht"
|
81
|
-
option :a4, :value => 4, :description => "matig"
|
82
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
83
|
-
option :a6, :value => 6, :description => "ernstig"
|
84
|
-
option :a7, :value => 7, :description => "extreem"
|
85
|
-
end
|
86
|
-
question :v_12, :type => :radio do
|
87
|
-
title "P7 Vijandigheid"
|
88
|
-
description ""
|
89
|
-
option :a1, :value => 1, :description => "afwezig"
|
90
|
-
option :a2, :value => 2, :description => "minimaal"
|
91
|
-
option :a3, :value => 3, :description => "licht"
|
92
|
-
option :a4, :value => 4, :description => "matig"
|
93
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
94
|
-
option :a6, :value => 6, :description => "ernstig"
|
95
|
-
option :a7, :value => 7, :description => "extreem"
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
text "*Negatieve Schaal*"
|
100
|
-
table :columns => 7 do
|
101
|
-
question :v_20, :type => :radio do
|
102
|
-
title "N1 Afgestompt gevoel"
|
103
|
-
description ""
|
104
|
-
option :a1, :value => 1, :description => "afwezig"
|
105
|
-
option :a2, :value => 2, :description => "minimaal"
|
106
|
-
option :a3, :value => 3, :description => "licht"
|
107
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
108
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
109
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
110
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
111
|
-
end
|
112
|
-
question :v_21, :type => :radio do
|
113
|
-
title "N2 Emotionele teruggetrokkenheid"
|
114
|
-
description ""
|
115
|
-
option :a1, :value => 1, :description => "afwezig"
|
116
|
-
option :a2, :value => 2, :description => "minimaal"
|
117
|
-
option :a3, :value => 3, :description => "licht"
|
118
|
-
option :a4, :value => 4, :description => "matig"
|
119
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
120
|
-
option :a6, :value => 6, :description => "ernstig"
|
121
|
-
option :a7, :value => 7, :description => "extreem"
|
122
|
-
end
|
123
|
-
question :v_22, :type => :radio do
|
124
|
-
title "N3 Contactgestoordheid"
|
125
|
-
description ""
|
126
|
-
option :a1, :value => 1, :description => "afwezig"
|
127
|
-
option :a2, :value => 2, :description => "minimaal"
|
128
|
-
option :a3, :value => 3, :description => "licht"
|
129
|
-
option :a4, :value => 4, :description => "matig"
|
130
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
131
|
-
option :a6, :value => 6, :description => "ernstig"
|
132
|
-
option :a7, :value => 7, :description => "extreem"
|
133
|
-
end
|
134
|
-
question :v_23, :type => :radio do
|
135
|
-
title "N4 Passieve/ apathische sociale teruggetrokkenheid"
|
136
|
-
description ""
|
137
|
-
option :a1, :value => 1, :description => "afwezig"
|
138
|
-
option :a2, :value => 2, :description => "minimaal"
|
139
|
-
option :a3, :value => 3, :description => "licht"
|
140
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
141
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
142
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
143
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
144
|
-
end
|
145
|
-
question :v_24, :type => :radio do
|
146
|
-
title "N5 Moeilijkheden bij het abstract denken"
|
147
|
-
description ""
|
148
|
-
option :a1, :value => 1, :description => "afwezig"
|
149
|
-
option :a2, :value => 2, :description => "minimaal"
|
150
|
-
option :a3, :value => 3, :description => "licht"
|
151
|
-
option :a4, :value => 4, :description => "matig"
|
152
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
153
|
-
option :a6, :value => 6, :description => "ernstig"
|
154
|
-
option :a7, :value => 7, :description => "extreem"
|
155
|
-
end
|
156
|
-
question :v_25, :type => :radio do
|
157
|
-
title "N6 Gebrek aan spontaniteit en conversabiliteit"
|
158
|
-
description ""
|
159
|
-
option :a1, :value => 1, :description => "afwezig"
|
160
|
-
option :a2, :value => 2, :description => "minimaal"
|
161
|
-
option :a3, :value => 3, :description => "licht"
|
162
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
163
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
164
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
165
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
166
|
-
end
|
167
|
-
question :v_26, :type => :radio do
|
168
|
-
title "N7 Stereotiep denkpatroon"
|
169
|
-
description ""
|
170
|
-
option :a1, :value => 1, :description => "afwezig"
|
171
|
-
option :a2, :value => 2, :description => "minimaal"
|
172
|
-
option :a3, :value => 3, :description => "licht"
|
173
|
-
option :a4, :value => 4, :description => "matig"
|
174
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
175
|
-
option :a6, :value => 6, :description => "ernstig"
|
176
|
-
option :a7, :value => 7, :description => "extreem"
|
177
|
-
end
|
178
|
-
end
|
179
|
-
text "*Algemene Psychopathologie Schaal*"
|
180
|
-
table :columns => 7 do
|
181
|
-
question :v_34, :type => :radio do
|
182
|
-
title "G1 Somatische bezorgdheid"
|
183
|
-
description ""
|
184
|
-
option :a1, :value => 1, :description => "afwezig"
|
185
|
-
option :a2, :value => 2, :description => "minimaal"
|
186
|
-
option :a3, :value => 3, :description => "licht"
|
187
|
-
option :a4, :value => 4, :description => "matig"
|
188
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
189
|
-
option :a6, :value => 6, :description => "ernstig"
|
190
|
-
option :a7, :value => 7, :description => "extreem"
|
191
|
-
end
|
192
|
-
question :v_35, :type => :radio do
|
193
|
-
title "G2 Angst"
|
194
|
-
description ""
|
195
|
-
option :a1, :value => 1, :description => "afwezig"
|
196
|
-
option :a2, :value => 2, :description => "minimaal"
|
197
|
-
option :a3, :value => 3, :description => "licht"
|
198
|
-
option :a4, :value => 4, :description => "matig"
|
199
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
200
|
-
option :a6, :value => 6, :description => "ernstig"
|
201
|
-
option :a7, :value => 7, :description => "extreem"
|
202
|
-
end
|
203
|
-
question :v_36, :type => :radio do
|
204
|
-
title "G3 Schuldgevoelens"
|
205
|
-
description ""
|
206
|
-
option :a1, :value => 1, :description => "afwezig"
|
207
|
-
option :a2, :value => 2, :description => "minimaal"
|
208
|
-
option :a3, :value => 3, :description => "licht"
|
209
|
-
option :a4, :value => 4, :description => "matig"
|
210
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
211
|
-
option :a6, :value => 6, :description => "ernstig"
|
212
|
-
option :a7, :value => 7, :description => "extreem"
|
213
|
-
end
|
214
|
-
question :v_37, :type => :radio do
|
215
|
-
title "G4 Spanning"
|
216
|
-
description ""
|
217
|
-
option :a1, :value => 1, :description => "afwezig"
|
218
|
-
option :a2, :value => 2, :description => "minimaal"
|
219
|
-
option :a3, :value => 3, :description => "licht"
|
220
|
-
option :a4, :value => 4, :description => "matig"
|
221
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
222
|
-
option :a6, :value => 6, :description => "ernstig"
|
223
|
-
option :a7, :value => 7, :description => "extreem"
|
224
|
-
end
|
225
|
-
question :v_38, :type => :radio do
|
226
|
-
title "G5 Manierisme en poses"
|
227
|
-
description ""
|
228
|
-
option :a1, :value => 1, :description => "afwezig"
|
229
|
-
option :a2, :value => 2, :description => "minimaal"
|
230
|
-
option :a3, :value => 3, :description => "licht"
|
231
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
232
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
233
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
234
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
235
|
-
end
|
236
|
-
question :v_39, :type => :radio do
|
237
|
-
title "G6 Depressie"
|
238
|
-
description ""
|
239
|
-
option :a1, :value => 1, :description => "afwezig"
|
240
|
-
option :a2, :value => 2, :description => "minimaal"
|
241
|
-
option :a3, :value => 3, :description => "licht"
|
242
|
-
option :a4, :value => 4, :description => "matig"
|
243
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
244
|
-
option :a6, :value => 6, :description => "ernstig"
|
245
|
-
option :a7, :value => 7, :description => "extreem"
|
246
|
-
end
|
247
|
-
question :v_40, :type => :radio do
|
248
|
-
title "G7 Motorische retardatie"
|
249
|
-
description ""
|
250
|
-
option :a1, :value => 1, :description => "afwezig"
|
251
|
-
option :a2, :value => 2, :description => "minimaal"
|
252
|
-
option :a3, :value => 3, :description => "licht"
|
253
|
-
option :a4, :value => 4, :description => "matig"
|
254
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
255
|
-
option :a6, :value => 6, :description => "ernstig"
|
256
|
-
option :a7, :value => 7, :description => "extreem"
|
257
|
-
end
|
258
|
-
question :v_41, :type => :radio do
|
259
|
-
title "G8 Gebrek aan samenwerking"
|
260
|
-
description ""
|
261
|
-
option :a1, :value => 1, :description => "afwezig"
|
262
|
-
option :a2, :value => 2, :description => "minimaal"
|
263
|
-
option :a3, :value => 3, :description => "licht"
|
264
|
-
option :a4, :value => 4, :description => "matig"
|
265
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
266
|
-
option :a6, :value => 6, :description => "ernstig"
|
267
|
-
option :a7, :value => 7, :description => "extreem"
|
268
|
-
end
|
269
|
-
question :v_42, :type => :radio do
|
270
|
-
title "G9 Ongewone gedachteninhoud"
|
271
|
-
description ""
|
272
|
-
option :a1, :value => 1, :description => "afwezig"
|
273
|
-
option :a2, :value => 2, :description => "minimaal"
|
274
|
-
option :a3, :value => 3, :description => "licht"
|
275
|
-
option :a4, :value => 4, :description => "matig", :hides_questions => [:v_50]
|
276
|
-
option :a5, :value => 5, :description => "matig ernstig", :hides_questions => [:v_50]
|
277
|
-
option :a6, :value => 6, :description => "ernstig", :hides_questions => [:v_50]
|
278
|
-
option :a7, :value => 7, :description => "extreem", :hides_questions => [:v_50]
|
279
|
-
end
|
280
|
-
question :v_43, :type => :radio do
|
281
|
-
title "G10 Desorientatie"
|
282
|
-
description ""
|
283
|
-
option :a1, :value => 1, :description => "afwezig"
|
284
|
-
option :a2, :value => 2, :description => "minimaal"
|
285
|
-
option :a3, :value => 3, :description => "licht"
|
286
|
-
option :a4, :value => 4, :description => "matig"
|
287
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
288
|
-
option :a6, :value => 6, :description => "ernstig"
|
289
|
-
option :a7, :value => 7, :description => "extreem"
|
290
|
-
end
|
291
|
-
question :v_44, :type => :radio do
|
292
|
-
title "G11 Zwakke aandacht"
|
293
|
-
description ""
|
294
|
-
option :a1, :value => 1, :description => "afwezig"
|
295
|
-
option :a2, :value => 2, :description => "minimaal"
|
296
|
-
option :a3, :value => 3, :description => "licht"
|
297
|
-
option :a4, :value => 4, :description => "matig"
|
298
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
299
|
-
option :a6, :value => 6, :description => "ernstig"
|
300
|
-
option :a7, :value => 7, :description => "extreem"
|
301
|
-
end
|
302
|
-
question :v_45, :type => :radio do
|
303
|
-
title "G12 Zwak oordeel en inzicht"
|
304
|
-
description ""
|
305
|
-
option :a1, :value => 1, :description => "afwezig"
|
306
|
-
option :a2, :value => 2, :description => "minimaal"
|
307
|
-
option :a3, :value => 3, :description => "licht"
|
308
|
-
option :a4, :value => 4, :description => "matig"
|
309
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
310
|
-
option :a6, :value => 6, :description => "ernstig"
|
311
|
-
option :a7, :value => 7, :description => "extreem"
|
312
|
-
end
|
313
|
-
question :v_46, :type => :radio do
|
314
|
-
title "G13 Gestoorde wilskracht"
|
315
|
-
description ""
|
316
|
-
option :a1, :value => 1, :description => "afwezig"
|
317
|
-
option :a2, :value => 2, :description => "minimaal"
|
318
|
-
option :a3, :value => 3, :description => "licht"
|
319
|
-
option :a4, :value => 4, :description => "matig"
|
320
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
321
|
-
option :a6, :value => 6, :description => "ernstig"
|
322
|
-
option :a7, :value => 7, :description => "extreem"
|
323
|
-
end
|
324
|
-
question :v_47, :type => :radio do
|
325
|
-
title "G14 Zwakke beheersing van impulsen"
|
326
|
-
description ""
|
327
|
-
option :a1, :value => 1, :description => "afwezig"
|
328
|
-
option :a2, :value => 2, :description => "minimaal"
|
329
|
-
option :a3, :value => 3, :description => "licht"
|
330
|
-
option :a4, :value => 4, :description => "matig"
|
331
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
332
|
-
option :a6, :value => 6, :description => "ernstig"
|
333
|
-
option :a7, :value => 7, :description => "extreem"
|
334
|
-
end
|
335
|
-
question :v_48, :type => :radio do
|
336
|
-
title "G15 Preoccupatie"
|
337
|
-
description ""
|
338
|
-
option :a1, :value => 1, :description => "afwezig"
|
339
|
-
option :a2, :value => 2, :description => "minimaal"
|
340
|
-
option :a3, :value => 3, :description => "licht"
|
341
|
-
option :a4, :value => 4, :description => "matig"
|
342
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
343
|
-
option :a6, :value => 6, :description => "ernstig"
|
344
|
-
option :a7, :value => 7, :description => "extreem"
|
345
|
-
end
|
346
|
-
question :v_49, :type => :radio do
|
347
|
-
title "G16 Actieve asocialiteit"
|
348
|
-
description ""
|
349
|
-
option :a1, :value => 1, :description => "afwezig"
|
350
|
-
option :a2, :value => 2, :description => "minimaal"
|
351
|
-
option :a3, :value => 3, :description => "licht"
|
352
|
-
option :a4, :value => 4, :description => "matig"
|
353
|
-
option :a5, :value => 5, :description => "matig ernstig"
|
354
|
-
option :a6, :value => 6, :description => "ernstig"
|
355
|
-
option :a7, :value => 7, :description => "extreem"
|
356
|
-
end
|
357
|
-
end
|
358
|
-
question :v_50, :type => :radio, :show_values => false do
|
359
|
-
title "De ernst van de symptomen P1, P2, P3, N1, N4, N6, G5 en G9 is ≤ 3. Gedurende welke periode is de ernst van deze symptomen al op dit lage niveau?"
|
360
|
-
description ""
|
361
|
-
option :a1, :value => 1, :description => "< 6 maanden"
|
362
|
-
option :a2, :value => 2, :description => "≥ 6 maanden (in remissie)"
|
363
|
-
end
|
364
|
-
end
|
365
|
-
|
366
|
-
score :tot, label: "Totaalscore" do
|
367
|
-
{
|
368
|
-
value: sum(values(:v_1, :v_2)),
|
369
|
-
interpretation: "Niet te best"
|
370
|
-
}
|
371
|
-
end
|
372
|
-
|
373
|
-
line_chart :tot do
|
374
|
-
range 0..100
|
375
|
-
plot :tot
|
376
|
-
plot :v_50, label: "Ernst"
|
377
|
-
end
|