none
Issues with deserializing medication item RRS feed

  • Question

  • In our application, we store patient medication items in our own database.

     

    We can serialize the Medication item using the Medication.GetItemXml method, but we are having some issues to deserialize the xml back to medication object.

    First, we couldn't find a public method that we can call to load the xml. The closest method we get is the protected Medication.ParseXml method, but since it’s protected, we need to use reflection to call it. Second, this method doesn’t start parsing  at the root <thing/> node level, so we have to select the <data-xml/> node to pass it to the ParseXml node.

    Is this a bug? Is there a better way to deserialize medication from XML?

    Wednesday, September 10, 2008 7:08 PM

Answers

All replies