I was able to post that CCR snippet successfully
by removing the '\' in:

xmlns='urn:astm-org:CCR\'

Eric

On May 19, 1:19 am, zhang <[email protected]> wrote:
> I created a function to upload test result:
> ======================================================
> public void UploadTestResult(string title, string content, string
> ccrXmlString)
> {
>             AtomEntry newNotice = new AtomEntry();
>
>             newNotice.Title.Text = title;
>             newNotice.Content.Content = content;
>             XmlDocument ccrDoc = new XmlDocument();
>             ccrDoc.LoadXml(ccrXmlString);
>             newNotice.ExtensionElements.Add(new XmlExtension
> (ccrDoc.DocumentElement));
>             HealthService.Insert(new Uri("https://www.google.com/
> health/feeds/profile/ui/" + CurrentPatient.ID), newNotice);}
>
> ======================================================
> And, I used this function as below:
> ======================================================
>     string ccr =
> @"<ContinuityOfCareRecord xmlns='urn:astm-org:CCR\'>
>       <Body>
>         <Results>
>           <Result>
>             <Test>
>               <DateTime>
>                 <Type>
>                   <Text>Collection start date</Text>
>                 </Type>
>                 <ExactDateTime>2009-05-19</ExactDateTime>
>               </DateTime>
>               <Description>
>                 <Text>Blood Pressure, Diastolic (Lower Number)</Text>
>                 <Code>
>                   <Value>18.4248</Value>
>                   <CodingSystem>Google</CodingSystem>
>                 </Code>
>               </Description>
>               <Source>
>                 <Actor>
>                   <ActorID>[email protected]</ActorID>
>                   <ActorRole>
>                     <Text>Patient</Text>
>                   </ActorRole>
>                 </Actor>
>               </Source>
>               <TestResult>
>                 <Value>80</Value>
>                 <Units>
>                   <Unit>mmHg</Unit>
>                 </Units>
>                 <ResultSequencePosition>0</ResultSequencePosition>
>               </TestResult>
>             </Test>
>           </Result>
>         </Results>
>       </Body>
>     </ContinuityOfCareRecord>";
>     UploadTestResult("Test Result", "Blood Pressure Test Result",
> ccr);
> ======================================================
> I debugged into the Execute() function in request.cs file, and the
> response.StatusCode is Created.
>
> But In Google Health's web page,  nothing been appended,  and I can't
> get this entity too.
>
> Thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to