CN108062293A - A kind of ranked data method of calibration based on content - Google Patents

A kind of ranked data method of calibration based on content Download PDF

Info

Publication number
CN108062293A
CN108062293A CN201711475393.1A CN201711475393A CN108062293A CN 108062293 A CN108062293 A CN 108062293A CN 201711475393 A CN201711475393 A CN 201711475393A CN 108062293 A CN108062293 A CN 108062293A
Authority
CN
China
Prior art keywords
message
verification
schema
sdk
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711475393.1A
Other languages
Chinese (zh)
Inventor
李小田
苗振兴
虞曜曾晖
曹亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Fangzheng Medical Information Technology Co Ltd
Original Assignee
Anhui Fangzheng Medical Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Fangzheng Medical Information Technology Co Ltd filed Critical Anhui Fangzheng Medical Information Technology Co Ltd
Priority to CN201711475393.1A priority Critical patent/CN108062293A/en
Publication of CN108062293A publication Critical patent/CN108062293A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of ranked data methods of calibration based on content, are as follows:SDK clients obtain the avro schema of message;SDK clients carry out the first priority verification to message;SDK server-sides receive message, the corresponding XML of the structural generation defined according to interaction specifications;Startup task obtains the message in MQ, is further verified according to verification schema.The present invention have it is convenient, directly perceived, the advantages of being verified by two-stage, ensure the integrality, accuracy and standard of data.

Description

A kind of ranked data method of calibration based on content
Technical field
The present invention relates to hospital data interaction process field, a kind of specifically ranked data verification side based on content Method.
Background technology
Integration, integrated and extension between hospital information system always are the major obstacle for restricting hospital digitisation development, Since the product between different vendor is incompatible so that hospital's Global Information is had difficulty in walking, and what it is by one specification of construction is System integrated platform on the basis of the international standards such as IHE, DICOM, HL7, formulates the system collection of all operation flows of covering medical treatment Into specification, the Integrated based on specification is developed, a unification is provided for system leave, current and future And the platform of data exchange and the workflow collaboration of standard.
But each system application these system integration norms send message when if none of good data Verification scheme, then the accuracy and standard of the message sent cannot be guaranteed, big so as to cause the application of data It gives a discount.
The content of the invention
It is directed to integrality, accuracy and the standard of information transmitted between the hospital information system present in the prior art The defects of property cannot be guaranteed, provides a kind of ranked data method of calibration based on content.
To achieve the above object, the technical solution adopted by the present invention is:A kind of ranked data method of calibration based on content, It is as follows:
(1), SDK clients obtain the avro schema of message:
When application program creates SDK clients, the avro for all message that this application program can be related to by SDK server-sides Schema returns to SDK clients;
(2), SDK clients carry out the first priority verification to message:
SDK clients obtain the structure that message is carried out after the avro schema of all message, to each of setting during structure Node all carries out non-empty verification according to avro schema and data type verifies, if verification is by the way that message construction is lost Lose throw exception, verification carries out message transmission after passing through, when message hair is sent, SDK clients to message content using avro into Whether row serializing can verify all non-empty nodal values setting value during serializing, if verification does not pass through according to avro schema Throw exception can be then serialized unsuccessfully, verification can transmit the message to SDK server-sides after passing through;
(3), SDK server-sides receive message, the corresponding XML of the structural generation defined according to interaction specifications:
After SDK server-sides receive message, serialized message is converted to the XML message of standard, is sent in MQ;
(4), start the message in task acquisition MQ, further verified according to verification schema:
Task A takes out message from MQ, is put into message system, treats task B processing, and task B values from XML message obtain To message content, then message content is put into message system, treats task C processing, task C is according to messenger service ID acquisitions pair The verification schema answered, further according to verification schema traversal message content, find out it is all verification not by node and carry out phase It should handle.
Preferably, the SDK clients and SDK server-sides are related to heartbeat, unpack totally based on netty frameworks Packet splicing processing, message protocol definitions, schema verifications are based on avro technologies.
Preferably, in the step (4), a service ID is distributed per one kind message, and to every a kind of message definition One verification schema verifies the processing for the check item that each node is provided in schema, the school of corresponding verification schema The management service of item is tested using graphic interface, it is convenient, directly perceived.
Preferably, the check item of each node includes non-empty, field type, field length, codomain.
The present invention has the following advantages compared with prior art:
A kind of ranked data method of calibration based on content of the present invention can be according to actual requirement to check item school The different classification verifications of rank are tested, most basic check item puts the verification of the first priority, and the verification of the first priority is using avro schema Technology, light and fast, other check items put the verification of the second priority, and the second priority check item is safeguarded using graphic interface, It is convenient, directly perceived, it is verified by two-stage, ensures the integrality, accuracy and standard of data.
Description of the drawings
Fig. 1 is the method flow diagram in embodiment 1.
Specific embodiment
The effect of to make to structure feature of the invention and being reached, has a better understanding and awareness, to preferable Embodiment and attached drawing cooperation detailed description, are described as follows:
The invention discloses a kind of ranked data methods of calibration based on content, are as follows:
(1), SDK clients obtain the avro schema of message:
When application program creates SDK clients, the avro for all message that this application program can be related to by SDK server-sides Schema returns to SDK clients;
(2), SDK clients carry out the first priority verification to message:
SDK clients obtain the structure that message is carried out after the avro schema of all message, to each of setting during structure Node all carries out non-empty verification according to avro schema and data type verifies, if verification is by the way that message construction is lost Lose throw exception, verification carries out message transmission after passing through, when message hair is sent, SDK clients to message content using avro into Whether row serializing can verify all non-empty nodal values setting value during serializing, if verification does not pass through according to avro schema Throw exception can be then serialized unsuccessfully, verification can transmit the message to SDK server-sides after passing through;
(3), SDK server-sides receive message, the corresponding XML of the structural generation defined according to interaction specifications:
After SDK server-sides receives message, serialized message is converted to the XML message of standard, is sent in MQ,
SDK is totally based on netty frameworks (being related to heartbeat, packet splicing of unpacking processing, message protocol definitions etc.), schema schools It tests based on avro technologies.
It further illustrates, to being that the first priority verifies herein, is based on avro technologies, ability is only verified by this grade Message is sent;
(4), start the message in task acquisition MQ, further verified according to verification schema:
Task A takes out message from MQ, is put into message system, treats task B processing, and task B values from XML message obtain To message content, then message content is put into message system, treats task C processing, task C is according to messenger service ID acquisitions pair The verification schema answered, further according to verification schema traversal message content, find out it is all verification not by node and carry out phase It should handle;
Wherein, a service ID is distributed per a kind of message, and to every a kind of one verification schema of message definition, verification The processing of the check item of each node is provided in schema, the management service of the check item of corresponding verification schema is using figure Shape interface, it is convenient, directly perceived, and the verification of the second priority is verified as herein, it is the school carried out according to the verification schema of message It tests.
Embodiment 1
As shown in Figure 1, the invention discloses a kind of ranked data methods of calibration based on content, it is as follows:
In the present embodiment, the verification of the first priority is carried out in SDK, and the technology of use is avro technologies, is mainly included Following steps:
Step S101, SDK client and server-side are connected to socket interfaces using synchronization message mechanism in client When, server-side decoder parses client message according to messaging protocol, and it is corresponding then to return to client according to type of message The avro schema of message;
Step S102, when building message using client, each node of setting can according to avro schema into Row non-empty verifies and type checking, and if verification, message can not build unsuccessfully throw exception if, if verification is by can be into Enter message transmission;
During using sending message by SDK clients, client serializes message content using avro, serializing When all non-empty nodal values whether setting value can be verified according to avro schema, failure can be serialized not if if verification Throw exception, verification is by then transmitting the message to SDK server-sides;
It verifies and completes to this first priority, ensure that the integrality for the data for issuing SDK server-sides;
After step S103, SDK server-side receives message data, the device message assignment that sends client is called It is sent to corresponding XML templates, and by the XML message after encapsulation in MQ;
Step S104 verifies for the second priority, mainly to verifying the check item set in schema to each node Verification, such as codomain, length etc., ensure that the accuracy and standard of data, S104 is as follows in this example:
Step 1, receiver tasks take out XML message from MQ, are put into kafka topic, treat decoder processing.
Step 2, decoder tasks value from XML message, obtain message content, message content then are put into kafka In topic, validate processing is treated.
Step 3, validate tasks obtain corresponding verification schema according to messenger service ID, verify and are set in schema The processing of the check item of each node (field length, codomain) (does not verify, record, record and alert), further according to verification Schema travel through message content, find out it is all verification not by node and carry out respective handling.
Basic principle, main feature and the advantages of the present invention of the present invention has been shown and described above.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and what is described in the above embodiment and the description is only the present invention Principle, various changes and modifications of the present invention are possible without departing from the spirit and scope of the present invention, these variation and Improvement is both fallen in the range of claimed invention.The present invention claims protection domain by appended claims and its Equivalent defines.

Claims (4)

1. a kind of ranked data method of calibration based on content, it is characterised in that:It is as follows:
(1), SDK clients obtain the avro schema of message:
When application program creates SDK clients, the avro for all message that this application program can be related to by SDK server-sides Schema returns to SDK clients;
(2), SDK clients carry out the first priority verification to message:
SDK clients obtain the structure that message is carried out after the avro schema of all message, to each node of setting during structure Non-empty verification is all carried out according to avro schema and data type verifies, if verification is by the way that message construction is unsuccessfully thrown Go out exception, verification carries out message transmission after passing through, when message hair is sent, SDK clients carry out sequence to message content using avro Whether rowization can verify all non-empty nodal values setting value during serializing according to avro schema, can not if if verification Serializing failure throw exception, verification can transmit the message to SDK server-sides after passing through;
(3), SDK server-sides receive message, the corresponding XML of the structural generation defined according to interaction specifications:
After SDK server-sides receive message, serialized message is converted to the XML message of standard, is sent in MQ;
(4), start the message in task acquisition MQ, further verified according to verification schema:
Task A takes out message from MQ, is put into message system, treats task B processing, and task B values from XML message are disappeared Content is ceased, then message content is put into message system, treats task C processing, task C obtains corresponding according to messenger service ID Verify schema, further according to verification schema traversal message content, find out it is all verification not by node and carry out corresponding position Reason.
2. a kind of ranked data method of calibration based on content according to claim 1, it is characterised in that:The SDK Client and SDK server-sides are related to heartbeat, packet splicing of unpacking processing, message protocol definitions totally based on netty frameworks, described Schema verifications based on avro technologies.
3. a kind of ranked data method of calibration based on content according to claim 1, it is characterised in that:The step (4) in, a service ID is distributed per one kind message, and to every a kind of one verification schema of message definition, is verified in schema There is provided the processing of the check item of each node, the management service of the check item of corresponding verification schema uses graphical boundary Face, it is convenient, directly perceived.
4. a kind of ranked data method of calibration based on content according to claim 3, it is characterised in that:Described is each The check item of node includes non-empty, field type, field length, codomain.
CN201711475393.1A 2017-12-29 2017-12-29 A kind of ranked data method of calibration based on content Pending CN108062293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711475393.1A CN108062293A (en) 2017-12-29 2017-12-29 A kind of ranked data method of calibration based on content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711475393.1A CN108062293A (en) 2017-12-29 2017-12-29 A kind of ranked data method of calibration based on content

Publications (1)

Publication Number Publication Date
CN108062293A true CN108062293A (en) 2018-05-22

Family

ID=62140749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711475393.1A Pending CN108062293A (en) 2017-12-29 2017-12-29 A kind of ranked data method of calibration based on content

Country Status (1)

Country Link
CN (1) CN108062293A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257337A (en) * 2018-08-28 2019-01-22 科大国创软件股份有限公司 Internet of things equipment method for converting protocol and lamp stand operation platform based on this method
CN113315750A (en) * 2021-04-15 2021-08-27 新华三大数据技术有限公司 Kafka message issuing method, device and storage medium
CN117632858A (en) * 2024-01-24 2024-03-01 中国信息通信研究院 File format verification method, system, equipment and medium based on distributed network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329849A (en) * 2017-07-06 2017-11-07 北京理工大学 A kind of data verification method and system based on Java systems
CN107483467A (en) * 2017-08-31 2017-12-15 四川长虹电器股份有限公司 The JSON message checking methods of Internet interface service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329849A (en) * 2017-07-06 2017-11-07 北京理工大学 A kind of data verification method and system based on Java systems
CN107483467A (en) * 2017-08-31 2017-12-15 四川长虹电器股份有限公司 The JSON message checking methods of Internet interface service

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
LOVEDESTINY: "jQuery对的表单数据序列化和校验", 《CSDN博客HTTPS://BLOG.CSDN.NET/LIVEROR_DIE/ARTICLE/DETAILS/77943012》 *
LUST-RING: "Avro:入门例子", 《CSDN博客HTTPS://BLOG.CSDN.NET/BINGDUANLBD/ARTICLE/DETAILS/52006520》 *
NATHAN_WAY: "Avro通过schema自动生成java代码", 《CSDN博客HTTPS://BLOG.CSDN.NET/ZHANGLC_5168/ARTICLE/DETAILS/41315157》 *
路嘉恒: "《Hadoop实战 第2版》", 30 November 2012, 机械工业出版社 *
风过留痕: "B/S客户端和服务端进行数据校验的原因和必要性", 《CSDN博客 HTTPS://BLOG.CSDN.NET/U011768325/ARTICLE/DETAILS/45306911》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257337A (en) * 2018-08-28 2019-01-22 科大国创软件股份有限公司 Internet of things equipment method for converting protocol and lamp stand operation platform based on this method
CN109257337B (en) * 2018-08-28 2021-09-07 科大国创软件股份有限公司 Internet of things equipment protocol conversion method and lamp pole operation platform based on same
CN113315750A (en) * 2021-04-15 2021-08-27 新华三大数据技术有限公司 Kafka message issuing method, device and storage medium
CN113315750B (en) * 2021-04-15 2022-05-27 新华三大数据技术有限公司 Kafka message issuing method, device and storage medium
CN117632858A (en) * 2024-01-24 2024-03-01 中国信息通信研究院 File format verification method, system, equipment and medium based on distributed network
CN117632858B (en) * 2024-01-24 2024-05-31 中国信息通信研究院 File format verification method, system, equipment and medium based on distributed network

Similar Documents

Publication Publication Date Title
JP6629882B2 (en) Selective sensor polling
US20220035600A1 (en) API Specification Generation
KR102165262B1 (en) Natural language processing for session establishment with service providers
CN109314709A (en) It is embedded in the telemetering of the enabling mist in Real-time multimedia
WO2017049769A1 (en) Method and device for providing target page in mobile application
US11431806B2 (en) Internet of things information system of multiple objects
CN103001815B (en) The acquisition methods of test data, Apparatus and system
CN108062293A (en) A kind of ranked data method of calibration based on content
US10635436B2 (en) Compatibility method based on hybrid, adapter, operation device, system and computer-readable storage medium
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN108063772A (en) A kind of Data Access Security method and system based on service side
CN112187558B (en) Data verification method and device and electronic equipment
US11556442B2 (en) Immersive web-based simulator for digital assistant-based applications
CN105471968A (en) Data exchange method, data exchange system and data platform server
US11556454B2 (en) Immersive web-based simulator for digital assistant-based applications
CN103095666B (en) Third-party application processing method and device
CN105704178A (en) Task platform access method and task platform access device
CN107257369A (en) A kind of Big Dipper short message cloud computing platform system
CN113571162B (en) Method, device and system for realizing multi-user collaborative operation medical image
US11191253B2 (en) Verification process and system for information relating to pets or support animals
Torres-Zapata et al. MAC/PHY comprehensive visible light communication networks simulation
CN102902574B (en) Cooperative processing method and device of multiple information flow nodes
Hao et al. Medical device integration model based on the internet of things
Rafe et al. A reliable architectural style for designing pervasive healthcare systems
CN107169904A (en) Method, mobile device and the device of the information interaction of different application platforms

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180522

RJ01 Rejection of invention patent application after publication