コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ClinicalDocumentValidator(ClinicalDocumentTransformer documentTransformer)
 {
     this.documentTransformer = documentTransformer;
 }
コード例 #4
0
 public ClinicalDocumentValidator()
 {
     this.documentTransformer = new ClinicalDocumentTransformer();
 }