| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | type | name | label::en | required | relevant | appearance | read_only | constraint | constraint_message | calculation | choice_filter | hint::en | default | notes | |||||||||||||
2 | begin group | inputs | NO_LABEL | FALSE | |||||||||||||||||||||||
3 | begin group | user | NO_LABEL | ||||||||||||||||||||||||
4 | string | contact_id | NO_LABEL | Contact ID of the logged in user | |||||||||||||||||||||||
5 | string | facility_id | NO_LABEL | Place ID of the logged in user | |||||||||||||||||||||||
6 | string | name | NO_LABEL | Name of the logged in user | |||||||||||||||||||||||
7 | end group | user | d | ||||||||||||||||||||||||
8 | begin group | person | |||||||||||||||||||||||||
9 | hidden | parent | Parent Id | Contains the doc id for the new contact’s parent contact doc. | |||||||||||||||||||||||
10 | hidden | contact_type | Contact Type | The contact_type id of the contact. | |||||||||||||||||||||||
11 | end group | person | |||||||||||||||||||||||||
12 | begin group | contact | |||||||||||||||||||||||||
13 | string | _id | Patient ID | select-contact type-place | |||||||||||||||||||||||
14 | string | patient_id | Medic ID | hidden | |||||||||||||||||||||||
15 | end group | contact | |||||||||||||||||||||||||
16 | end group | ||||||||||||||||||||||||||
17 | |||||||||||||||||||||||||||
18 | begin group | init | NO_LABEL | field-list | |||||||||||||||||||||||
19 | note | test1 | Parent via input | ../../inputs/person/parent | |||||||||||||||||||||||
20 | note | test2 | Parent via parent variable | ../../PLACE_TYPE/parent | |||||||||||||||||||||||
21 | note | test3 | ../../inputs/contact/_id | ||||||||||||||||||||||||
22 | |||||||||||||||||||||||||||
23 | select_one contact | create_new_person | Set the Primary Contact | yes | |||||||||||||||||||||||
24 | db:person | select_person | Select the Primary Contact | yes | selected(${create_new_person},'old_person') | db-object | |||||||||||||||||||||
25 | string | custom_place_name | Name of this ${place_type_translation} | yes | Standalone question only if no contact is selected, so show label accordingly | ||||||||||||||||||||||
26 | select_one place_type | place_type | Enter the name of this place | hidden | PLACE_TYPE | ||||||||||||||||||||||
27 | calculate | place_type_translation | jr:choice-name(${place_type},'${place_type}') | ||||||||||||||||||||||||
28 | end group | ||||||||||||||||||||||||||
29 | |||||||||||||||||||||||||||
30 | begin group | contact | New Person | selected(${create_new_person},'new_person') | field-list | ||||||||||||||||||||||
31 | hidden | parent | NO_LABEL | PARENT | |||||||||||||||||||||||
32 | hidden | type | NO_LABEL | person | |||||||||||||||||||||||
33 | string | name | Names | yes | |||||||||||||||||||||||
34 | tel | phone | Phone Number | TRUE | Please enter a valid local number, or use the standard international format, which includes a plus sign (+) and country code. For example: +254712345678 | ||||||||||||||||||||||
35 | tel | phone_alternate | Alternate Phone Number | TRUE | 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 roles | role | Role | minimal | |||||||||||||||||||||||
37 | string | role_other | Specify other | yes | selected( ${role},'other') | ||||||||||||||||||||||
38 | string | external_id | External ID | ||||||||||||||||||||||||
39 | string | notes | Notes | multiline | |||||||||||||||||||||||
40 | begin group | meta | NO_LABEL | hidden | |||||||||||||||||||||||
41 | calculate | created_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 group | PLACE_TYPE | NO_LABEL | field-list | |||||||||||||||||||||||
48 | hidden | parent | NO_LABEL | PARENT | |||||||||||||||||||||||
49 | hidden | type | NO_LABEL | ||||||||||||||||||||||||
50 | calculate | name | Name | yes | ${custom_place_name} | ||||||||||||||||||||||
51 | string | external_id | External ID | ||||||||||||||||||||||||
52 | string | notes | Notes | multiline | |||||||||||||||||||||||
53 | calculate | contact | if(selected(${create_new_person},'none'), "", coalesce(${select_person},"NEW")) | ||||||||||||||||||||||||
54 | calculate | geolocation | concat(../../inputs/meta/location/lat, concat(' ', ../../inputs/meta/location/long)) | ||||||||||||||||||||||||
55 | begin group | meta | NO_LABEL | hidden | |||||||||||||||||||||||
56 | calculate | created_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 |