Project Number Date
EtherCIS-VEHR-features 0 26 Jan 2018, 18:36

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Provide VEHR API access via REST calls 10 2 0 0 0 12 0 2 2 12s 260ms Failed
Feature Provide VEHR API access via REST calls
In order to work with openEHR data As a client system I want to make REST API calls over http
9s 637ms
Scenario Query openEHR data using AQL over REST
Query openEHR data using the Archetype Query Language. openEHR data and an openEHR template that allows validation of the data should exist on the server before it can be queried. openEHR data should be stored under an EHR. The AQL query should be provided as a parameter to the REST API and results should be returned in a form compatible with the AQL results specification.
Steps
Given The server is running 4s 479ms
And The client system is logged into a server session 2s 261ms
And The openEHR template for the composition is available to the server 370ms
And An EHR is created 393ms
And A composition is persisted under the EHR 1s 835ms
Then An AQL query should return data from the composition in the EHR 296ms
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at com.ethercis.vehr.QueryWithAqlSteps.anAQLQueryShouldReturnDataPersistedIntoTheComposition(QueryWithAqlSteps.java:176)
	at ✽.Then An AQL query should return data from the composition in the EHR(RestApi.feature:21)
After QueryWithAqlSteps.cleanUp() 023ms
2s 623ms
Scenario Query openEHR data using session based EHR Id
Same scenario as 'Query openEHR data using AQL over REST' but the server is not provided the ehr identifier for the composition commit. Instead it uses the session Id to find the target ehr id.
Steps
Given The server is running 2s 096ms
And The client system is logged into a server session 064ms
And The openEHR template for the composition is available to the server 055ms
And An EHR is created 054ms
And A composition is persisted under the EHR without an EHR identifier 314ms
Then An AQL query should return data from the composition in the EHR 037ms
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at com.ethercis.vehr.QueryWithAqlSteps.anAQLQueryShouldReturnDataPersistedIntoTheComposition(QueryWithAqlSteps.java:176)
	at ✽.Then An AQL query should return data from the composition in the EHR(RestApi.feature:34)
After QueryWithAqlSteps.cleanUp() 006ms