All Downloads are FREE. Search and download functionalities are using the official Maven repository.

SLING-INF.content.Questionnaires.AUDITC.xml Maven / Gradle / Ivy

There is a newer version: 0.9.25
Show newest version
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->

<node>
	<name>AUDITC</name>
	<primaryNodeType>cards:Questionnaire</primaryNodeType>
	<property>
		<name>title</name>
		<value>Alcohol Use Disorders Identification Test</value>
		<type>String</type>
	</property>
	<property>
		<name>requireCompletion</name>
		<value>True</value>
		<type>Boolean</type>
	</property>
	<property>
		<name>hideAnswerInstructions</name>
		<value>True</value>
		<type>Boolean</type>
	</property>
	<property>
		<name>requiredSubjectTypes</name>
		<values>
			<value>/SubjectTypes/Patient/Visit</value>
		</values>
		<type>Reference</type>
	</property>
	<property>
		<name>maxPerSubject</name>
		<value>1</value>
		<type>Long</type>
	</property>
	<property>
		<name>description</name>
		<value>AUDIT-C</value>
		<type>String</type>
	</property>
	<node>
		<name>audit_intro</name>
		<primaryNodeType>cards:Information</primaryNodeType>
		<property>
			<name>text</name>
			<value>
The three-item Alcohol Use Disorders Identification Test (AUDIT-C) is a brief survey
instrument designed to identify at-risk drinking behaviors that could indicate alcohol use
disorder. AUDIT-C has been validated in mental health and primary care clinics.
			</value>
			<type>String</type>
		</property>
	</node>
	<node>
		<name>audit_results</name>
		<primaryNodeType>cards:Section</primaryNodeType>
		<property>
			<name>displayMode</name>
			<value>header</value>
			<type>String</type>
		</property>
		<node>
			<name>audit_score</name>
			<primaryNodeType>cards:Question</primaryNodeType>
			<property>
				<name>expression</name>
				<value>return (+@{audit_1:-0} + +@{audit_2:-0} + +@{audit_3:-0})</value>
				<type>String</type>
			</property>
			<property>
				<name>unitOfMeasurement</name>
				<value>points</value>
				<type>String</type>
			</property>
			<property>
				<name>text</name>
				<value>Score</value>
				<type>String</type>
			</property>
			<property>
				<name>dataType</name>
				<value>long</value>
				<type>String</type>
			</property>
			<property>
				<name>entryMode</name>
				<value>computed</value>
				<type>String</type>
			</property>
			<property>
				<name>displayMode</name>
				<value>formatted</value>
				<type>String</type>
			</property>
		</node>
		<node>
			<name>audit_interpretation</name>
			<primaryNodeType>cards:Question</primaryNodeType>
			<property>
				<name>expression</name>
				<value><![CDATA[
					var score = @{audit_score:-0};
					var maleText = "A total score of **4 or greater** indicates elevated risk for hazardous drinking or active alcohol use disorder. Greater scores indicate greater risk posed to the patient’s health and safety.";
					var femaleText = "A total score of **3 or greater** indicates elevated risk for hazardous drinking or active alcohol use disorder. Greater scores indicate greater risk posed to the patient’s health and safety.";
					var result = "No alcohol use disorder detected.";
					if ("male" === @{audit_sex:-""}.toLowerCase()) {
						if (score >= 4) result = maleText;
					} else if ("female" === @{audit_sex:-""}.toLowerCase()) {
						if (score >= 3) result = femaleText;
					} else if (score >= 3) {
						result = "For **men**:\n\n" + maleText + "\n\n For **women**:\n\n" + femaleText;
					}
					return result;
				]]></value>
				<type>String</type>
			</property>
			<property>
				<name>text</name>
				<value>Interpretation</value>
				<type>String</type>
			</property>
			<property>
				<name>displayMode</name>
				<value>formatted</value>
				<type>String</type>
			</property>
			<property>
				<name>entryMode</name>
				<value>computed</value>
				<type>String</type>
			</property>
		</node>
	</node>
	<node>
		<name>audit_sex</name>
		<primaryNodeType>cards:Question</primaryNodeType>
		<property>
			<name>text</name>
			<value>Sex</value>
			<type>String</type>
		</property>
		<property>
			<name>displayMode</name>
			<value>hidden</value>
			<type>String</type>
		</property>
		<property>
			<name>entryMode</name>
			<value>reference</value>
			<type>String</type>
		</property>
		<property>
			<name>question</name>
			<value>/Questionnaires/Patient information/sex</value>
			<type>String</type>
		</property>
		<property>
			<name>maxAnswers</name>
			<value>1</value>
			<type>Long</type>
		</property>
	</node>
	<node>
		<name>audit_survey</name>
		<primaryNodeType>cards:Section</primaryNodeType>
		<node>
			<name>audit_1</name>
			<primaryNodeType>cards:Question</primaryNodeType>
			<property>
				<name>text</name>
				<value>How often did you have a drink containing alcohol in the past year?</value>
				<type>String</type>
			</property>
			<property>
				<name>minAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>maxAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>displayMode</name>
				<value>list</value>
				<type>String</type>
			</property>
			<property>
				<name>dataType</name>
				<value>long</value>
				<type>String</type>
			</property>
			<node>
				<name>AnswerOption48</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>1</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Never</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>0</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption49</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>2</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Monthly or less</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>1</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption50</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>3</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Two to four times a month</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>2</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption51</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>4</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Two to three times a week</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>3</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption52</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>5</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Four or more times a week</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>4</value>
					<type>String</type>
				</property>
			</node>
		</node>
		<node>
			<name>audit_2</name>
			<primaryNodeType>cards:Question</primaryNodeType>
			<property>
				<name>text</name>
				<value>How many drinks did you have on a typical day when you were drinking in the past year?</value>
				<type>String</type>
			</property>
			<property>
				<name>minAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>maxAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>displayMode</name>
				<value>list</value>
				<type>String</type>
			</property>
			<property>
				<name>dataType</name>
				<value>long</value>
				<type>String</type>
			</property>
			<node>
				<name>AnswerOption48</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>1</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>None (I don't drink) or 1-2</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>0</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption49</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>2</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>3 or 4</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>1</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption50</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>3</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>5 or 6</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>2</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption51</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>4</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>7 to 8</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>3</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption52</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>5</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>10 or more</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>4</value>
					<type>String</type>
				</property>
			</node>
		</node>
		<node>
			<name>audit_3</name>
			<primaryNodeType>cards:Question</primaryNodeType>
			<property>
				<name>text</name>
				<value>How often did you have six or more drinks on one occasion in the past year?</value>
				<type>String</type>
			</property>
			<property>
				<name>minAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>maxAnswers</name>
				<value>1</value>
				<type>Long</type>
			</property>
			<property>
				<name>displayMode</name>
				<value>list</value>
				<type>String</type>
			</property>
			<property>
				<name>dataType</name>
				<value>long</value>
				<type>String</type>
			</property>
			<node>
				<name>AnswerOption48</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>1</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Never</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>0</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption49</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>2</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Less than monthly</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>1</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption50</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>3</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Monthly</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>2</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption51</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>4</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Weekly</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>3</value>
					<type>String</type>
				</property>
			</node>
			<node>
				<name>AnswerOption52</name>
				<primaryNodeType>cards:AnswerOption</primaryNodeType>
				<property>
					<name>defaultOrder</name>
					<value>5</value>
					<type>Long</type>
				</property>
				<property>
					<name>label</name>
					<value>Daily or almost daily</value>
					<type>String</type>
				</property>
				<property>
					<name>value</name>
					<value>4</value>
					<type>String</type>
				</property>
			</node>
		</node>
	</node>
</node>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy