I'm curious if anyone out there successfully uses the Python Health
API? I'm not having much success with it. I'm using the gdata egg
2.0.4 from pypi.

I have a h9 test account created. I've added several allergies,
immunizations, procedures, conditions, medications to it. I connect
and set the token to my upgraded token.

I get the profilefeed, the entry, and iterate.

profile_feed = client.GetProfileFeed()
entries = profilefeed.entry
for e in entries:
    meds = e.ccr.GetMedications()

Of all the things I've added to this profile, the only function that
seems to work (ie, return something not None) is GetMedications. The
other functions such as Immunizations do stuff like return None 5
times even though I have 2 immunizations set on the account. The code
describing how to extract the medications actually seems to "somewhat"
work except for the problem I'm about to describe.

http://code.google.com/apis/health/docs/1.0/developers_guide_python.html#ExtractCCRElements

Using the code described at the above url I get the following result.
I have 2 medications hooked up the account but instead it returns the
1st medication 3 times (and only partially the 1st 2 times).

A& D
A& D
A& D Emollient

The actual medications added to the profile are...

A & D  Emollient
A-Caro-25

I don't even see A-Care-25 in the results.

- Jim

--

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].
For more options, visit this group at 
http://groups.google.com/group/googlehealthdevelopers?hl=.


Reply via email to