From 93995fc3ff88a16ef14e822e7096b83727d71e99 Mon Sep 17 00:00:00 2001 From: qscgyjqscgyj Date: Thu, 28 Nov 2024 14:56:30 +0100 Subject: [PATCH] Added additional launch context to encounter create modal --- src/components/ModalNewEncounter/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ModalNewEncounter/index.tsx b/src/components/ModalNewEncounter/index.tsx index 2b32b173..f6ef65d0 100644 --- a/src/components/ModalNewEncounter/index.tsx +++ b/src/components/ModalNewEncounter/index.tsx @@ -1,7 +1,7 @@ import { PlusOutlined } from '@ant-design/icons'; import { t } from '@lingui/macro'; import { Button, notification } from 'antd'; -import { Patient } from 'fhir/r4b'; +import { ParametersParameter, Patient } from 'fhir/r4b'; import { useMemo, useState } from 'react'; import { Modal } from 'src/components/Modal'; @@ -12,9 +12,10 @@ import { Role, matchCurrentUserRole } from 'src/utils/role'; export interface ModalNewEncounterProps { patient: Patient; reloadEncounter: () => void; + launchContextParameters?: ParametersParameter[]; } -export const ModalNewEncounter = ({ patient, reloadEncounter }: ModalNewEncounterProps) => { +export const ModalNewEncounter = ({ patient, launchContextParameters, reloadEncounter }: ModalNewEncounterProps) => { const [isModalVisible, setIsModalVisible] = useState(false); const title = useMemo( () => @@ -55,7 +56,10 @@ export const ModalNewEncounter = ({ patient, reloadEncounter }: ModalNewEncounte setIsModalVisible(false)} />