Wiki source code of Cases

Version 113.25 by Jip-jan Alunkel on July 14, 14:01

Show last authors
1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
4 #set($discard = $services.localization.use('document', 'cases.Code.translations'))
5 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false}))
7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false}))
8
9 {{html wiki="true" clean="false"}}
10 <div class="intro-text float-right col-xs-12 col-sm-4">
11 <p class="intro-text">
12 <span class="saying">The true healing art is in its nature a pure science of experience, and can and must rest on clear facts and on the sensible phenomena pertaining to their sphere of action, for all the subjects it has to deal with are clearly and satisfactorily cognizable by the senses through experience.</span>
13 <span class="sayee">Samuel Hahnemann</span>
14 </p>
15 </div>
16 <p>
17 As the homeopathic case develops over time, the case taker gains insight on (a certain timeframe of) a patient's life. While proceding to document the realities of a particular moment, the complement of all documented interactions can be seen as a story.<br />
18 It is well known that storytelling is of great use in preserving and spreading information. This gives the publication of homeopathic cases a tremendous potential to teach and inspire.<br />
19 </p>
20 <p class="alert alert-success alert-float-left alert-button-float-right">
21 <span class="alert-button pull-right">
22 <a href="#addCase" class="btn btn-success">Add case</a>
23 </span>
24 <span class="alert-text">
25 Add a case to this wiki
26 </span>
27 </p>
28 <div class="clearfix"></div>
29 <h2 class="livetable">Overview of all cases</h2>
30 <div id="livetable">
31
32 #set ($columns = ["doc.title", "remedy", "doc.space"])
33 #set ($columnsProperties = {
34 "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
35 "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4},
36 "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"}
37 })
38 #set ($options = {
39 "className" : "cases.Code.casesClass",
40 "translationPrefix" : "cases.livetable.",
41 "queryFilters" : "currentlanguage",
42 "rowCount": 10
43 })
44 #livetable("cases" $columns $columnsProperties $options)
45
46 </div>
47 <h3 id="addCase">Add a case to this wiki</h3>
48 <p>
49 Do you know of any cases that can be of value to people who would like to learn more about homeopathy?
50 Please feel free to share these cases with our readers. However, to make sure your case is correctly filed in this wiki it is necessary that you answer a few simple questions about the case.
51 </p>
52
53 #createFormStart("homeoworld_form" "case")
54
55 #set($email = {
56 "id" : "email",
57 "type" : "email",
58 "required" : "false",
59 "label" : "$services.localization.render('global.multiword.email')",
60 "aria-label" : "$services.localization.render('global.multiword.email')",
61 "placeholder" : "$services.localization.render('global.multiword.email')",
62 "data-error-response-type" : "use_label_possessive_1"
63 })
64 #createFormElement($email)
65
66 #set($locality = {
67 "id" : "locality",
68 "type" : "select",
69 "required" : "true",
70 "label" : "Locality of the main complaint",
71 "aria-label" : "Select the locality",
72 "data-error-response-type" : "use_label_definite_1",
73 "data-set-space" : "true",
74 "placeholder" : "$services.localization.render('cases.word.locality_select.placeholder')",
75 "select-json" : {
76 "cases.back": "Back",
77 "cases.abdomen": "Abdomen",
78 "cases.external throat": "External throat",
79 "cases.extremities": "Extremities",
80 "cases.eye": "Eye",
81 "cases.face": "Face",
82 "cases.female genitalia": "Female genitalia",
83 "cases.fever": "Fever",
84 "cases.generals": "Generals",
85 "cases.head": "Head",
86 "cases.hearing": "Hearing",
87 "cases.kidneys": "Kidneys",
88 "cases.larynx": "Larynx",
89 "cases.male genitalia": "Male genitalia",
90 "cases.mind": "Mind",
91 "cases.mouth": "Mouth",
92 "cases.nose": "Nose",
93 "cases.perspiration": "Perspiration",
94 "cases.prostate": "Prostate",
95 "cases.rectum": "Rectum",
96 "cases.respiration": "Respiration",
97 "cases.skin": "Skin",
98 "cases.bladder": "Bladder",
99 "cases.sleep": "Sleep",
100 "cases.stomach": "Stomach",
101 "cases.stool": "Stool",
102 "cases.teeth": "Teeth",
103 "cases.throat": "Throat",
104 "cases.urethra": "Urethra",
105 "cases.urine": "Urine",
106 "cases.vertigo": "Vertigo",
107 "cases.vision": "Vision",
108 "cases.chest": "Chest",
109 "cases.chill": "Chill",
110 "cases.cough": "Cough",
111 "cases.dreams": "Dreams",
112 "cases.ear": "Ear",
113 "cases.expectoration": "Expectoration"
114 },
115 "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
116 })
117 #createFormElement($locality)
118 #set($main_complaint = {
119 "id" : "main_complaint",
120 "type" : "text",
121 "required" : "true",
122 "label" : "Main complaint",
123 "aria-label" : "Enter the main complaint",
124 "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
125 "data-error-response-type" : "use_label_definite_1",
126 "data-query-type" : "XWQL",
127 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
128 "data-query-scope" : "cases",
129 "data-query-list-type" : "suggest-negate",
130 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
131 "data-query-list-contents" : "value",
132 "data-create-page" : "true",
133 "help-block" : 'Please be as concise as possible when you describe the main complaint. For example:<br />"chronic headache with bowel complaints,"<br />"intermittend fever" or<br />"diarrhea."'
134 })
135 #createFormElement($main_complaint)
136 #set($remedy = {
137 "id" : "remedy",
138 "type" : "text",
139 "required" : "true",
140 "label" : "Central remedy in this case",
141 "aria-label" : "Choose the remedy",
142 "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
143 "data-error-response-type" : "use_label_definite_1",
144 "data-query-type" : "JSON",
145 "data-query-reference" : "assets.pagemaker.JSON.remedies",
146 "data-query-list-type" : "suggest-select",
147 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
148 "data-query-list-contents" : "value/key",
149 "data-query-list-editable" : "false",
150 "data-create-xobj" : "true",
151 "data-xobj-classname" : "cases.Code.casesClass",
152 "data-xobj-fieldname" : "remedy",
153 "help-block" : 'Select the remedy that is central in this case.'
154 })
155 #createFormElement($remedy)
156 #set($extra_info = {
157 "id" : "extra_info",
158 "type" : "checkbox",
159 "required" : "false",
160 "label" : "Extra information (optional)",
161 "value" : "yes",
162 "data-opener" : "true"
163 })
164 #createFormElement($extra_info)
165 #createExpandStart($extra_info "1")
166 #set($author = {
167 "id" : "author",
168 "type" : "text",
169 "required" : "false",
170 "label" : "Author",
171 "aria-label" : "Enter the author name",
172 "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
173 "data-query-type" : "XWQL",
174 "data-query-reference" : "assets.pagemaker.XWQL.matchObject",
175 "data-query-scope" : "cases",
176 "data-query-list-type" : "suggest-select",
177 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
178 "data-query-list-contents" : "value",
179 "data-query-list-editable" : "true",
180 "data-create-xobj" : "true",
181 "data-xobj-classname" : "cases.Code.casesClass",
182 "data-xobj-fieldname" : "author",
183 "help-block" : 'Select the author of this case.'
184 })
185 #createFormElement($author)
186 #createExpandEnd()
187 #set($submit = {
188 "id" : "create_case",
189 "button-text" : "Create new case",
190 "help-block" : "Please remind yourself to always anonymize the case."
191 })
192 #createSubmit($submit)
193 #createFormEnd()
194
195 {{/html}}
196 {{/velocity}}