Ejemplo n.º 1
0
        public static string DropOffToPatient(OfflineWebApplicationConnection connection,
                                              string fromName,
                                              string localPatientId,
                                              string secretQuestion,
                                              string secretAnswer,
                                              ref List<HealthRecordItem> newItems)
        {
            ConnectPackageCreationParameters parameters = new ConnectPackageCreationParameters(connection,
                                                                fromName,
                                                                secretQuestion,
                                                                secretAnswer,
                                                                localPatientId);

            String secretCode = ConnectPackage.Create(parameters, newItems);
            return (secretCode);
        }
Ejemplo n.º 2
0
        private void ContributeCCDAViaDOPU()
        {
            OfflineWebApplicationConnection connection = new OfflineWebApplicationConnection(HealthWebApplicationConfiguration.Current.ApplicationId,
                                                                                             HealthWebApplicationConfiguration.Current.HealthVaultMethodUrl,
                                                                                             Guid.Empty);

            connection.Authenticate();
            string packageId = ConnectPackage.Create(connection, "friendly name", _DOPUQuestion, _DOPUAnswer, "patientID", new[] { _newCcdaItem });

            Uri pickupUrl = new Uri(HealthApplicationConfiguration.Current.HealthVaultShellUrl, "patientwelcome.aspx?packageid=" + packageId);

            OutputMessage(lblSuccessOutput, "Successfully sent a DOPU package containing CCDA document to HealthVault. Visit the following URL to add the CCDA to a HealthVault record:");

            HyperLink link = new HyperLink();

            link.Text        = pickupUrl.ToString();
            link.NavigateUrl = pickupUrl.ToString();
            link.Target      = "_blank";
            divSuccess.Controls.Add(link);
        }