Generate CCD for Direct Message


  • Is there a way in the APIs to generate a CCD or CCR that I can then send via Direct APIs to an EMR? I know I can export one and then attach it to a message sent from the message center app, but this seems inefficient. Is there a way to automate this in a health vault app?

    I searched around in forums, but didn't see any definitive answers. Looks like I might be able to use HealthRecordSearcher, HealthRecordFilter, and then use the searcher's GetTransformedItems("toccd") method. Is that still the best approach?


    Wednesday, October 02, 2013 6:51 PM

All replies

  • If you are using the .NET SDK, then you can use the HealthRecordExporter class. This will export items from the record based on the HealthRecordFilters you provide. Use the HealthRecordExporter ctor that takes a HealthRecordAccessor and a string and specify either "toccd" or "toccr" as appropriate. Add HealthRecordFilters to the Filters property, and then call ExportItems(). The result will be a string containing an XML document of the specified type.

    Friday, November 08, 2013 6:28 PM