public virtual CdaValidatorResult Validate(XmlDocument xmlDocument, VersionNumber version, GenericCodeResolverRegistry codeResolverRegistryOverride ) { XmlToCdaModelResult transformResults = this.documentTransformer.TransformFromDocument(version, xmlDocument, codeResolverRegistryOverride ); return(new CdaValidatorResult(transformResults.GetErrors())); }
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); }