-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from advanced-computer-lab-2023/health_records
Health records
- Loading branch information
Showing
16 changed files
with
687 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
import { useParams } from 'react-router-dom'; | ||
|
||
import { HealthRecordView } from 'src/sections/healthRecords'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function HealthRecordPage() { | ||
let { patientID } = useParams(); | ||
return ( | ||
<> | ||
<Helmet> | ||
<title> Health Records </title> | ||
</Helmet> | ||
|
||
<HealthRecordView /> | ||
<HealthRecordView patientID={patientID} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
|
||
import { PatientView } from 'src/sections/patients/view'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function PatientPage() { | ||
return ( | ||
<> | ||
<Helmet> | ||
<title> Patients </title> | ||
</Helmet> | ||
|
||
<PatientView /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
import TableRow from '@mui/material/TableRow'; | ||
import TableCell from '@mui/material/TableCell'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function TableEmptyRows({ emptyRows, height }) { | ||
if (!emptyRows) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<TableRow | ||
sx={{ | ||
...(height && { | ||
height: height * emptyRows, | ||
}), | ||
}} | ||
> | ||
<TableCell colSpan={9} /> | ||
</TableRow> | ||
); | ||
} | ||
|
||
TableEmptyRows.propTypes = { | ||
emptyRows: PropTypes.number, | ||
height: PropTypes.number, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
import Paper from '@mui/material/Paper'; | ||
import TableRow from '@mui/material/TableRow'; | ||
import TableCell from '@mui/material/TableCell'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
// ---------------------------------------------------------------------- | ||
|
||
export default function TableNoData({ query }) { | ||
return ( | ||
<TableRow> | ||
<TableCell align="center" colSpan={6} sx={{ py: 3 }}> | ||
<Paper | ||
sx={{ | ||
textAlign: 'center', | ||
}} | ||
> | ||
<Typography variant="h6" paragraph> | ||
Not found | ||
</Typography> | ||
|
||
<Typography variant="body2"> | ||
No results found for | ||
<strong>"{query}"</strong>. | ||
<br /> Try checking for typos or using complete words. | ||
</Typography> | ||
</Paper> | ||
</TableCell> | ||
</TableRow> | ||
); | ||
} | ||
|
||
TableNoData.propTypes = { | ||
query: PropTypes.string, | ||
}; |
Oops, something went wrong.