Wiki source code of Cases

Version 117.1 by Jip-jan Alunkel on February 05, 21:18

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 Rememberable cases present themselves as stories, preserving and spreading inspiration.
19 The publication of them, a tremendous potential to teach and inspire.
20 </p>
21 <p class="alert alert-success alert-float-left alert-button-float-right">
22 <span class="alert-button pull-right">
23 <a href="#addCase" class="btn btn-success">Add case</a>
24 </span>
25 <span class="alert-text">
26 Add a case to this wiki
27 </span>
28 </p>
29 <div class="clearfix"></div>
30 <h2 class="livetable">Overview of all cases</h2>
31 <div class="livetable">
32
33 #set ($columns = ["doc.title", "remedy", "doc.space"])
34 #set ($columnsProperties = {
35 "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
36 "remedy" : {"type": "text", "filterable" : true, "sortable": true, "headerClass": "remedy"},
37 "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "headerClass": "locality", "link": "space"}
38 })
39 #set ($options = {
40 "className" : "cases.Code.casesClass",
41 "translationPrefix" : "cases.livetable.",
42 "queryFilters" : "currentlanguage",
43 "rowCount": 10
44 })
45 #livetable("cases" $columns $columnsProperties $options)
46
47 </div>
48 <h3 id="addCase">Add a case to this wiki</h3>
49 <p>
50 Do you know of any cases that can be of value to people who would like to learn more about homeopathy?
51 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.
52 </p>
53 #set($form_start = {
54 "id": "homeoworld_form",
55 "product": "case",
56 "method": "post",
57 "url": "",
58 "use_captcha": "false"
59 })
60 #createFormStart($form_start)
61 #set($locality = {
62 "id": "locality",
63 "type": "select",
64 "required": "true",
65 "label": "Locality of the main complaint",
66 "aria-label": "Select the locality",
67 "data-error-response-type": "use_label_definite_1",
68 "data-set-space": "true",
69 "placeholder": "$services.localization.render('cases.word.locality_select.placeholder')",
70 "select-json": {
71 "back": "Back",
72 "abdomen": "Abdomen",
73 "external throat": "External throat",
74 "extremities": "Extremities",
75 "eye": "Eye",
76 "face": "Face",
77 "female genitalia": "Female genitalia",
78 "fever": "Fever",
79 "generals": "Generals",
80 "head": "Head",
81 "hearing": "Hearing",
82 "kidneys": "Kidneys",
83 "larynx": "Larynx",
84 "male genitalia": "Male genitalia",
85 "mind": "Mind",
86 "mouth": "Mouth",
87 "nose": "Nose",
88 "perspiration": "Perspiration",
89 "prostate": "Prostate",
90 "rectum": "Rectum",
91 "respiration": "Respiration",
92 "skin": "Skin",
93 "bladder": "Bladder",
94 "sleep": "Sleep",
95 "stomach": "Stomach",
96 "stool": "Stool",
97 "teeth": "Teeth",
98 "throat": "Throat",
99 "urethra": "Urethra",
100 "urine": "Urine",
101 "vertigo": "Vertigo",
102 "vision": "Vision",
103 "chest": "Chest",
104 "chill": "Chill",
105 "cough": "Cough",
106 "dreams": "Dreams",
107 "ear": "Ear",
108 "expectoration": "Expectoration"
109 },
110 "help-block": "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
111 })
112 #createFormElement($locality)
113 #set($main_complaint = {
114 "id" : "main_complaint",
115 "type" : "text",
116 "required" : "true",
117 "label" : "Main complaint",
118 "aria-label" : "Enter the main complaint",
119 "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
120 "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
121 "data-error-response-type" : "use_label_definite_1",
122 "data-auto-first-capital" : "true",
123 "data-query-type" : "XWQL",
124 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
125 "data-query-scope" : "cases",
126 "data-query-list-type" : "suggest-negate",
127 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
128 "data-query-list-contents" : "value",
129 "data-create-page" : "true",
130 "help-block" : 'This will be used as the title of your case. The first character must be a letter. For example:<br />- "Otitis Media in 13 year old boy" or<br />- "Cataract in 72 year old paraplegic woman"'
131 })
132 ##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."
133 #createFormElement($main_complaint)
134 #set($remedy = {
135 "id" : "remedy",
136 "type" : "text",
137 "required" : "true",
138 "label" : "Central remedy in this case",
139 "aria-label" : "Choose the remedy",
140 "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
141 "data-error-response-type" : "use_label_definite_1",
142 "data-auto-first-capital" : "true",
143 "data-query-type" : "JSON",
144 "data-query-reference" : "assets.pagemaker.JSON.remedies",
145 "data-query-list-type" : "suggest-select",
146 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
147 "data-query-list-contents" : "value/key",
148 "data-query-list-editable" : "false",
149 "data-create-xobj" : "true",
150 "data-xobj-classname" : "cases.Code.casesClass",
151 "data-xobj-fieldname" : "remedy",
152 "help-block" : 'Select the remedy that is central in this case.'
153 })
154 #createFormElement($remedy)
155 #set($extra_info = {
156 "id" : "extra_info",
157 "type" : "checkbox",
158 "required" : "false",
159 "label" : "Extra information (optional)",
160 "value" : "yes",
161 "data-opener" : "true"
162 })
163 #createFormElement($extra_info)
164 #createExpandStart($extra_info "1")
165 #getUser()
166 #set($author = {
167 "id" : "author",
168 "type" : "text",
169 "required" : "false",
170 "label" : "Author",
171 "aria-label" : "Enter the author name",
172 "data-default-value": "$user",
173 "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
174 "data-auto-first-capital" : "true",
175 "data-query-type" : "XWQL",
176 "data-query-reference" : "assets.pagemaker.XWQL.matchObject",
177 "data-query-scope" : "",
178 "data-query-list-type" : "suggest-select",
179 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
180 "data-query-list-contents" : "value",
181 "data-query-list-editable" : "true",
182 "data-create-xobj" : "true",
183 "data-xobj-classname" : "assets.pagemaker.classes.persons",
184 "data-xobj-fieldname" : "name",
185 "data-modal-input" : ["$services.localization.render('global.word.lastname')", "$services.localization.render('global.word.firstname')"],
186 "data-modal-input-glue": ", ",
187 "help-block" : 'If this is not your own case, enter the last name of the author of this case. Choose the author from the list or create a new author.'
188 })
189 #createFormElement($author)
190 #createExpandEnd()
191 #set($submit = {
192 "id" : "create_case",
193 "button-text" : "Create new case",
194 "help-block" : "Please remind yourself to always anonymize the case."
195 })
196 #createSubmit($submit)
197 #set($form_end = {
198 "use_captcha": "false"
199 })
200 #createFormEnd($form_end)
201
202 {{/html}}
203 {{/velocity}}