ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
typenamelabel::en
required
relevantappearanceread_onlyconstraintconstraint_messagecalculation
choice_filter
hint::endefaultnotes
2
begin groupinputsNO_LABELFALSE
3
begin groupuserNO_LABEL
4
stringcontact_idNO_LABELContact ID of the logged in user
5
stringfacility_idNO_LABELPlace ID of the logged in user
6
stringnameNO_LABELName of the logged in user
7
end groupuserd
8
begin groupperson
9
hiddenparentParent Id
Contains the doc id for the new contact’s parent contact doc.
10
hiddencontact_type Contact Type
The contact_type id of the contact.
11
end groupperson
12
begin groupcontact
13
string_idPatient ID
select-contact type-place
14
stringpatient_idMedic IDhidden
15
end groupcontact
16
end group
17
18
begin groupinitNO_LABELfield-list
19
notetest1Parent via input../../inputs/person/parent
20
notetest2Parent via parent variable../../PLACE_TYPE/parent
21
notetest3../../inputs/contact/_id
22
23
select_one contactcreate_new_personSet the Primary Contactyes
24
db:personselect_personSelect the Primary Contactyesselected(${create_new_person},'old_person')db-object
25
stringcustom_place_nameName of this ${place_type_translation}yes
Standalone question only if no contact is selected, so show label accordingly
26
select_one place_type
place_typeEnter the name of this placehidden
PLACE_TYPE
27
calculateplace_type_translationjr:choice-name(${place_type},'${place_type}')
28
end group
29
30
begin groupcontactNew Personselected(${create_new_person},'new_person')field-list
31
hiddenparentNO_LABELPARENT
32
hiddentypeNO_LABELperson
33
stringnameNamesyes
34
telphonePhone NumberTRUE
Please enter a valid local number, or use the standard international format, which includes a plus sign (+) and country code. For example: +254712345678
35
telphone_alternateAlternate Phone NumberTRUE
Please enter a valid local number, or use the standard international format, which includes a plus sign (+) and country code. For example: +254712345678
36
select_one rolesroleRoleminimal
37
stringrole_otherSpecify otheryesselected( ${role},'other')
38
stringexternal_idExternal ID
39
stringnotesNotesmultiline
40
begin groupmetaNO_LABELhidden
41
calculatecreated_by../../../inputs/user/name
42
calculate
created_by_person_uuid
../../../inputs/user/contact_id
43
calculate
created_by_place_uuid
../../../inputs/user/facility_id
44
end group
45
end group
46
47
begin groupPLACE_TYPENO_LABELfield-list
48
hiddenparentNO_LABELPARENT
49
hiddentypeNO_LABEL
50
calculatenameNameyes${custom_place_name}
51
stringexternal_idExternal ID
52
stringnotesNotesmultiline
53
calculatecontact
if(selected(${create_new_person},'none'), "", coalesce(${select_person},"NEW"))
54
calculategeolocation
concat(../../inputs/meta/location/lat, concat(' ', ../../inputs/meta/location/long))
55
begin groupmetaNO_LABELhidden
56
calculatecreated_by../../../inputs/user/name
57
calculate
created_by_person_uuid
../../../inputs/user/contact_id
58
calculate
created_by_place_uuid
../../../inputs/user/facility_id
59
end group
60
end group
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100