mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-12-02 10:55:38 +00:00
added pulse, temp, height
This commit is contained in:
1 parent
38cfe4a650
commit
3836077047
1 file changed
+38
-3
@@ -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 {
|
||||
<List.Item arrow="horizontal">Birth Date</List.Item>
|
||||
{/* TODO: figure out how to access this value */}
|
||||
</DatePicker>
|
||||
<InputItem
|
||||
type="money"
|
||||
moneyKeyboardAlign="left"
|
||||
clear
|
||||
id = 'age'
|
||||
>Age </InputItem>
|
||||
{/* these don't technically need to be in their own <List/> */}
|
||||
|
||||
<List>
|
||||
<InputItem
|
||||
@@ -68,21 +79,45 @@ export default function Form(): ReactElement {
|
||||
clear
|
||||
id = 'weight'
|
||||
>Weight (kg)</InputItem>
|
||||
{/* TODO: figure out how to access this value */}
|
||||
|
||||
<InputItem
|
||||
type="money"
|
||||
moneyKeyboardAlign="left"
|
||||
clear
|
||||
id = 'height'
|
||||
>Height (cm)</InputItem>
|
||||
|
||||
<InputItem
|
||||
type="money"
|
||||
moneyKeyboardAlign="left"
|
||||
clear
|
||||
id = 'temp'
|
||||
>Temp (F)</InputItem>
|
||||
|
||||
<InputItem
|
||||
type="money"
|
||||
moneyKeyboardAlign="left"
|
||||
clear
|
||||
id = 'pulse'
|
||||
>Pulse</InputItem>
|
||||
{/* TODO: figure out how to access these values from the money keyboard */}
|
||||
</List>
|
||||
<List renderHeader={() => 'Chief Complaint'}>
|
||||
<TextareaItem
|
||||
placeholder="1."
|
||||
// autoHeight
|
||||
rows={2}
|
||||
id = 'complaint1'
|
||||
/>
|
||||
<TextareaItem
|
||||
placeholder="2."
|
||||
rows={2}
|
||||
id = 'complaint2'
|
||||
/>
|
||||
<TextareaItem
|
||||
placeholder="3."
|
||||
rows={2}
|
||||
id = 'complaint3'
|
||||
/>
|
||||
</List>
|
||||
<Button onClick={onSubmit} >Submit</Button>
|
||||
|
||||
Reference in new issue
Block a user