As a secondary question, if I add data throught the Google Health website for a medication, it would appear that it is NOT a CCR record. Is this correct ?
My main problem is that I am trying to attach a CCR record. Here is the code from the samples: http://code.google.com/p/googlehealthsamples/source/browse/trunk/dotNET/health_dotnet_asp_samples/HealthNotices.aspx It fails to build: Argument '1': cannot convert from 'System.Xml.XmlElement' to 'Google.GData.Client.IExtensionElementFactory' >>> newNotice.ExtensionElements.Add(ccrDoc.DocumentElement); I am using the libraries from Google_Data_API_Setup(1.2.3.0).msi Any help is appreciated =================== void PostNotice() { GAuthSubRequestFactory authFactory = new GAuthSubRequestFactory ("Weaver", "Weaver-Profile-Tester"); authFactory.Token = (String)Session["token"]; Service service = new Service(authFactory.Service, authFactory.ApplicationName); service.RequestFactory = authFactory; AtomEntry newNotice = new AtomEntry(); newNotice.Title.Text = Request.Form["subject"]; newNotice.Content.Content = Request.Form["message"]; if (Request.Form["ccr"] != "") { XmlDocument ccrDoc = new XmlDocument(); ccrDoc.LoadXml(Request.Form["ccr"]); newNotice.ExtensionElements.Add(ccrDoc.DocumentElement); } service.Insert(new Uri("https://www.google.com/h9/feeds/ register/default"), newNotice); //blank the form elements since .NET loves to save state subject.Text = message.Text = ccr.Text = ""; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Health Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/googlehealthdevelopers?hl=en -~----------~----~----~----~------~----~------~--~---
