Feature
Provide Composition API access over REST
As a clinical informatics actor
In order to create, access and modify data based on openEHR compositions
I want to use a REST API to perform operations on compositions.
2s 273ms
Background
The server is ready, an EHR and a template is in place and the user is logged in.
Given
The server is running
2s 134ms
And
The client system is logged into a server session
043ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
053ms
And
An EHR is created
041ms
1s 946ms
Scenario
Commit composition in flat json format
When
Flat json file IDCR - Immunisation summary.v0.flat.json with template id IDCR - Immunisation summary.v0 is committed to service
1s 946ms
Then
A composition id should be returned by the API
000ms
After
CompositionAPISteps.cleanUp()
012ms
After
QueryWithAqlSteps.cleanUp()
000ms
After
AqlFeaturesSteps.cleanUp()
000ms
1s 841ms
Background
The server is ready, an EHR and a template is in place and the user is logged in.
Given
The server is running
1s 705ms
And
The client system is logged into a server session
035ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
052ms
And
An EHR is created
047ms
790ms
Scenario
Commit composition in flat json and retrieve raw format
When
Flat json file IDCR - Immunisation summary.v0.flat.json with template id IDCR - Immunisation summary.v0 is committed to service
650ms
Then
A composition id should be returned by the API
000ms
And
Composition id should allow retrieval of composition in raw format
140ms
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.CompositionAPISteps.getComposition(CompositionAPISteps.java:78)
at com.ethercis.vehr.CompositionAPISteps.compositionIdShouldAllowRetrievalOfCompositionInRawFormat(CompositionAPISteps.java:61)
at ✽.And Composition id should allow retrieval of composition in raw format(RestApiComposition.feature:21)
After
CompositionAPISteps.cleanUp()
005ms
After
QueryWithAqlSteps.cleanUp()
000ms
After
AqlFeaturesSteps.cleanUp()
000ms
1s 741ms
Background
The server is ready, an EHR and a template is in place and the user is logged in.
Given
The server is running
1s 585ms
And
The client system is logged into a server session
039ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
065ms
And
An EHR is created
049ms
855ms
Scenario
Commit composition in flat json and retrieve xml format
When
Flat json file IDCR - Immunisation summary.v0.flat.json with template id IDCR - Immunisation summary.v0 is committed to service
570ms
Then
A composition id should be returned by the API
000ms
And
Composition id should allow retrieval of composition in xml format
284ms
After
CompositionAPISteps.cleanUp()
010ms
After
QueryWithAqlSteps.cleanUp()
000ms
After
AqlFeaturesSteps.cleanUp()
000ms