예제 #1
0
        public void AddEntryTemplate(ICodedEntry template)
        {
            if (component == null)
            {
                component = new CdaBody(true);
            }

            component.AddCodedEntry(template);
        }
예제 #2
0
        /// <summary>
        /// Add a Structured Body to the CDA document, generate a guid for the id.
        /// </summary>
        public void AddStructuredBodyTemplate(Guid Id,ITextSection structuredTextTemplate)
        {
            if (component == null)
            {
                component = new CdaBody(true);
            }

            component.Id = Id;
            component.AddTextSection(structuredTextTemplate);
        }
예제 #3
0
        /// <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;
        }