Skip to content

Commit 2eac821

Browse files
Changing repository name & adding default attributes
1 parent 395c89a commit 2eac821

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## interoperability-app
1+
## Go.Data-DHIS2 Interoperability App
22
DHIS2 basic app to allow interoperability between DHIS2 and Go.Data instances
33
![Architecture summary](./images/overview.png)
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "interoperability-app",
2+
"name": "godata-dhis2-interoperability-app",
33
"version": "0.1.0",
44
"homepage": ".",
55
"private": true,

src/components/Form.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,15 @@ const Form = () => {
275275
value={ formData["dhis2KeyAttributes"].passport }
276276
onChange={ handleOnChange }
277277
/>
278+
<p className="p">Default attributes</p>
279+
<span className="subtitle">First Name:</span>
280+
<input
281+
className="text-input"
282+
size="15"
283+
name="attributesDefaults.firstName"
284+
value={ formData["attributesDefaults"].firstName }
285+
onChange={ handleOnChange }
286+
/>
278287
<p className="p">Dhis2 Key Data Elements</p>
279288
<span className="subtitle">Pregnancy:</span>
280289
<input

src/utils/config.base.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const config = {
1919
address: 'Home Address',
2020
passport: 'Passport Number'
2121
},
22+
attributesDefaults: {
23+
firstName: 'NOT_PROVIDED'
24+
},
2225
dhis2KeyDataElements: {
2326
pregnancy: 'Pregnancy',
2427
dateOfOnset: 'Date of symptoms onset',

0 commit comments

Comments
 (0)