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 141ms
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 986ms
And
The client system is logged into a server session
046ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
052ms
And
An EHR is created
057ms
1s 963ms
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 960ms
Then
A composition id should be returned by the API
003ms
After
CompositionAPISteps.cleanUp()
009ms
After
QueryWithAqlSteps.cleanUp()
000ms
2s 099ms
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 929ms
And
The client system is logged into a server session
042ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
069ms
And
An EHR is created
057ms
787ms
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
637ms
Then
A composition id should be returned by the API
000ms
And
Composition id should allow retrieval of composition in raw format
149ms
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()
008ms
After
QueryWithAqlSteps.cleanUp()
000ms
1s 763ms
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 610ms
And
The client system is logged into a server session
045ms
And
The openEHR template IDCR - Immunisation summary.v0.opt for the composition is available to the server
059ms
And
An EHR is created
047ms
797ms
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
548ms
Then
A composition id should be returned by the API
000ms
And
Composition id should allow retrieval of composition in xml format
248ms
After
CompositionAPISteps.cleanUp()
007ms
After
QueryWithAqlSteps.cleanUp()
000ms