/// <summary>
        /// Add a non XML body to the CDA document. The supplied file will be BASE64 encoded and inserted in the CDA document.
        /// </summary>
        /// <param name="mediaType"></param>
        /// <param name="filename"></param>
        public void AddNonXMLBody(string mediaType, string filename)
        {
            CdaBody nonXML = new CdaBody(true);

            nonXML.SetNonXmlBody(mediaType, filename);

            component = nonXML;
        }
        public void AddEntryTemplate(ICodedEntry template)
        {
            if (component == null)
            {
                component = new CdaBody(true);
            }

            component.AddCodedEntry(template);
        }
        /// <summary>
        /// Add a Structured Body to the CDA document
        /// </summary>
        public void AddStructuredBodyTemplate(ITextSection structuredTextTemplate)
        {
            if (component == null)
            {
                component = new CdaBody(true);
            }

            component.AddTextSection(structuredTextTemplate);
        }