Skip to content

Commit 427b00e

Browse files
added PatientInfoCardQuickActions plugin hook (ohcnetwork#11680)
1 parent a14d35e commit 427b00e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/components/Patient/PatientInfoCard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,14 @@ export default function PatientInfoCard(props: PatientInfoCardProps) {
454454
</div>
455455
</div>
456456
<div
457-
className="flex flex-col items-center justify-end gap-4 px-4 py-1 2xl:flex-row"
457+
className="flex flex-col mt-4 items-center justify-end gap-4 px-4 py-1 2xl:flex-row"
458458
id="consultation-buttons"
459459
>
460+
<PLUGIN_Component
461+
__name="PatientInfoCardQuickActions"
462+
encounter={encounter}
463+
className="w-full lg:w-auto bg-primary-700 text-white hover:bg-primary-600"
464+
/>
460465
{!disableButtons && (
461466
<div
462467
className="flex w-full flex-col gap-3 lg:w-auto 2xl:flex-row"

src/pluginTypes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export type PatientInfoCardActionsComponentType = React.FC<{
3232
className?: string;
3333
}>;
3434

35+
export type PatientInfoCardQuickActionsComponentType = React.FC<{
36+
encounter: Encounter;
37+
className?: string;
38+
}>;
39+
3540
export type PatientInfoCardMarkAsCompleteComponentType = React.FC<{
3641
encounter: Encounter;
3742
}>;
@@ -58,6 +63,7 @@ export type SupportedPluginComponents = {
5863
Scribe: ScribeComponentType;
5964
PatientHomeActions: PatientHomeActionsComponentType;
6065
PatientInfoCardActions: PatientInfoCardActionsComponentType;
66+
PatientInfoCardQuickActions: PatientInfoCardQuickActionsComponentType;
6167
PatientInfoCardMarkAsComplete: PatientInfoCardMarkAsCompleteComponentType;
6268
FacilityHomeActions: FacilityHomeActionsComponentType;
6369
PatientRegistrationForm: PatientRegistrationFormComponentType;

0 commit comments

Comments
 (0)