diff --git a/pwa/src/components/PatientInfoForm.tsx b/pwa/src/components/PatientInfoForm.tsx
index 5148559..5e5b16c 100644
--- a/pwa/src/components/PatientInfoForm.tsx
+++ b/pwa/src/components/PatientInfoForm.tsx
@@ -12,14 +12,18 @@ export default function Form(): ReactElement {
// const [name, setName] = useState()
const onSubmit = () => {
+ // This shows how to access the values of the form
const firstNameField: HTMLInputElement = document.getElementById('firstname') as HTMLInputElement
const lastNameField: HTMLInputElement = document.getElementById('lastname') as HTMLInputElement
const nicknameField: HTMLInputElement = document.getElementById('nickname') as HTMLInputElement
- const weightField: HTMLInputElement = document.getElementById('weight') as HTMLInputElement
+ const complaintField1: HTMLInputElement = document.getElementById('complaint1') as HTMLInputElement
+ const complaintField2: HTMLInputElement = document.getElementById('complaint2') as HTMLInputElement
+ const complaintField3: HTMLInputElement = document.getElementById('complaint3') as HTMLInputElement
+
console.log("First name:", firstNameField.value)
console.log("Last name:", lastNameField.value)
console.log("Nickname:", nicknameField.value)
- console.log("Weight:", weightField.value)
+ console.log("Complaints: ", complaintField1.value + " " + complaintField2.value + " " + complaintField3.value)
}
return (
@@ -60,6 +64,13 @@ export default function Form(): ReactElement {
Birth Date
{/* TODO: figure out how to access this value */}
+ Age
+ {/* these don't technically need to be in their own */}
Weight (kg)
- {/* TODO: figure out how to access this value */}
+
+ Height (cm)
+
+ Temp (F)
+
+ Pulse
+ {/* TODO: figure out how to access these values from the money keyboard */}
'Chief Complaint'}>