Thanks so much for the response. I was missing the "Type" element.
This works just fine now. Thanks again - Dom
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-
dd'T'hh:mm:ss.sss'Z'");
"<DateTime><Type><Text>Collection start date</Text></
Type><ExactDateTime>" + format.format(new Date()) + "</ExactDateTime></
DateTime>";
On Aug 26, 2:25 pm, "Paul (Google)" <[email protected]> wrote:
> Hi Dom,
>
> The first, second, and fourth formats are supported by Health, and
> should not cause a date parsing error. The other two will certainly
> fail. Could you try to post the CCR below to see if it works for your
> profile? Also, would it be possible for you to share the entire CCR
> Result that you're sending so that we can take a close look at its
> contents?
>
> Paul (Google)
>
> <ContinuityOfCareRecord xmlns="urn:astm-org:CCR">
> <Body>
> <Results>
> <Result>
> <Test>
> <DateTime>
> <Type>
> <Text>Collection start date</Text>
> </Type>
> <ExactDateTime>2010-08-01T00:00:00+00:00</ExactDateTime>
> </DateTime>
> <Description>
> <Text>Some Test</Text>
> </Description>
> </Test>
> </Result>
> </Results>
> </Body>
> </ContinuityOfCareRecord>
>
> On Aug 23, 8:03 pm, Dom <[email protected]> wrote:
>
>
>
> > I am attempting to send test result send data to Google with my
> > application. No matter what I put in for:
> > <Body><Results><Result><Test><DateTime><ExactDateTime>..., I get the
> > above error. Has anyone had success with this? I know the problem is
> > the date, because if I omit it completely Google takes it. The date is
> > kindof important to my application though. Please help...
>
> > I've tried all sorts of formats:
> > 2010-08-10T02:11:03.975Z
> > 2010-08-10
> > 08/10/2010
> > 2010-09-13T17:12:00+00:00
> > August 23, 2010 11:02:07 PM EDT
--
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.