public void AddEntryTemplate(ICodedEntry template) { if (component == null) { component = new CdaBody(true); } component.AddCodedEntry(template); }
/// <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); }
/// <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; }