locked
Basic Demograpghic Information RRS feed

  • Question

  • Hi,

     

    I developed a SODA Application to add and retrieve some health data fields..  My problem is Basic Demographic Information say Gender, Language, Birth Year cannot be fetched . Pls help me.. I have written the code as below,

        HealthRecordAccessor accessor = new HealthRecordAccessor(authConnection, authConnection.GetPersonInfo().GetSelfRecord().Id);
                         
                            HealthRecordSearcher searchbasic = accessor.CreateSearcher();
                        
                            searchbasic.Filters.Add(new HealthRecordFilter(Basic.TypeId));

                            HealthRecordItemCollection searchbasicResultsGroup = searchbasic.GetMatchingItems()[0];
                            if (searchbasicResultsGroup.Count > 0)
                            {
                                Basic bs;
                                bs = (Basic)searchbasicResultsGroup[0];
                                lbllanguage.Text = bs.Languages.ToString();
                                lblbirthyear.Text = bs.BirthYear.ToString();
                                lblgender.Text = bs.Gender.ToString();
                            }

    searchbasicResultsGroup.Count is displaying as 0 since there is a Basic Demographic info in my healthvault record..

    Please do let me know the solution asap...

     


    Srimathi Balaji
    Tuesday, January 10, 2012 11:02 AM

Answers

  • Is your application configured to be able to access the Basic Demographic Information type?
    • Marked as answer by Shrimathi Thursday, January 12, 2012 12:20 PM
    Tuesday, January 10, 2012 4:40 PM