Skip to content

Commit

Permalink
Small fixes to id names
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 4, 2024
1 parent e3fdcf9 commit 86b19ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions frontend/src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function HomePage() {
setMedicalNotes([])
toast({
title: "Info",
description: "No medical notes found for this patient",
description: "No clinical notes found for this patient",
status: "info",
duration: 3000,
isClosable: true,
Expand All @@ -128,7 +128,7 @@ function HomePage() {
}

if (!response.ok) {
throw new Error('Failed to fetch medical notes')
throw new Error('Failed to fetch clinical notes')
}

const data = await response.json()
Expand All @@ -141,10 +141,10 @@ function HomePage() {
isClosable: true,
})
} catch (error) {
console.error('Error loading medical notes:', error)
console.error('Error loading clinical notes:', error)
toast({
title: "Error",
description: error instanceof Error ? error.message : "An error occurred while loading medical notes",
description: error instanceof Error ? error.message : "An error occurred while loading clinical notes",
status: "error",
duration: 3000,
isClosable: true,
Expand All @@ -168,7 +168,7 @@ function HomePage() {
<Card bg={cardBgColor} p={6} borderRadius="xl" shadow="lg" borderWidth={1} borderColor={borderColor}>
<CardBody>
<Heading as="h1" size="xl" color={primaryColor} mb={4}>Clinical Notes Dashboard</Heading>
<Text fontSize="lg" color={textColor}>Access and analyze patient medical records efficiently.</Text>
<Text fontSize="lg" color={textColor}>Load and extract entities from clinical notes.</Text>
</CardBody>
</Card>

Expand All @@ -180,7 +180,7 @@ function HomePage() {

<Card bg={cardBgColor} p={6} borderRadius="xl" shadow="lg" borderWidth={1} borderColor={borderColor}>
<CardBody>
<Heading as="h2" size="lg" color={secondaryColor} mb={6}>Load Medical Notes</Heading>
<Heading as="h2" size="lg" color={secondaryColor} mb={6}>Load Clinical Notes</Heading>
<Flex direction={{ base: 'column', md: 'row' }} mb={4} align="center">
<Select
value={collection}
Expand Down Expand Up @@ -230,7 +230,7 @@ function HomePage() {

<Card bg={cardBgColor} p={6} borderRadius="xl" shadow="lg" borderWidth={1} borderColor={borderColor}>
<CardBody>
<Heading as="h2" size="lg" color={secondaryColor} mb={6}>Medical Notes</Heading>
<Heading as="h2" size="lg" color={secondaryColor} mb={6}>Clinical Notes</Heading>
{isLoading ? (
<VStack spacing={4}>
{[...Array(5)].map((_, index) => (
Expand Down Expand Up @@ -272,7 +272,7 @@ function HomePage() {
</Table>
</Box>
) : (
<Text>No medical notes available. Please load notes for a patient.</Text>
<Text>No clinical notes available. Please load notes for a patient.</Text>
)}
</CardBody>
</Card>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/note/[collection]/[noteId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ function NotePage() {
<VStack align="stretch" spacing={6}>
<Flex wrap="wrap" gap={2}>
<Badge colorScheme="blue">Note ID: {note.note_id}</Badge>
<Badge colorScheme="green">Subject ID: {note.subject_id}</Badge>
<Badge colorScheme="purple">HADM ID: {note.hadm_id}</Badge>
<Badge colorScheme="green">Patient ID: {note.patient_id}</Badge>
<Badge colorScheme="purple">Encounter ID: {note.encounter_id}</Badge>
<Badge colorScheme="orange">Collection: {collection}</Badge>
</Flex>
<Divider />
Expand Down

0 comments on commit 86b19ab

Please sign in to comment.