This file is indexed.

/usr/share/freemedforms/forms/subforms/fortestonly/Script Sample - French IADL.xml is in freemedforms-emr-resources 0.9.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="UTF-8"?>
<MedForm>
	<name>iadl</name>
	<label>IADL</label>
	<type>form</type>
	<categorie>geriatrie</categorie>
	<version>0.03</version>
	<cdate>2008-10-17</cdate>
	<categorie>samples</categorie>
	<option>col=2</option>
	<script>
		{
		var str = "";
		var object = thisObject;
		if (!object.completed) return "";
		
		/* Get sum of IADL by adding all iadl childs */
		var sum = object.sumOfChildren;
		str += "L'IADL est à " + sum + " sur 4.";
		
		/* Construct dependencies sentence */
		var dependances = object.sumOfInterpretValues( ", " );
		
		if (dependances)
		{  str += " Des dépendances sont repérées pour : " + dependances + ".\n";
		}
		
		/* Set thisObject to interperted */
		/* This must be done 'cause we done want to get de selected values of the IADL */
		object.interpreted = true;
		object.allChildInterpreted();
		
		return str;
		}
	</script>
	
	<MedForm>
		<name>budget</name>
		<label>&lt;b&gt;Budget&lt;/b&gt;</label>
		<type>radio</type>
		<possiblevalues id="0">autonome</possiblevalues>
		<possiblevalues id="1">dépendant</possiblevalues>
		<interpretvalues id="0"></interpretvalues>
		<interpretvalues id="1">la gestion du budget</interpretvalues>
		<numericalvalues id="0">0</numericalvalues>
		<numericalvalues id="1">1</numericalvalues>
	</MedForm>
	<MedForm>
		<name>telephone</name>
		<label>&lt;b&gt;Téléphone&lt;/b&gt;</label>
		<type>radio</type>
		<possiblevalues id="1">autonome</possiblevalues>
		<possiblevalues id="2">dépendant</possiblevalues>
		<interpretvalues id="0"></interpretvalues>
		<interpretvalues id="1">l'utilisation du téléphone</interpretvalues>
		<interpretvalues id="2">1</interpretvalues>
		<numericalvalues id="0">0</numericalvalues>
		<numericalvalues id="1">1</numericalvalues>
	</MedForm>
	<MedForm>
		<name>medicament</name>
		<label>&lt;b&gt;Médicaments&lt;/b&gt;</label>
		<type>radio</type>
		<possiblevalues id="1">autonome</possiblevalues>
		<possiblevalues id="2">dépendant</possiblevalues>
		<interpretvalues id="0"></interpretvalues>
		<interpretvalues id="1">la gestion des médicaments</interpretvalues>
		<numericalvalues id="0">0</numericalvalues>
		<numericalvalues id="1">1</numericalvalues>
	</MedForm>
	<MedForm>
		<name>transport</name>
		<label>&lt;b&gt;Transports&lt;/b&gt;</label>
		<type>radio</type>
		<possiblevalues id="1">autonome</possiblevalues>
		<possiblevalues id="2">dépendant</possiblevalues>
		<interpretvalues id="0"></interpretvalues>
		<interpretvalues id="1">l'utilisation des transports en commun</interpretvalues>
		<numericalvalues id="0">0</numericalvalues>
		<numericalvalues id="1">1</numericalvalues>
	</MedForm>
</MedForm>