Commit 202fc619 authored by Ishini Kiridena's avatar Ishini Kiridena

patient consent form completed

parent 7c09d89a
......@@ -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 />
......
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>
);
}
......@@ -9,7 +9,7 @@ export default function SharedRegisterScreen({ navigation }) {
title="Patient Register"
onPress={() => {
console.log("Patient registration");
navigation.navigate("PatientRegOne");
navigation.navigate("PatientConsentForm");
}}
/>
<View style={styles.separator} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment