protected IClinicalDocument ProcessDocumentXml(string documentXml, VersionNumber version) { IClinicalDocument document = null; // the transformer would ideally be cached ClinicalDocumentTransformer transformer = CreateCDATransformer(); // this is a W3C DOM Document (not to be confused with a CDA Document) XmlDocument xmlAsDoc = CreateW3CDocument(documentXml); XmlToCdaModelResult result = transformer.TransformFromDocument(version, xmlAsDoc); document = (IClinicalDocument)result.GetClinicalDocumentObject(); return(document); }
protected IClinicalDocument ProcessDocumentXml(string documentXml) { IClinicalDocument document = null; // the transformer would ideally be cached ClinicalDocumentTransformer transformer = CreateTransformer(); // this is a W3C DOM Document (not to be confused with a CDA Document) XmlDocument xmlAsDoc = CreateW3CDocument(documentXml); XmlToCdaModelResult result = transformer.TransformFromDocument(MBSpecificationVersion, xmlAsDoc); document = (IClinicalDocument)result.GetClinicalDocumentObject(); ReportErrorsAndWarnings(result, false, false); return(document); }
public ClinicalDocumentValidator(ClinicalDocumentTransformer documentTransformer) { this.documentTransformer = documentTransformer; }
public ClinicalDocumentValidator() { this.documentTransformer = new ClinicalDocumentTransformer(); }