| Under the old system of "medicine to support the medical",drugs in the hospital can easily form a gray interest chain,so that drugs from the prevention,treatment,diagnosis of medical means reduced to the hospital revenue items.Data show that China’s annual adverse drug reactions inpatients up to 2.7 million,in hospital every year there are 200,000 people died of drug-induced diseases.In this regard,China’s new medical reform program for the first time referred to the concept of pharmacy services,that is,to provide patients with a reasonable,safe medication program and the corresponding drug supply security services.There are a number of third-party pharmacy services platforms on the market that provide remote pharmacy services to medical institutions or chain pharmacies through Internet.These platforms to some extent mitigate the dilemma of providing all-directional pharmacy service,but there are some potential drawbacks:(1)The pharmacy service platform is still in the preliminary stage of development,and in order to pursue the benefit,the third party institutions have failed to follow the medical information protocol for standardized development.There are differences in the interfaces provided by different platforms and in the information format,leading to interconnection difficulties between the systems.(2)Lack of uniform domain modeling language.Medical as a special field,the process must meet certain normative and security.These special properties make the modeling process in the medical field relatively complex and time-consuming.At the same time,manufacturers in the construction of pharmacy platform,the system business integrity and security is often lack of protection.Therefore,this paper puts forward the use of domain-specific modeling method to solve the problem of Internet pharmacy system development.In this paper,the HL7 communication protocol and the IHE technical framework are used to analyze the field of pharmaceuticals.The roles and business processes in the field are abstracted,and the platform independent meta-model is constructed.Domain-specific modeling language construction from five perspectives,prescription platform,prescription audit platform,community pharmacy management platform,pharmacy platform and cross-platform message communication.All aspects of the business process under the various perspective are analyzed.And we use the MetaEdit+ modeling tool to design the language specific syntax and static semantics.The language constructed in this paper contains 30 roles,16 kinds of associations,and 34 kinds of static semantic constraints.In addition,a code generator have been designed by using the MERL language in MetaEdit+ which realizes the automatic mapping of the model to the application code.By example statistics,the code automatically generated rate of 80%.Finally,we analyzes the specific needs of the pharmacy system in the Internet cloud pharmacy project,uses the set of modeling language,builds the system application model,and generates the final target system.The modeling language of the pharmacy domain constructed in this paper conforms to the international medical information standard,which can realize the seamless connection of information.The modeling language conceals the concrete realization of the protocol standard in the interior of the modeling element,which makes it has a strong expressiveness and ease of use,and has certain extensibility.Other subsystems in this field can use this language to quickly build application models and transform the model into target application systems by running code generators.Software development efficiency greatly improved,the quality of the software has also been further protected.The set of languages has a high reference value and practical value.In addition,this article designed the Internet pharmacy system,can be applied to the Internet cloud pharmacy project,to provide users with high quality pharmacy services. |