CN104657271A - Automatic testing method for standard conformance of health information shared documents - Google Patents
Automatic testing method for standard conformance of health information shared documents Download PDFInfo
- Publication number
- CN104657271A CN104657271A CN201510093560.0A CN201510093560A CN104657271A CN 104657271 A CN104657271 A CN 104657271A CN 201510093560 A CN201510093560 A CN 201510093560A CN 104657271 A CN104657271 A CN 104657271A
- Authority
- CN
- China
- Prior art keywords
- test
- shared document
- standard
- data
- testing
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses an automatic testing method for standard conformance of health information shared document. The automatic testing method comprises a shared document injection test and a shared document extraction test, wherein the shared document injection test means that a testing tool inputs a standard shared document to a tested system, the tested system analyzes the standard shared document, outputs the data and returns the data to the testing tool, and the testing tool performs checking and comparing; the shared document extraction test means that the testing tool inputs the data to the tested system, the tested system constructs the data into the shared documents conforming to the standard according to the specifications of the shared documents and returns the shared documents to the testing tool, and the testing tool checks the formats and the data of the shared documents. The shared document injection test disclosed by the invention aims at testing the analysis ability of the tested system for the standard of the health information shared documents; the shared document extraction test aims at testing the construction ability of the tested system for the health information shared documents. By common testing through two testing processes, the reliability, the scientificity and the efficiency of the method are improved.
Description
Technical field
The present invention relates to software test field, particularly relate to a kind of health information shared document standard compliance automated testing method.
Background technology
In the construction spring tide of health informatization, health information standard is specification health information system specification, is the important leverage realizing working in coordination with across information sharing and the medical profession of mechanism, cross-region.Thus the compliance test of the health information standard of health care infosystem is become particularly important.
Health information shared document Standard conformance test is a part for health information Standard conformance test.Health information shared document Standard conformance test content comprises the form of shared document and the data of shared document.Since carrying out from health information Standard conformance test in 2009, to the method for testing of health information shared document standard compliance be: from tested health care infosystem, derive test sample book shared document, carry out data check by the data importing to testing tool of sample shared document, draw test result.
The method of testing of this health information shared document standard has following multiple drawback:
1. test is not comprehensive: sample shared document is a part little in tested health care infosystem, can not test all shared document, nor can test tested health care infosystem to the analytic ability of standard shared document.
2. testing efficiency is low: need to prepare a large amount of test sample book shared document, and manually import in testing tool, test non-automated.
3. test result is unreliable: because the preparation of sample shared document may exist the situation of playing tricks, might not derive from tested health care infosystem, accurately cannot judge the accuracy of tested health care infosystem shared document.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, the health information shared document standard compliance automated testing method that a kind of reliability is high, efficiency is high is provided, the present invention injects test by shared document and shared document extracts test two kinds test, solves the problem that prior art cannot be tested the analytic ability of system under test (SUT) and data-handling capacity.
The object of the invention is to be achieved through the following technical solutions: a kind of health information shared document standard compliance automated testing method, it comprises shared document and injects testing procedure and shared document extracts testing procedure;
Described shared document is injected testing procedure and is comprised following sub-step:
S11: create test case by testing tool: the test case that testing tool is corresponding according to the content creating of test, described test case comprises positive test use-case or negative testing use-case;
S12: according to Test cases technology test shared document: testing tool is according to Test cases technology shared document, and positive test use-case generates standard shared document, and negative testing use-case then generates non-standard shared document;
S13: encapsulation process is carried out to test shared document: each test shared document generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S14: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S15: process test data: tested health care infosystem carries out dissection process to all request messages received, after the shared document obtaining all test events, the test data of these shared document is resolved, generates the file of the XML format of regulation;
S16: return response message: after the file of XML format generating regulation, the Document encapsulation of this XML format is response message by tested health care infosystem, and returns to testing tool by test interface;
S17: accuracy is tested: testing tool carries out verification to test data used when the response message returned and testing tool generating test use case and contrasts, and whether the data layout, the data type that comprise each data element in check test data meet standard;
S18: draw test result: according to the result of accuracy test, draw the result of the accurate compliance test of health information shared document;
Described shared document extracts testing procedure and comprises following sub-step:
S21: create test case by testing tool: testing tool is according to the content of test, and create corresponding test case, described test case comprises positive test use-case or negative testing use-case;
S22: according to Test cases technology test data: testing tool, according to test case, generates the data of XML format;
S23: encapsulation process is carried out to test data: each test data generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S24: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S25: process test data: tested health care infosystem carries out dissection process to all request messages received, and after the XML data obtaining all test events, builds this test data, generates the shared document file meeting standard format;
S26: return response message: after the shared document file generating standard format, tested health care infosystem is encapsulated as response message, and returns to testing tool by test interface;
S27: accuracy is tested: testing tool carries out verification to the standard shared document that test data used when the response message returned and testing tool generating test use case builds and contrasts, comprises verification shared document form, whether data codomain meets standard and whether verification shared document identifier meets standard; The standard shared document that described test data builds is obtained by the data construct of generating test use case;
S28: draw test result: according to the result of accuracy test, draw the accurate compliance test result of health information shared document.
Step S12 comprises following sub-step: obtain corresponding shared document template according to test case, simultaneously according to Test cases technology data forward or backwards, by data and form assembly, automatically generates shared document.
Described standard shared document is the shared document that national health information standard specifies.
The invention has the beneficial effects as follows: (1) shared document compliance test of the present invention comprises two aspects: shared document injects test and shared document extracts test; Wherein shared document injection test refers to, testing tool is to the shared document of system under test (SUT) input standard, the shared document of tested system analysis standard exports data and returns to testing tool, and testing tool carries out verification contrast, and shared document input test is intended to the analytic ability testing system under test (SUT); Shared document extracts test and refers to, testing tool is to tested system input data, these data are configured to standard compliant shared document according to shared civilian specification by system under test (SUT), return to testing tool again, testing tool carries out form to shared document, the data of shared document are carried out verification shared document and injected test and be intended to test system under test (SUT) to the analytic ability of health information shared document standard, and shared document extracts test and is intended to test system under test (SUT) to the construction ability of health information shared document; Jointly tested by these two kinds of test processs, improve the reliability of the method, science and efficiency; (2) the present invention is automatic test, improves testing efficiency.
Accompanying drawing explanation
Fig. 1 is that shared document of the present invention injects test flow chart;
Fig. 2 is that shared document of the present invention extracts test flow chart.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail: a kind of health information shared document standard compliance automated testing method, it comprises shared document and injects testing procedure and shared document extraction testing procedure;
As shown in Figure 1, described shared document is injected testing procedure and is comprised following sub-step:
S11: create test case by testing tool: the test case that testing tool is corresponding according to the content creating of test, described test case comprises positive test use-case or negative testing use-case;
S12: according to Test cases technology test shared document: testing tool is according to Test cases technology shared document, and positive test use-case generates standard shared document, and negative testing use-case then generates non-standard shared document;
S13: encapsulation process is carried out to test shared document: each test shared document generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S14: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S15: process test data: tested health care infosystem carries out dissection process to all request messages received, after the shared document obtaining all test events, the test data of these shared document is resolved, generates the file of the XML format of regulation;
S16: return response message: after the file of XML format generating regulation, the Document encapsulation of this XML format is response message by tested health care infosystem, and returns to testing tool by test interface;
S17: accuracy is tested: testing tool carries out verification to test data used when the response message returned and testing tool generating test use case and contrasts, and whether the data layout, the data type that comprise each data element in check test data meet standard;
S18: draw test result: according to the result of accuracy test, draw the result of the accurate compliance test of health information shared document;
As shown in Figure 2, described shared document extracts testing procedure and comprises following sub-step:
S21: create test case by testing tool: testing tool is according to the content of test, and create corresponding test case, described test case comprises positive test use-case or negative testing use-case;
S22: according to Test cases technology test data: testing tool, according to test case, generates the data of XML format;
S23: encapsulation process is carried out to test data: each test data generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S24: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S25: process test data: tested health care infosystem carries out dissection process to all request messages received, and after the XML data obtaining all test events, builds this test data, generates the shared document file meeting standard format;
S26: return response message: after the shared document file generating standard format, tested health care infosystem is encapsulated as response message, and returns to testing tool by test interface;
S27: accuracy is tested: testing tool carries out verification to the standard shared document that test data used when the response message returned and testing tool generating test use case builds and contrasts, comprises verification shared document form, whether data codomain meets standard and whether verification shared document identifier meets standard; The standard shared document that described test data builds is obtained by the data construct of generating test use case;
S28: draw test result: according to the result of accuracy test, draw the accurate compliance test result of health information shared document.
Step S12 comprises following sub-step: obtain corresponding shared document template according to test case, simultaneously according to Test cases technology data forward or backwards, by data and form assembly, automatically generates shared document.
Described standard shared document is the shared document that national health information standard specifies.
Described standard shared document is the shared document that national health information standard specifies, meets " WS/T XXX-2012 health information shared document specification " standard.
The shared document of national Specification comprises: Electronic Health Record shared document and electronic health record shared document.Health information shared document is made up of document head, document body, and wherein document body is made up of document section and document entry again.
Claims (3)
1. a health information shared document standard compliance automated testing method, is characterized in that: it comprises shared document and injects testing procedure and shared document extraction testing procedure;
Described shared document is injected testing procedure and is comprised following sub-step:
S11: create test case by testing tool: the test case that testing tool is corresponding according to the content creating of test, described test case comprises positive test use-case or negative testing use-case;
S12: according to Test cases technology test shared document: testing tool is according to Test cases technology shared document, and positive test use-case generates standard shared document, and negative testing use-case then generates non-standard shared document;
S13: encapsulation process is carried out to test shared document: each test shared document generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S14: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S15: process test data: tested health care infosystem carries out dissection process to all request messages received, after the shared document obtaining all test events, the test data of these shared document is resolved, generates the file of the XML format of regulation;
S16: return response message: after the file of XML format generating regulation, the Document encapsulation of this XML format is response message by tested health care infosystem, and returns to testing tool by test interface;
S17: accuracy is tested: testing tool carries out verification to test data used when the response message returned and testing tool generating test use case and contrasts, and whether the data layout, the data type that comprise each data element in check test data meet standard;
S18: draw test result: according to the result of accuracy test, draw the result of the accurate compliance test of health information shared document;
Described shared document extracts testing procedure and comprises following sub-step:
S21: create test case by testing tool: testing tool is according to the content of test, and create corresponding test case, described test case comprises positive test use-case or negative testing use-case;
S22: according to Test cases technology test data: testing tool, according to test case, generates the data of XML format;
S23: encapsulation process is carried out to test data: each test data generated is packaged into request message by testing tool, and the form of this request message is the standard message format in health information interaction specifications;
S24: implementation of test cases: testing tool adopts Web Service technology, by test interface, all request messages is sent to tested health care infosystem;
S25: process test data: tested health care infosystem carries out dissection process to all request messages received, and after the XML data obtaining all test events, builds this test data, generates the shared document file meeting standard format;
S26: return response message: after the shared document file generating standard format, tested health care infosystem is encapsulated as response message, and returns to testing tool by test interface;
S27: accuracy is tested: testing tool carries out verification to the standard shared document that test data used when the response message returned and testing tool generating test use case builds and contrasts, comprises verification shared document form, whether data codomain meets standard and whether verification shared document identifier meets standard; The standard shared document that described test data builds is obtained by the data construct of generating test use case;
S28: draw test result: according to the result of accuracy test, draw the accurate compliance test result of health information shared document.
2. a kind of health information shared document standard compliance automated testing method according to claim 1, it is characterized in that: step S12 comprises following sub-step: obtain corresponding shared document template according to test case, simultaneously according to Test cases technology data forward or backwards, by data and form assembly, automatically generate shared document.
3. a kind of health information shared document standard compliance automated testing method according to claim 1, is characterized in that: described standard shared document is the shared document that national health information standard specifies.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510093560.0A CN104657271B (en) | 2015-03-03 | 2015-03-03 | Automatic testing method for standard conformance of health information shared documents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510093560.0A CN104657271B (en) | 2015-03-03 | 2015-03-03 | Automatic testing method for standard conformance of health information shared documents |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657271A true CN104657271A (en) | 2015-05-27 |
CN104657271B CN104657271B (en) | 2017-05-03 |
Family
ID=53248438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510093560.0A Active CN104657271B (en) | 2015-03-03 | 2015-03-03 | Automatic testing method for standard conformance of health information shared documents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657271B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592244A (en) * | 2017-10-31 | 2018-01-16 | 广东电网有限责任公司电力科学研究院 | A kind of judgement no system for realizing unified collocation of exchange of electric power function |
CN108694104A (en) * | 2017-04-12 | 2018-10-23 | 北京京东尚科信息技术有限公司 | A kind of interface function contrast test method, apparatus, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459548A (en) * | 2007-12-14 | 2009-06-17 | 北京启明星辰信息技术股份有限公司 | Script injection attack detection method and system |
CN101471818A (en) * | 2007-12-24 | 2009-07-01 | 北京启明星辰信息技术股份有限公司 | Detection method and system for malevolence injection script web page |
-
2015
- 2015-03-03 CN CN201510093560.0A patent/CN104657271B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459548A (en) * | 2007-12-14 | 2009-06-17 | 北京启明星辰信息技术股份有限公司 | Script injection attack detection method and system |
CN101471818A (en) * | 2007-12-24 | 2009-07-01 | 北京启明星辰信息技术股份有限公司 | Detection method and system for malevolence injection script web page |
Non-Patent Citations (2)
Title |
---|
沈丽宁等: "电子健康档案符合性测试的提出与设计", 《中国医院管理》 * |
胡建平等: "健康档案标准符合性测试方法研究", 《中国数字医学》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694104A (en) * | 2017-04-12 | 2018-10-23 | 北京京东尚科信息技术有限公司 | A kind of interface function contrast test method, apparatus, electronic equipment and storage medium |
CN107592244A (en) * | 2017-10-31 | 2018-01-16 | 广东电网有限责任公司电力科学研究院 | A kind of judgement no system for realizing unified collocation of exchange of electric power function |
Also Published As
Publication number | Publication date |
---|---|
CN104657271B (en) | 2017-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105354314B (en) | Data migration method and device | |
CN101630283A (en) | System and method for automatically generating report | |
US20170103163A1 (en) | System and Method for a Cloud Enabled Health Record Exchange Engine | |
CN108881172A (en) | The analysis method and device of message | |
CN104461907A (en) | Health information data set standard conformance automated testing method and system | |
CN106776515A (en) | The method and device of data processing | |
CN108337236A (en) | A kind of gRPC call methods and device based on Protobuf and HTTP/1.1 | |
RU2014120748A (en) | FINAL | |
CN105095186A (en) | Semantic analysis method and device | |
IN2014MN02481A (en) | ||
CN107239398A (en) | A kind of interface testing use-case automatic creation system and method based on Postman | |
CN109117377A (en) | It is a kind of based on the automatic generation of test data, device and equipment of building table statement | |
CN108228726B (en) | Incremental transaction content acquisition method and storage medium for distribution network red and black images | |
CN102915303A (en) | Method and device for ETL (extract-transform-load) tests | |
CN104657271A (en) | Automatic testing method for standard conformance of health information shared documents | |
CN103544107A (en) | Method and device for generating test case document | |
CN106919374B (en) | Script generation method and device | |
CN110569230A (en) | Method, system and equipment for interconversion between database design model and design document | |
CN103455307B (en) | The method and apparatus handled the information of order line output | |
CN108376068A (en) | The conversion method and conversion equipment of Bean page assembly | |
CN112947939B (en) | Data reporting method, device, equipment and storage medium | |
CN108829968A (en) | Circuit diagram checking method based on Python spread function | |
CN105320744B (en) | The analytic method in XBRL classification standard custom link library | |
CN112948474B (en) | Data export method, device, equipment and computer readable storage medium | |
CN110502478B (en) | Data interaction method and system between offline systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |