Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 16
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 16
22_23-J 16
Commits
202fc619
Commit
202fc619
authored
May 07, 2023
by
Ishini Kiridena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patient consent form completed
parent
7c09d89a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
1 deletion
+106
-1
emma-frontend/App.js
emma-frontend/App.js
+6
-0
emma-frontend/components/patientscreens/consent.js
emma-frontend/components/patientscreens/consent.js
+99
-0
emma-frontend/components/shared/sharedRegistration.js
emma-frontend/components/shared/sharedRegistration.js
+1
-1
No files found.
emma-frontend/App.js
View file @
202fc619
...
...
@@ -14,6 +14,7 @@ import PatientRegFive from "./components/patientscreens/registration/regFive";
import
PatientRegSix
from
"
./components/patientscreens/registration/regSix
"
;
import
PatientRegSeven
from
"
./components/patientscreens/registration/regSeven
"
;
import
PatientRegEight
from
"
./components/patientscreens/registration/regEight
"
;
import
PatientConsentForm
from
"
./components/patientscreens/consent
"
;
const
Stack
=
createStackNavigator
();
...
...
@@ -90,6 +91,11 @@ export default function App() {
component
=
{
PatientRegEight
}
options
=
{{
headerShown
:
false
}}
/
>
<
Stack
.
Screen
name
=
"
PatientConsentForm
"
component
=
{
PatientConsentForm
}
options
=
{{
headerShown
:
false
}}
/
>
<
/Stack.Navigator
>
)
:
(
<
SplashScreenComponent
/>
...
...
emma-frontend/components/patientscreens/consent.js
0 → 100644
View file @
202fc619
import
React
,
{
useState
}
from
"
react
"
;
import
{
View
,
Text
,
Button
,
Alert
,
ScrollView
,
Linking
}
from
"
react-native
"
;
export
default
function
PatientConsentForm
({
navigation
,
route
})
{
const
[
isConsentAgreed
,
setIsConsentAgreed
]
=
useState
(
false
);
const
handleAgree
=
()
=>
{
setIsConsentAgreed
(
true
);
navigation
.
navigate
(
"
PatientRegOne
"
);
// Navigate to the next component after agreeing
};
const
handleCancel
=
()
=>
{
Alert
.
alert
(
"
Confirmation
"
,
"
Are you sure you want to cancel?
"
,
[
{
text
:
"
No
"
,
style
:
"
cancel
"
,
},
{
text
:
"
Yes
"
,
onPress
:
()
=>
{
// Close the app
navigation
.
navigate
(
"
MainScreen
"
);
},
},
],
{
cancelable
:
false
}
);
};
return
(
<
ScrollView
style
=
{{
padding
:
10
}}
>
<
Text
style
=
{{
fontWeight
:
"
bold
"
,
fontSize
:
20
}}
>
Consent
Form
for
EMMA
Health
Application
<
/Text
>
<
Text
>
Please
read
this
consent
form
carefully
before
using
the
EMMA
health
application
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Introduction
:
<
/Text
>
<
Text
>
The
EMMA
(
Emotional
Mental
Health
Assistant
)
application
is
designed
to
track
and
manage
personal
details
,
emotional
status
,
and
mental
health
via
chat
.
By
using
this
application
,
you
consent
to
the
collection
and
secure
storage
of
your
data
as
described
below
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Data
Collection
:
<
/Text
>
<
Text
>
{
"
\n
"
}
Personal
Details
:
The
EMMA
app
collects
personal
information
such
as
your
name
,
age
,
gender
,
and
contact
details
.
This
information
is
used
to
personalize
your
experience
and
ensure
accurate
record
-
keeping
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Emotional
Status
:
The
app
collects
data
related
to
your
emotional
well
-
being
,
including
mood
fluctuations
,
stress
levels
,
and
general
feelings
.
This
information
helps
in
understanding
and
managing
your
emotional
health
effectively
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Mental
Health
:
The
app
tracks
and
analyzes
your
mental
health
status
based
on
the
conversations
you
have
with
EMMA
.
This
includes
identifying
patterns
,
identifying
triggers
,
and
providing
insights
for
mental
health
management
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Data
Storage
and
Security
:
<
/Text
>
<
Text
>
{
"
\n
"
}
Data
Encryption
:
All
collected
data
will
be
properly
encrypted
to
ensure
its
security
and
confidentiality
.
<
/Text
>
<
Text
>
{
"
\n
"
}
Stellar
Blockchain
:
Your
encrypted
data
will
be
securely
stored
in
a
public
blockchain
called
Stellar
.
Stellar
'
s blockchain technology
provides an additional layer of data protection and immutability.
</Text>
<Text>
{"
\n
"}Access Control: Your data will be accessible only to authorized
individuals involved in the maintenance of the EMMA application. Strict
access controls will be implemented to prevent unauthorized access.
</Text>
<Text>{"
\n
"}Purpose of Data Collection:</Text>
<Text>
{"
\n
"}User Control: The primary purpose of data collection is to empower
you with control over your own health data. You will have the ability to
manage access permissions and decide who can view or access your data.
</Text>
<Text>
{"
\n
"}Mental Health History: The collected data can be used to generate
a comprehensive mental health history for your benefit. This history may
assist healthcare practitioners in understanding your mental health
trends, improving diagnostic accuracy, and developing personalized
treatment plans.
</Text>
<Button title="Agree" onPress={handleAgree} />
<Button title="Cancel" onPress={handleCancel} />
</ScrollView>
);
}
emma-frontend/components/shared/sharedRegistration.js
View file @
202fc619
...
...
@@ -9,7 +9,7 @@ export default function SharedRegisterScreen({ navigation }) {
title
=
"
Patient Register
"
onPress
=
{()
=>
{
console
.
log
(
"
Patient registration
"
);
navigation
.
navigate
(
"
Patient
RegOne
"
);
navigation
.
navigate
(
"
Patient
ConsentForm
"
);
}}
/
>
<
View
style
=
{
styles
.
separator
}
/
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment