Skip to content

Commit 63f6916

Browse files
authored
show new person attr on registration page (#57)
1 parent 6418c90 commit 63f6916

File tree

4 files changed

+176
-8
lines changed

4 files changed

+176
-8
lines changed

frontend/config-core-sdh-1dev.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,56 @@
3636
}
3737
},
3838
"@openmrs/esm-patient-registration-app": {
39-
"sections": ["demographics", "contact", "relationships", "death"],
39+
"sections": [
40+
"demographics",
41+
"contact",
42+
"moreInfo",
43+
"relationships",
44+
"death"
45+
],
4046
"fieldConfigurations": {
4147
"address": {
4248
"useAddressHierarchy": {
4349
"useQuickSearch": false
4450
}
4551
}
46-
}
52+
},
53+
"fieldDefinitions": [
54+
{
55+
"id": "philhealth_id",
56+
"name": "PhilHealth ID",
57+
"type": "person attribute",
58+
"uuid": "d58ef8b8-e7a2-11ef-9a05-b2f86dcd4df4",
59+
"validation": {
60+
"matches": ""
61+
}
62+
},
63+
{
64+
"id": "facebook_id",
65+
"name": "Facebook ID",
66+
"type": "person attribute",
67+
"uuid": "6857d515-d187-482a-bfc7-bc1ae8fdca23",
68+
"validation": {
69+
"matches": ""
70+
}
71+
},
72+
{
73+
"id": "email_address",
74+
"name": "Email Address",
75+
"type": "person attribute",
76+
"uuid": "fb270dc2-e7a2-11ef-9a05-b2f86dcd4df4",
77+
"validation": {
78+
"matches": ""
79+
}
80+
}
81+
],
82+
"sectionDefinitions": [
83+
{
84+
"id": "moreInfo",
85+
"name": "More Info",
86+
"fields": ["philhealth_id", "facebook_id", "email_address"]
87+
}
88+
]
4789
},
4890
"@openmrs/esm-primary-navigation-app": {
4991
"logo": {

frontend/config-core-sdh-2test.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,56 @@
3636
}
3737
},
3838
"@openmrs/esm-patient-registration-app": {
39-
"sections": ["demographics", "contact", "relationships", "death"],
39+
"sections": [
40+
"demographics",
41+
"contact",
42+
"moreInfo",
43+
"relationships",
44+
"death"
45+
],
4046
"fieldConfigurations": {
4147
"address": {
4248
"useAddressHierarchy": {
4349
"useQuickSearch": false
4450
}
4551
}
46-
}
52+
},
53+
"fieldDefinitions": [
54+
{
55+
"id": "philhealth_id",
56+
"name": "PhilHealth ID",
57+
"type": "person attribute",
58+
"uuid": "d58ef8b8-e7a2-11ef-9a05-b2f86dcd4df4",
59+
"validation": {
60+
"matches": ""
61+
}
62+
},
63+
{
64+
"id": "facebook_id",
65+
"name": "Facebook ID",
66+
"type": "person attribute",
67+
"uuid": "6857d515-d187-482a-bfc7-bc1ae8fdca23",
68+
"validation": {
69+
"matches": ""
70+
}
71+
},
72+
{
73+
"id": "email_address",
74+
"name": "Email Address",
75+
"type": "person attribute",
76+
"uuid": "fb270dc2-e7a2-11ef-9a05-b2f86dcd4df4",
77+
"validation": {
78+
"matches": ""
79+
}
80+
}
81+
],
82+
"sectionDefinitions": [
83+
{
84+
"id": "moreInfo",
85+
"name": "More Info",
86+
"fields": ["philhealth_id", "facebook_id", "email_address"]
87+
}
88+
]
4789
},
4890
"@openmrs/esm-primary-navigation-app": {
4991
"logo": {

frontend/config-core-sdh-3stage.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,56 @@
3636
}
3737
},
3838
"@openmrs/esm-patient-registration-app": {
39-
"sections": ["demographics", "contact", "relationships", "death"],
39+
"sections": [
40+
"demographics",
41+
"contact",
42+
"moreInfo",
43+
"relationships",
44+
"death"
45+
],
4046
"fieldConfigurations": {
4147
"address": {
4248
"useAddressHierarchy": {
4349
"useQuickSearch": false
4450
}
4551
}
46-
}
52+
},
53+
"fieldDefinitions": [
54+
{
55+
"id": "philhealth_id",
56+
"name": "PhilHealth ID",
57+
"type": "person attribute",
58+
"uuid": "d58ef8b8-e7a2-11ef-9a05-b2f86dcd4df4",
59+
"validation": {
60+
"matches": ""
61+
}
62+
},
63+
{
64+
"id": "facebook_id",
65+
"name": "Facebook ID",
66+
"type": "person attribute",
67+
"uuid": "6857d515-d187-482a-bfc7-bc1ae8fdca23",
68+
"validation": {
69+
"matches": ""
70+
}
71+
},
72+
{
73+
"id": "email_address",
74+
"name": "Email Address",
75+
"type": "person attribute",
76+
"uuid": "fb270dc2-e7a2-11ef-9a05-b2f86dcd4df4",
77+
"validation": {
78+
"matches": ""
79+
}
80+
}
81+
],
82+
"sectionDefinitions": [
83+
{
84+
"id": "moreInfo",
85+
"name": "More Info",
86+
"fields": ["philhealth_id", "facebook_id", "email_address"]
87+
}
88+
]
4789
},
4890
"@openmrs/esm-primary-navigation-app": {
4991
"logo": {

frontend/config-core-sdh-4prod.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,56 @@
3636
}
3737
},
3838
"@openmrs/esm-patient-registration-app": {
39-
"sections": ["demographics", "contact", "relationships", "death"],
39+
"sections": [
40+
"demographics",
41+
"contact",
42+
"moreInfo",
43+
"relationships",
44+
"death"
45+
],
4046
"fieldConfigurations": {
4147
"address": {
4248
"useAddressHierarchy": {
4349
"useQuickSearch": false
4450
}
4551
}
46-
}
52+
},
53+
"fieldDefinitions": [
54+
{
55+
"id": "philhealth_id",
56+
"name": "PhilHealth ID",
57+
"type": "person attribute",
58+
"uuid": "d58ef8b8-e7a2-11ef-9a05-b2f86dcd4df4",
59+
"validation": {
60+
"matches": ""
61+
}
62+
},
63+
{
64+
"id": "facebook_id",
65+
"name": "Facebook ID",
66+
"type": "person attribute",
67+
"uuid": "6857d515-d187-482a-bfc7-bc1ae8fdca23",
68+
"validation": {
69+
"matches": ""
70+
}
71+
},
72+
{
73+
"id": "email_address",
74+
"name": "Email Address",
75+
"type": "person attribute",
76+
"uuid": "fb270dc2-e7a2-11ef-9a05-b2f86dcd4df4",
77+
"validation": {
78+
"matches": ""
79+
}
80+
}
81+
],
82+
"sectionDefinitions": [
83+
{
84+
"id": "moreInfo",
85+
"name": "More Info",
86+
"fields": ["philhealth_id", "facebook_id", "email_address"]
87+
}
88+
]
4789
},
4890
"@openmrs/esm-primary-navigation-app": {
4991
"logo": {

0 commit comments

Comments
 (0)