LEADTOOLS医疗存储服务器自定义数据库系列教程

LEADTOOLS Recognition Imaging SDK是精选的LEADTOOLS SDK功能集,旨在在企业级文档自动化解决方案中构建端到端文档成像应用程序,这些解决方案需要OCR,MICR,OMR,条形码,表单识别和处理,PDF,打印捕获 ,档案,注释和图像查看功能。 这套功能强大的工具利用LEAD屡获殊荣的图像处理技术,智能识别可用于识别和提取任何类型的扫描或传真形式图像数据的文档功能。

LEADTOOLS Recognition Imaging SDK试用版

概述

LEAD Medical Storage Server可以配置为,使用特定的数据库模式来存储患者检验数据和实例信息。同时,也可以将LEAD Medical Storage Server配置为,使用具有不同架构的数据库来存储此信息。便是描述了实现上述目标的体系结构和必要步骤。在本教程中,您将学会创建一个示例SQL数据库并将其连接到LEAD医疗存储服务器。

“自定义数据库”系列教程介绍

在本系列文章中,任何定义为允许数据库与新模式交互的类都以“我”开头。这包括覆盖现有类的新类和类。

在内部,LEAD医用存储服务器使用System.Data.DataSet类作为应用程序和数据库之间的接口。从数据库读取的任何数据都读入System.Data.DataSet。同样,写入数据库的任何数据首次存储在System.Data.DataSet对象中,然后写入数据库。

本博客分为11个主题。前几个主题描述了现有组件如何在替换模式下工作,如何修改行为以与其他数据库一起工作,以及如何通过修改特定行为以使用教程示例数据库。后面的主题是实际教程:它仅列出将存储服务器连接到教程数据库的具体步骤。最后一个主题介绍如何恢复LEAD医疗存储服务器以使用替换的LEADTOOLS数据库。

实施本教程后,建议阅读系列其他文章以了解如何映射由LEADTOOLS数据访问层使用的模式。

数据访问层数据访问层

Leadtools.Medical.Storage。数据访问层组件包括允许用户存储,查询和修改DICOM组合实例的类。

IStorageDataAccessAgent接口的存储数据访问代理。

public interface IStorageDataAccessAgent

{

DataSet QueryPatients( MatchingParameterCollection matchingEntitiesCollection )
;

DataSet QueryStudies ( MatchingParameterCollection matchingEntitiesCollection )
;

DataSet QuerySeries ( MatchingParameterCollection matchingEntitiesCollection ) ;

DataSet QueryCompositeInstances ( MatchingParameterCollection
matchingEntitiesCollection ) ;

int MaxQueryResults {get; set;}

bool QueryCompositeInstancesAsync ( MatchingParameterCollection
matchingEntitiesCollection, QueryPageInfo queryPageInfo) ;

void CancelQueryCompositeInstancesAsync(QueryCompositeInstancesArgs args);

event
EventHandler\<QueryCompositeInstancesArgs\>QueryCompositeInstancesStarting;

event EventHandler
\<QueryCompositeInstancesArgs\>QueryCompositeInstancesCompleted;

int FindPatientsCount ( MatchingParameterCollection matchingEntitiesCollection )
;

int FindStudiesCount ( MatchingParameterCollection matchingEntitiesCollection )
;

int FindSeriesCount ( MatchingParameterCollection matchingEntitiesCollection ) ;

int FindCompositeInstancesCount ( MatchingParameterCollection
matchingEntitiesCollection ) ;

bool IsPatientsExists ( string patientID ) ;

bool IsStudyExists ( string studyInstanceUID ) ;

bool IsSeriesExists ( string seriesInstanceUID ) ;

bool IsCompositeInstancesExists ( string sopInstanceUID ) ;

void UpdateCompositeInstance ( CompositeInstanceDataSet compositeInstanceDataSet
) ;

void StoreDicom ( DicomDataSet dataSet,

string referencedFileName,

string retrieveAe,

ReferencedImages[] images,

bool updateExistentPatient,

bool updateExistentStudy,

bool updateExistentSeries,

bool updateExistentInstances ) ;

int DeletePatient ( MatchingParameterCollection matchingEntitiesCollection ) ;

int DeleteStudy ( MatchingParameterCollection matchingEntitiesCollection ) ;

int DeleteSeries ( MatchingParameterCollection matchingEntitiesCollection ) ;

int DeleteInstance ( MatchingParameterCollection matchingEntitiesCollection ) ;

}
在将示例数据库连接到LEAD服务器存储教程中,您可创建并实现IStorageDataAccessAgent接口的MyStorageSqlDbDataAccessAgent。由于本教程将使用的SQL Server 2008作为数据库引擎,我们的MyStorageSqlDbDataAccessAgent类将直接从现有的StorageSqlDbDataAccessAgent类派生(它实现IStorageDataAccessAgent),和仅准备覆盖SQL查询的方法。如果您不想使用基于SQL的数据库引擎,则您的存储数据访问代理直接实现IStorageDataAccessAgent成员即可。
了解更多

这是本系列的第一篇文章,此处介绍了数据访问层数据访问层的基本概念,我们将在《LEAD医疗存储服务器自定义数据库系列教程–数据库》系列的第二篇文章中,着重介绍LEAD医用存储服务器数据库的基本概念。

想要购买LEADTOOLS正版授权,或了解更多产品信息请点击【咨询在线客服】

猜你喜欢

转载自blog.51cto.com/15078157/2588668