With a profile feed being "...a set of entries that collectively describe a 
user's medical conditions, medications, .." I figured that I'd never need a 
register feed as "... used to collect data from sources external to Google. ". 
I think you're saying that we'll be able to deal with multiple tests in a 
single CCR result at a future time? If one is responsible for the GETting only, 
ie not the POSTing, then it's also possible that we may be looking at the wrong 
feed?

Perhaps I'm missing the point of a "register" feed?


On 16/02/2011, at 2:32 PM, Paul (Google) wrote:

> Hi Skizo,
> 
> The profile feed currently doesn't support compound results or panels (i.e. 
> two TestResult elements in a single Result); however, the register feed does. 
>  If you don't need access to the entry ids returned from the profile feed, 
> then you'll certainly want to post compound results using the register feed.
> 
> If you are building an app that allows a user to update and delete data from 
> Health, instead of using the entry ids returned from the profile feed when 
> you post data, you could also post data via the register feed and 
> subsequently retrieve the data, with entry ids, from the profile feed.  By 
> using the published-min query parameter on the profile feed, you should be 
> able to get the entry ids for the results you posted to the register feed.
> 
> http://code.google.com/apis/health/docs/2.0/reference.html#Parameters
> 
> I hope this helps!
> 
> Paul
> 
> 
> On Wed, Feb 9, 2011 at 10:01 AM, Eskizo <[email protected]> wrote:
> Hi!
> 
> I've read that it's possible to insert multiple Test into a Result
> item, but I can't find the way!
> 
> If I insert a Result with only one Test, it works, however if I used
> the same code in order to insert 2 or more test, it fails!
> I use the API for Java and that's a summary of my code:
> 
> CCR data to insert:
> XMLData =
> <urn:Body xmlns:urn="urn:astm-org:CCR">
>        <urn:Results>
>                <urn:Result>
>                        <urn:CCRDataObjectID/>
>                        <urn:Description>
>                                <urn:Text>Glucose Log</urn:Text>
>                        </urn:Description>
>                        <urn:Test>
>                                
> <urn:Description><urn:Text>Glucose</urn:Text></urn:Description>
>                                <urn:TestResult>
>                                        <urn:Value>120</urn:Value>
>                                        
> <urn:Units><urn:Unit>mg/dl</urn:Unit></urn:Units>
>                                </urn:TestResult>
>                        </urn:Test>
>                </urn:Result>
>        </urn:Results>
> </urn:Body>
> 
> Then I get the ProfileFeed of my profile and:
>        ProfileEntry entry2 = profileFeed.createEntry();
> 
>        entry2.setContinuityOfCareRecord(new
> com.google.gdata.data.health.ContinuityOfCareRecord());
>        entry2.getContinuityOfCareRecord().setXmlBlob(new XmlBlob());
> 
> entry2.getContinuityOfCareRecord().getXmlBlob().setBlob(XMLdata);
>        String url = http://www.google.com/health/feeds/profile/ui/"; +
> profileID;
>        entry2 = healthService.insert(new URL(url), entry2);
> 
> AND, IT WORKS!!
> 
> HOWEVER, if the CCR data has more than one test:
> 
> XMLData =
> <urn:Body xmlns:urn="urn:astm-org:CCR">
>        <urn:Results>
>                <urn:Result>
>                        <urn:CCRDataObjectID/>
>                        <urn:Description>
>                                <urn:Text>Blood Test</urn:Text>
>                        </urn:Description>
>                        <urn:Test>
>                                
> <urn:Description><urn:Text>Glucose</urn:Text></urn:Description>
>                                <urn:TestResult>
>                                        <urn:Value>120</urn:Value>
>                                        
> <urn:Units><urn:Unit>mg/dl</urn:Unit></urn:Units>
>                                </urn:TestResult>
>                        </urn:Test>
>                        <urn:Test>
>                                
> <urn:Description><urn:Text>Creatinine</urn:Text></urn:Description>
>                                <urn:TestResult>
>                                        <urn:Value>70</urn:Value>
>                                        
> <urn:Units><urn:Unit>mmol/dl</urn:Unit></urn:Units>
>                                </urn:TestResult>
>                        </urn:Test>
>                </urn:Result>
>        </urn:Results>
> </urn:Body>
> 
> IT FAILS!
> 
> Someone can help me!?
> I've tried to insert firstly the Result with only one Test and later
> insert another test and update, but it fails too...
> 
> Another problem I've is when I try to insert two Results at a time for
> example:
> 
> XMLData =
> <urn:Body xmlns:urn="urn:astm-org:CCR">
>        <urn:Results>
>                <urn:Result>
>                        ...
>                </urn:Result>
>                <urn:Result>
>                        ...
>                </urn:Result>
>        </urn:Results>
> </urn:Body>
> 
> IT FAILS TOO!!!
> 
> Thanks in advance!
> 
> Skizo
> 
> --
> 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.
> 
> 
> 
> -- 
> 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.

-- 
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