Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SC routing, Start landing page #57

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app/c-cda/scorecard/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import ScorecardHome from '@/components/c-cda/additional/ScorecardHome'

export default function Scorecard() {
return <ScorecardHome />
}
4 changes: 3 additions & 1 deletion src/components/c-cda/CCDAHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ const CCDAHome = () => {
description={
'The SITE C-CDA Scorecard provides an enhanced level of interoperability for C-CDA documents by using a comprehensive scoring system, which allows implementers to improve the data quality and representation of their C-CDA documents.'
}
pathname={'/c-cda/'}
pathname={'/c-cda/scorecard/'}
maxWidth={maxWidth}
imageWidth={maxWidth + 'px'}
/>
{/* TODO: Are we going to make a landing page for the one click scorecard or just link to the ONC page? */}
<CardWithImage
title={'One Click Scorecard'}
cardImage={oneclick}
Expand All @@ -96,6 +97,7 @@ const CCDAHome = () => {
'This area provides tools for testing conformance of artifacts to industry standards and specific criteria'
}
/>
{/* TODO: Below should probably only lilst USCDI v3 and v1, nothing else... */}
<Box paddingBottom={4} display={'flex'} width={'100%'} justifyContent={'space-between'}>
<CardWithImage
title={'2015 Edition'}
Expand Down
50 changes: 50 additions & 0 deletions src/components/c-cda/additional/ScorecardHome.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import SectionHeader from '@shared/SectionHeader'
import { Container } from '@mui/material'
import BannerBox from '@shared/BannerBox'
import styles from '@shared/styles.module.css'
import Link from 'next/link'

export default function ScorecardHome() {
return (
<>
{/* Global Header */}
<BannerBox
breadcrumbs={[
<Link color="inherit" href="/c-cda" key="1" className={styles.link}>
C-CDA
</Link>,
<Link color="inherit" href="/c-cda/scorecard" key="2" className={styles.link}>
Scorecard
</Link>,
]}
heading={'C-CDA Scorecard'}
description={
<>
The SITE C-CDA Scorecard provides an enhanced level of interoperability for C-CDA documents by using a
comprehensive scoring system, which allows implementers to improve the data quality and representation of
their C-CDA documents.
</>
}
description2={
<>
<b>PHI Note:</b> The C-CDA Scorecard does not retain your submitted C-CDA file as the file is deleted from
the server immediately after processing. However, we strongly suggest that you do not include any Protected
Health Information (PHI) or Personally Identifiable Information (PII) in your C-CDA file submissions to the
Scorecard. Click{' '}
<a
href="http://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/index.html"
target="_blank"
>
here
</a>{' '}
for more information on how to de-identify PHI.
</>
}
/>
{/* Main Content */}
<Container>
<SectionHeader header={'Run the Scorecard'} subHeader={'Upload your file or try the demo'} />
</Container>
</>
)
}
6 changes: 5 additions & 1 deletion src/components/shared/BannerBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export interface BannerProps {
subHeading?: string
isTourButton?: boolean
description: React.ReactNode
description2?: React.ReactNode
}
const BannerBox = ({ breadcrumbs, heading, subHeading, description, isTourButton }: BannerProps) => {
const BannerBox = ({ breadcrumbs, heading, subHeading, description, isTourButton, description2 }: BannerProps) => {
const subHeadingAndTourButtonBoxStyle = {
display: 'flex',
justifyContent: 'space-between',
Expand All @@ -34,6 +35,9 @@ const BannerBox = ({ breadcrumbs, heading, subHeading, description, isTourButton
<Typography variant="body1" sx={{ pt: 1 }}>
{description}
</Typography>
<Typography variant="body1" sx={{ pt: 1 }}>
{description2}
</Typography>
</Container>
</Box>
)
Expand Down