Bess,

I'm doing this to. The difference is that the elements you are extracting
are hard coded in the FindChildren('element'). I took the different
approach.

1) auto generate a schema from the atom feed such as entry.GetMedications()
2) pass the schema and the xml to lxml.objectify
3) get the objectified object back
4) recursively identify relevant CCR elements (ie, not lxml stuff) and using
a metaclass create objects to represent them

The produced Python object ends up like this...

(obj) Medication
         (obj) Actor
                  (attr) ActorID
                  (obj) ActorRole
                           (attr)Text
        (obj) Product
                 (obj) ProductName
                           (attr) Text
etc...

With my approach, if any of the implemented subset of GoogleHealth ever
changes, it will be automatically recognized and accounted for.

- Jim


On Tue, Nov 24, 2009 at 6:44 AM, Bess Ho <[email protected]> wrote:

> Yes Reggie you can extract entire CCR from Google Health.
>
> You can see our experimental architecture approach here
> http://www.slideshare.net/bess.ho/google-health-architecture-api
>
> Feel free to check out our code and contribute your thoughts
>
> Bess
> CMO lead developer
>
>
> On Fri, Nov 20, 2009 at 10:10 PM, reggieboy <[email protected]>wrote:
>
>> Hello Guys,
>>
>> I would like to develop a rich client application that would be able
>> to communicate/sync with google health.
>> And if possible? does google health allows downloading of all master
>> list data such as condition, allergies, procedures, medication etc.
>>
>> Thanks,
>> Reggie
>>
>> --
>>
>> 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]<googlehealthdevelopers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/googlehealthdevelopers?hl=.
>>
>>
>>
>
>
> --
> Bess Ho
> UI Architect / Developer / Designer
> iPhone Developer
> Silicon Valley Web Builder (SVWB) Founder
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain CONFIDENTIAL material. If you receive
> this material/information in error, please contact the sender and delete or
> destroy the material/information.
>
> --
> 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]<googlehealthdevelopers%[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