locked
about Allergy class RRS feed

  • Question

  •  

    We are integrating a web application with healthvault. We are taking Allergy Name, Reaction, Allergy Type and treatment from a page and trying to add them in healthvault database. how ever only allergy name getting added to Healthvault database rest are throwing exception.

    I am not getting why this is happening?

    Allergy allergy = new Allergy();

    allergy.Name.Text = allergyDataHV.AllergyName;

    --Till this point it is working fine

    allergy.Reaction.Text = allergyDataHV.Reaction;

    --problem starts from here even I get the added value in allergyDataHv.Reaction but it is not getting assigned to allergy.Reaction

    allergy.Treatment.Text = allergyDataHV.Treatment;

    allergy.AllergenType.Text=allergyDataHV.AllergyType;

    I will highly appreciate if anybody  could help me solve this problem.

     

     

    Wednesday, December 3, 2008 10:32 AM

Answers

  • hi Monika:

    What is the exception trace you are getting from HealthVault?

    Reaction is of type CodableValue and you should use something like:

    allergy.Reaction = new
    CodableValue("seizures", new CodedValue("seizures", "icd9cm-reactions", "icd", "1.0"));

    Hope this helps.

    regards,
    Vaibhav


    Wednesday, December 3, 2008 7:46 PM

All replies

  • hi Monika:

    What is the exception trace you are getting from HealthVault?

    Reaction is of type CodableValue and you should use something like:

    allergy.Reaction = new
    CodableValue("seizures", new CodedValue("seizures", "icd9cm-reactions", "icd", "1.0"));

    Hope this helps.

    regards,
    Vaibhav


    Wednesday, December 3, 2008 7:46 PM
  • Hi monikamundada,

    if you were not sure of the standard coding, you may opt to have it imported this way:

    allergy.Reaction = new CodableValue("seizures");

    It worked fine with me.

    Mustafa

     


    Mustafa Al-Durra, B.Sc Computer Engineering, MCP, MCDBA, MCAD.NET, SoftHealth Inc. (President/CEO)
    Saturday, August 28, 2010 6:54 PM