Microsoft Developer Network > Forums Home > HealthVault Forums > HealthVault Data Types > CCD: Populating Summary column in HealthVault Shell using API
Ask a questionAsk a question
 

AnswerCCD: Populating Summary column in HealthVault Shell using API

  • Friday, June 19, 2009 2:36 PMScott on Vashon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If I upload a ccd through the shell manually, I have the option to put in a description which shows up in the "Summary" column of the CCD grid view.  If I'm uploading a CCD via the API using code like this:

     

            XmlDocument ccdDocument = new XmlDocument();

            ccdDocument.LoadXml(txtMyCCDBlob);  

            HealthRecordItem ccd = new HealthRecordItem(CCD_THING_GUID, ccdDocument);

     

    How can I populate the property that surfaces in the "Summary" column of the CCD grid view of the Shell?  By default, it populates that property with "Continuity of Care Document (CCD)".

    FYI: I'm displaying this information in a web site (MiCare).

    My Intention for asking this question is two-fold:
    1.  I'd like to have some descriptive summary information that tells the user which note is most relevant to look at.  
    2.  I'd like to pre-load this summary information in an expandable view where the user doesn't retrieve the full content of the CCD until they click on the summary information they're interested in.

     

Answers

  • Friday, June 19, 2009 4:40 PMMatt Wagner _MSFT_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Scott,

    This "Summary" column is currently displaying whatever is set in the common/note element in the item XML.  Every HealthVault item has this field.  You can set it through the SDK by using the HealthRecordItem.CommonItemData.Note element.  If there is no note present, then "Continuity of Care Document (CCD)" is displayed instead.

    Note that we're making some improvements in this area in an upcoming release, so the behavior will change slightly.  The column will still first check for the note element, if no data is present then it will attempt to use the title element in the CCD itself.  Finally, if there is no note or title, then the string "Health Information" will be used.

    -Matt W.

All Replies

  • Friday, June 19, 2009 4:40 PMMatt Wagner _MSFT_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Scott,

    This "Summary" column is currently displaying whatever is set in the common/note element in the item XML.  Every HealthVault item has this field.  You can set it through the SDK by using the HealthRecordItem.CommonItemData.Note element.  If there is no note present, then "Continuity of Care Document (CCD)" is displayed instead.

    Note that we're making some improvements in this area in an upcoming release, so the behavior will change slightly.  The column will still first check for the note element, if no data is present then it will attempt to use the title element in the CCD itself.  Finally, if there is no note or title, then the string "Health Information" will be used.

    -Matt W.