public static string SerializeXdri(RawXdriDocument rawXdri) { string returnVal = ""; // *** Create serializer for specific document *** XmlSerializer serializer = new XmlSerializer(typeof(RawXdriDocument)); returnVal = SerializeIheDoc(serializer, rawXdri); return(returnVal); }
public RawXdriDocument ToRawDocument() { RawXdriDocument returnDoc = new RawXdriDocument(); // *** Get base type *** POCD_MT000040ClinicalDocument arg = returnDoc as POCD_MT000040ClinicalDocument; // *** Populate from base *** arg = this.AddRawDocumentData(arg); // *** Add image report *** arg.component = this.ImageReport.ToPocdComponent(); return(returnDoc); }