-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show chapter of diagnosis for principal diagnosis (#6541)
* Add PrincipalDiagnosisCard component and update ConsultationDiagnosisBuilder * Add chapter field to ICD11DiagnosisModel
- Loading branch information
1 parent
0f1e079
commit 427875f
Showing
4 changed files
with
66 additions
and
20 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
25 changes: 25 additions & 0 deletions
25
src/Components/Diagnosis/ConsultationDiagnosisBuilder/PrincipalDiagnosisCard.tsx
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,25 @@ | ||
import { ICD11DiagnosisModel } from "../types"; | ||
|
||
interface Props { | ||
className?: string; | ||
diagnosis: ICD11DiagnosisModel; | ||
} | ||
|
||
export default function PrincipalDiagnosisCard(props: Props) { | ||
return ( | ||
<div className={props.className}> | ||
<div className="rounded-lg border border-gray-400 bg-gray-200 p-4"> | ||
<h3 className="text-lg font-semibold">Principal Diagnosis</h3> | ||
<span className="mt-2 flex w-full flex-col items-center gap-2 text-center text-gray-900"> | ||
<span className="cui-input-base text-base font-bold"> | ||
{props.diagnosis.label} | ||
</span> | ||
<span className="flex flex-wrap gap-x-1 px-2"> | ||
<p>This encounter will be categorised under:</p> | ||
<p className="font-bold">{props.diagnosis.chapter}</p> | ||
</span> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} |
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