Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
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
2023-24-005
EmidWife-New
Commits
d5a7607b
Commit
d5a7607b
authored
May 15, 2024
by
Devin B
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated
parent
82cf4e3e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
434 additions
and
152 deletions
+434
-152
src/screens/home/skin/AdditionalSymptoms.js
src/screens/home/skin/AdditionalSymptoms.js
+23
-13
src/screens/home/skin/AdditionalSymptoms1.js
src/screens/home/skin/AdditionalSymptoms1.js
+141
-46
src/screens/home/skin/AdditionalSymptoms2.js
src/screens/home/skin/AdditionalSymptoms2.js
+137
-46
src/screens/home/skin/AdditionalSymptoms3.js
src/screens/home/skin/AdditionalSymptoms3.js
+132
-46
src/screens/home/skin/SkinUploader.js
src/screens/home/skin/SkinUploader.js
+1
-1
No files found.
src/screens/home/skin/AdditionalSymptoms.js
View file @
d5a7607b
...
...
@@ -10,9 +10,12 @@ import { Linking } from 'react-native';
const
AdditionalSymptomsScreen
=
({
navigation
})
=>
{
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,});
const
[
selectedSymptoms
,
setSelectedSymptoms
]
=
useState
({
symptom1
:
false
,
symptom2
:
false
,
symptom3
:
false
,
symptom4
:
false
,
symptom5
:
false
,
symptom6
:
false
,
symptom7
:
false
,
symptom8
:
false
,
symptom9
:
false
,
symptom10
:
false
,
symptom11
:
false
,
symptom12
:
false
,
symptom13
:
false
,
symptom14
:
false
});
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
videoPaused
,
setVideoPaused
]
=
useState
(
true
);
const
[
fullscreen
,
setFullscreen
]
=
useState
(
false
);
...
...
@@ -39,14 +42,14 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
{
key
:
'
symptom7
'
,
text
:
'
Thigh muscle pain | කලවා මාංශ පේශි වේදනාව
'
},
{
key
:
'
symptom8
'
,
text
:
'
Groin pain | ඉකිලි වේදනාව
'
},
{
key
:
'
symptom9
'
,
text
:
'
Breast Pain |පියයුරු වේදනාව
'
},
{
key
:
'
symptom1
2
'
,
text
:
'
Side muscle pain | පැත්තේ මාංශ පේශි වේදනාව
'
},
{
key
:
'
symptom1
0
'
,
text
:
'
Side muscle pain | පැත්තේ මාංශ පේශි වේදනාව
'
},
],
[
{
key
:
'
symptom1
0
'
,
text
:
'
Upper arm pain | ඉහළ අතේ වේදනාව
'
},
{
key
:
'
symptom1
1
'
,
text
:
'
Heart burn | හදවත දැවෙනවා
'
},
{
key
:
'
symptom1
2
'
,
text
:
'
Mouth and Nose ulcer’s | මුඛයේ සහ නාසයේ වණ
'
},
{
key
:
'
symptom1
3
'
,
text
:
'
Back Pain |පිටුපස මාංශ පේශි වේදනාව
'
},
{
key
:
'
symptom14
'
,
text
:
'
Breast Pain |පියයුරු වේදනාව
'
},
{
key
:
'
symptom1
1
'
,
text
:
'
Upper arm pain | ඉහළ අතේ වේදනාව
'
},
{
key
:
'
symptom1
2
'
,
text
:
'
Heart burn | හදවත දැවෙනවා
'
},
{
key
:
'
symptom1
3
'
,
text
:
'
Mouth and Nose ulcer’s | මුඛයේ සහ නාසයේ වණ
'
},
{
key
:
'
symptom1
4
'
,
text
:
'
Back Pain |පිටුපස මාංශ පේශි වේදනාව
'
},
],
// Add more groups as needed
];
...
...
@@ -68,9 +71,16 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
};
const
handleSubmit
=
()
=>
{
// Handle the submission of symptoms
console
.
log
(
selectedSymptoms
);
// Navigate or perform next steps
// Checking for specific symptoms that lead to SKIN_RISK
const
skinRiskSymptoms
=
[
'
symptom12
'
,
'
symptom5
'
,
'
symptom4
'
,
'
symptom10
'
,
'
symptom8
'
,
'
symptom6
'
];
const
toSkinRisk
=
skinRiskSymptoms
.
some
(
symptom
=>
selectedSymptoms
[
symptom
]);
// Navigate based on condition
if
(
toSkinRisk
)
{
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
);
}
else
{
navigation
.
navigate
(
ROUTES
.
SKIN_UPLOAD
);
}
};
const
toggleFullscreen
=
()
=>
{
...
...
@@ -175,7 +185,7 @@ const AdditionalSymptomsScreen = ({ navigation }) => {
<
Button
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
onPress
=
{
()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_RISK
)}
onPress
=
{
handleSubmit
}
/
>
<
/ScrollView
>
<
/SafeAreaView
>
...
...
src/screens/home/skin/AdditionalSymptoms1.js
View file @
d5a7607b
This diff is collapsed.
Click to expand it.
src/screens/home/skin/AdditionalSymptoms2.js
View file @
d5a7607b
This diff is collapsed.
Click to expand it.
src/screens/home/skin/AdditionalSymptoms3.js
View file @
d5a7607b
This diff is collapsed.
Click to expand it.
src/screens/home/skin/SkinUploader.js
View file @
d5a7607b
...
...
@@ -143,7 +143,7 @@ const Camera = ({ navigation }) => {
<
Button
title
=
"
Continue for more information
"
style
=
{
styles
.
nextButton
}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_VIDEO
)}
onPress
=
{()
=>
navigation
.
navigate
(
ROUTES
.
SKIN_VIDEO
2
)}
/
>
<
/View
>
<
/View
>
...
...
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