Thanks Eric for reply ;-)

This is my function which adds new drug:


public void addDrug(String drug) throws IOException, ServiceException
{
                ProfileEntry newentry = new ProfileEntry();
                String ccrg = null;
                ccrg = "<ContinuityOfCareRecord xmlns='urn:astm-
org:CCR'><Body><Medications><Medication><Status><Text>Active</Text></
Status><Product><ProductName><Text>" + drug + "</Text></ProductName></
Product></Medication></Medications></Body></ContinuityOfCareRecord>";

                if (ccrg != null) {
                  XmlBlob ccrgElement = new XmlBlob();
                  ccrgElement.setBlob(ccrg);
                  newentry.setXmlBlob(ccrgElement);
                }
                myService.insert(new URL("https://www.google.com/"; + serwis +
"/feeds/profile/ui/" + ID), newentry);
          }

(  where 'serwis' = "health"  )
(  I know, it's very naive way to make ccr ;-)  )

It works quite well - it adds new medications in my profile, but drug
interactions appears only when (for example) I open (on the web site)
one of my medications and I just click 'save' on it (I don't change or
set anything !)
This is interesting problem, but fetching drug interactions was major
functionality of my application ;-) Maybe in future I will finish
it ;-)

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