Hi everyone,
I'm new with Google Health API and CCR. I'm working on Java to
integrate the app I'm trying to do in Android.
I'd like to get data from Test result and drug drug interaction and
the post some data.
I guess should done following this example:
Query query = new Query(new
URL("https://www.google.com/health/feeds/register/ui/profileID"));
try {
RegisterFeed result = healthService.query(query,
RegisterFeed.class);
for (RegisterEntry entry : result.getEntries()) {
// Display author
System.out.println(entry.getAuthors().get(0).getName());
// Display date sent
System.out.println(entry.getPublished().toString());
// Get subject of notice
System.out.println(entry.getTitle().getPlainText());
// Get notice message body
TextContent content = (TextContent) entry.getContent();
System.out.println(content.getContent().getPlainText());
// Print out CCR information attached to the notice
if (entry.getXmlBlob().getBlob().length() > 0) {
System.out.println(entry.getXmlBlob().getBlob());
}
}
}
Adding CategoryFilter to the query:
Labtest. This maps to Results
Medication
Condition
Payer. This maps to insurance information.
Procedure
Immunization
Allergy. This maps to Alerts
Demographics. This maps to Actor, VitalSigns, FunctionalStatus and
SocialHistory.
Item categories
can be this right?:
Query query = new Query(new
URL("https://www.google.com/health/feeds/register/
ui/"+firstProfileID));
Category category = new Category("Allergy");
Query.CategoryFilter categoryFilter = new
Query.CategoryFilter(category);
query.addCategoryFilter(categoryFilter);
I've got a bad request :(
Other thing I'd like to know is what I need to parse CCR, ccr4j?
Thanks a lot
--
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.