private void OpenPediatricGrowthChartApplication(object sender, EventArgs e) { IPatientData patientData = ActiveMdiChild as IPatientData; if (patientData == null) { MessageBox.Show(this, "No patient has been selected, please select a patient", "No patient selected", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } SMARTForm smartForm = new SMARTForm(); smartForm.MdiParent = this; smartForm.WindowState = FormWindowState.Maximized; string applicationKey = ReflectionUtility.GetPropertyValue(sender, "Tag", string.Empty) as string; SmartApplication application = Globals.GetSmartApplicationSettings(applicationKey); smartForm.Show(); smartForm.LoadSmartApp(application, Globals.ApplicationSettings.FhirBaseUrl, "0a25036c-ed4c-4fad-a806-3dec4d58bc42"); }
public void LoadSmartApp(SmartApplication application, string fhirBaseUrl, string launchId) { _browser.Load($"{application.Url}?iss={fhirBaseUrl}&launch={launchId}"); }