diff --git a/src/components/ECGList/index.js b/src/components/ECGList/index.js
index 11f9379..2ac4494 100644
--- a/src/components/ECGList/index.js
+++ b/src/components/ECGList/index.js
@@ -52,6 +52,27 @@ export default function ECGList() {
return humanReadableDate;
}
+ const symptomDisplay = (ecg) => {
+ let symptom = `N/A`
+
+ if (ecg.component[4].valueString === "present"){
+ let n = 5;
+ while (ecg.component[n].valueString !== undefined){
+ const new_symptom = ecg.component[n].code.coding[0].display
+ console.log(`${new_symptom} exists.`);
+
+ symptom = `${symptom}, ${new_symptom}`
+ n += 1;
+ }
+ }
+
+ if (symptom !== `N/A`){
+ symptom = symptom.slice(5);
+ }
+
+ return symptom;
+ }
+
const handleInputChange = (index, value) => {
const updatedRows = [...names];
updatedRows[index] = value;
@@ -196,10 +217,9 @@ export default function ECGList() {
-
+