This project has moved and is read-only. For the latest updates, please go here.

Running into errors trying during installation of Everest on Visual Studio 2013

Aug 14, 2015 at 2:25 PM

I'm trying to use Everest for the first time to work with CCD records. During installation I was running into errors.

Example: Installation stopped because the directory for the ProjectType value did not exist. The project type is invalid for your installation of Visual Studio.

Is Everest only supported by Visual Studio 2010? I'm currently using Visual Studio 2013. Is there a workaround of some sort?
Aug 14, 2015 at 5:02 PM
Hi San,

The templates are only compatible with Visual Studio 2008 and 2010 as we use VSI to install the templates, however you can use Everest in all versions of Visual Studio. This is something that we're looking into correcting in the 1.3 releases of Everest.

The easiest way to use Everest in VS2013 without the templates is to manually add the references to your project. You can create a new C# project (any type, except mobile) and add references to the following DLLs:

MARC.Everest.dll (required)
MARC.Everest.Formatters.XML.ITS1.dll (If you want to render the instances to XML)
MARC.Everest.Formatters.XML.DataTypes.R1.dll (If you're rendering CDAs or NE2008 messages)
MARC.Everest.Formatters.XML.DataTypes.R2.dll (If you're rendering NE2010 messages)
MARC.Everest.Connectors.WCF.dll (If you want to send messages via WCF)
MARC.Everest.Connectors.File.dll (If you want to publish/subscribe to messages in a directory)

To get the structures add a reference to the following DLLs:

MARC.Everest.RMIM.UV.NE2008.dll (If you want to do PIX/PDQv3 or other NE2008 based transactions)
MARC.Everest.RMIM.UV.NE2010.dll (If you want to do NE2010 based transactions)
MARC.Everest.RMIM.UV.CDAr2.dll (IF you want to construct CDA documents)
MARC.Everest.RMIM.CA.R020401.dll (If you're creating pan-Canadian messages)
MARC.Everest.RMIM.CA.R020402.dll (If you're creating pan-Canadian messages)
MARC.Everest.RMIM.CA.R020403.dll (If you're creating pan-Canadian messages)

We're looking into how to fix the templates issue for VS2012/2013/2015 as well as providing assistance on modern Operating Systems (i.e. Windows 10).

Aug 20, 2015 at 7:42 PM
Thanks for the response!

I'm still hitting some roadblocks. I'm trying to parse a CCD record to display/store specific data fields from the document. i.e. retrieving information from the XML. I've read through the reference book but haven't been able to achieve what I need. Is there any example code of something similar that you could provide? Or could you give me an idea of the steps that I'd need to follow to do this.
Aug 25, 2015 at 3:59 PM
The easiest way to parse a document from XML is to use a formatter. The sample below is from memory (I'm on vacation and don't have VS on this computer to try it out):
XmlIts1Formatter fmtr = new XmlIts1Formatter();
fmtr.GraphAides.Add(new DatatypesR1Formatter(R1FormatterCompatibilityMode.ClinicalDocumentArchitecture);
fmtr.ValidateConformance = false;
ClinicalDocument doc = null;
using(FileStream fs = File.OpenRead(pathToFile))
    IFormatterParseResult result = fmtr.Parse(fs);
    doc = result.Structure as ClinicalDocument;

// Do stuff with doc object here.
Hope that helps!