Title: CEN/ISSS eBIF Global eBusiness Interoperability Test Bed Methodologies Project Testing Requirements- Use Case 2
1CEN/ISSS eBIF Global eBusiness Interoperability
Test Bed Methodologies ProjectTesting
Requirements- Use Case 2 Healthcare - HL7
Scenarios
- Prof. Dr. Asuman Dogac, Tuncay Namli
- SRDC Ltd.
- Ankara, Turkey
1
2Health Level 7 (HL7)
- HL7 v2.x is the most widely used eHealth message
standard in the world today - However, HL7 Version 2 has some problem with
interoperability, conformance claims and testing - Have no explicit information model, rather vague
definitions for many data fields and contain many
optional fields - HL7 v3 remedies this problem
- Many countries currently use HL7 v3 for their
national health networks, such as Netherlands,
UK, Turkey, Canada and USA
2
3HL7 v3 Conformance
- Conformance is specified in terms of Application
Roles - A vendor of a healthcare application describes
its conformance by asserting that it completely
supports - All trigger events,
- Messages and
- Data elements associated with one or more
application roles - Healthcare information system may claim
conformance to several application roles - There are Interactions from a sending application
role to a receiving application role
Interaction A unique association between a
specific message type (information transfer), a
particular trigger event that initiates or
"triggers" the transfer, and the Receiver
Responsibilities (in terms of response
interactions) associated with the receipt of the
Interaction
3
4Interaction, Role, Trigger Event
Interaction Original Document with Content
e.g., Patient Examination EHR
11011010
Internet
Examination Service
National Health Information System, MoH, Turkey
12345
Doe
John
Role Document Originator
Role Clinical Document Directory
A Hospital Information System
4
June 15, 2009
5HL7- Testing Requirements (Application Role on
sender side)
- Req 1 The Test Framework should have the ability
to inform the user of the SUT for the steps in
which the SUT needs to initiate an interaction
(send a message) - SUT users need a test case description which can
be narrative text or some graphical
representation describing test flow and each step
- For complex flows it would be better to have
notification mechanism (over the user interface)
which informs the user when the execution is on
the messaging step
5
6(No Transcript)
7HL7- Testing Requirements (Application Role on
sender side)
- Req 2 The test framework should enable test
designers to setup syntactic validation steps - For HL7 v3, this validation step should do XML
validation according to the XML Schemas given by
the test designer
7
8An Example Scenario for Conformance Tests
Is it a valid SOAP Message?
Does the SOAP header conform to the WS-Security
User Name Token Profile?
Is this a valid HL7 v3 message? (Testing
conformance to HL7 v3 XML Scema)
11011010
Internet
Examination Service
National Health Information System, MoH, Turkey
12345
Doe
John
Role Document Originator
Role Clinical Document Directory
A Hospital Information System
8
8
GITB Open Meeting, Brussels
June 15, 2009
9HL7- Testing Requirements (Application Role on
sender side)
- Req 3 The test framework should enable test
designers to setup validation steps which will
check all coded elements in the message in a
given code list - When the code list is statically bounded, test
designer should be allowed to provide the code
list in some format as input - In other cases, test designers should be enabled
to provide the necessary parameters so that the
validation of code list can be used dynamically
in test execution time
9
10An Example Scenario for Tests
Are the codes used obtained from the valid code
systems?
Are the business rules valid? (quantity value
should be numeric and at most two digits)
10
10
June 15, 2009
GITB Open Meeting, Brussels
11HL7- Testing Requirements (Application Role on
sender side)
- By such basic conformance and interoperability
scenarios we can only guarantee that the
application can send some conformant messages - For a real life scenario, it is necessary to
guarantee that any message send by the
application is a conformant message - This is especially necessary for certification,
for better interoperability (both syntactic and
semantic) and more importantly to ensure accurate
data. - In other words we need to test if the information
in the generated content that is messages or
documents accurately represents the intentional
semantics of the users of the application. - Req 4 The Test Framework should enable test
designers to express some preliminary information
and present this information to SUTs before
starting to test execution (Scenario Based
Testing)
11
12Testing for Specific Preliminary Information for
Specific Scenario
- The prescription given to the patient should
contain the following data - The medication should be ASPIRIN FORT TABLET 20
TB from the "Medications" list - Code of the "Medications" list is 8699504020007
- The quantity should be 1 box
- The "period value" should be 1 (meaning in a
day) - The "doseQuantity" should be 3 and
- The "routeCode" should be 3 (meaning that the
medication should be taken orally)
13An Example Scenario for Tests
Are the specifications given in the scenario
validly reflected in the document?
13
13
June 15, 2009
GITB Open Meeting, Brussels
14HL7- Testing Requirements (Application Role on
sender side)
- Req 5 The preliminary scenario requirements
should be represented in a structured way as a
template in order to facilitate the maintenance
of test cases - Although the preliminary requirements can be
presented as narrative text, internally they
should be represented in a structured way as a
template where the critical information can be
changed easily
14
June 15, 2009
14
GITB Open Meeting, Brussels
15HL7- Testing Requirements (Application Role on
sender side)
- Req 6 In order to retrieve the value of any
attribute or element from the HL7 v3 message, the
test framework should support suitable expression
languages - For HL7 v3 messages, as they are in XML format,
XPATH or XQuery are suitable candidates
15
16HL7- Testing Requirements (Application Role on
sender side)
- Req 7 The Test Framework should provide a
mechanism to ask the SUTs some parameters and
information about their systems before test
execution - Network configurations
- Security configurations
- HL7 related configuration (e.g. system name)
- This mechanism should automatically bind the
information into the testcase without any manual
intervention so that the corresponding message
elements can be tested if they are consistent
with provided information
16
17An Example
18HL7- Testing Requirements (Application Role on
receiver side)
- Req 8 The Test Framework should provide a
mechanism for test designers to provide the
message content that will be sent to SUTs on the
receiver side - Req 9 The Test Framework should be able to
integrate tools which can automatically generate
sample messages from a given schema
18
19An Example Scenario for Tests
11011010
12345
Doe
John
Examination Service
Internet
Testing Tool
TestCase for the Examination Service
National Health Information System, MoH, Turkey
A Hospital Information System
Role Clinical Document Directory
19
19
June 15, 2009
GITB Open Meeting, Brussels
20HL7- Testing Requirements (Application Role on
receiver side)
- Req 10 The Test Framework should represent and
take care of the relationships between
conformance test cases. There are some test cases
that cannot be applied to a system until the
system passes another test case. - Req 11 The test framework should be capable of
sending and receiving HL7 v3 messages by using
ebXML Messaging, MLLP and Web Services in
conformance to the corresponding HL7 Message
profiles - Req 12 The test framework should enable test
designers to also retrieve the parts other than
message payload (headers) and to setup validation
test steps on these parts
20
21HL7- Testing Requirements Interoperability Tests
21
22HL7- Testing Requirements Interoperability Tests
- Req 13 In interoperability scenario based tests,
there is a need to capture and test the message
exchanges among the SUTs playing different roles -
- For this purpose, a proxy mechanism is needed to
act as a mediator which listens to the messages
between the systems
22
23An Example Scenario for Interoperability Tests
Internet
11011010
11011010
11011010
Examination Service
National Health Information System, MoH, Turkey
A Hospital Information System
Tests on message
Interoperability TestCase for the Examination
Service
Testing Tool
23
23
June 15, 2009
GITB Open Meeting, Brussels
24HL7- Testing Requirements Interoperability Tests
- Req 14 In some interoperability scenarios, test
designers may want to setup some test steps to
emulate a system in the business process - The Test Framework should provide the necessary
capabilities to enable such emulation
24
25Simulating the Document Originator Role
11011010
12345
Doe
John
Examination Service
Internet
Testing Tool
TestCase for the Examination Service
National Health Information System, MoH, Turkey
A Hospital Information System
Role Clinical Document Directory
Simulated Role Document Originator
25
25
June 15, 2009
GITB Open Meeting, Brussels
26Thank you for your attentionQuestions?
26