Answered Dietary Intake Edit strange values

  • Monday, November 19, 2012 1:13 AM
     
     

    I upload dietary intake to healthvault and a snapshot XML looks like this

    <cholesterol>

    <kg>0.0022</kg>
    <display units="mg" units-code="mg">22</display>
    </cholesterol>
    <calcium>

    It displays okay in HealthVault (in this example) 22 mg. However if i edit the Dietary intake the edit box shows 2200 mg. Is there something i can do to get the conversion right or is this an error in HealthVault on how to display the XML correctly when you edit the entry?

    Thanks Peter

All Replies

  • Monday, November 19, 2012 7:18 PM
     
     Answered

    Hi Peter,

    22 mg is 0.000022 kg. The XML should be:

    <kg>0.000022</kg>
    <display units="mg" units-code="mg">22</display>

    Thanks
    Santhosh
  • Tuesday, November 20, 2012 2:57 AM
     
     

    Oops you are so correct! Fixed it in my code. Too many conversions from kg to mg to mcg etc etc.

    Thanks Peter