In order to work with openEHR data
As a client system
I want to make REST API calls over http
        
                      
  
  
  
  
  7s 711ms
    
    
  Background
  
  
       
  
  
  The server is ready, an EHR and a template is in place and the user is logged in.
  
    
    
    
  
          
        
  Given
  The server is running
  
  4s 578ms
  
        
        
        
        
        
  
       
          
        
  And
  The client system is logged into a server session
  
  2s 313ms
  
        
        
        
        
        
  
       
          
        
  And
  The openEHR template prescription.opt for the composition is available to the server
  
  430ms
  
        
        
        
        
        
  
       
          
        
  And
  An EHR is created
  
  388ms
  
        
        
        
        
        
  
       
       
 
    
   
 
                      
  
  
  
  
  2s 052ms
    
    
  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.
  
    
    
    
  
          
        
  When
  A composition is persisted under the EHR
  
  1s 732ms
  
        
        
        
        
        
  
       
          
        
  Then
  An AQL query should return data from the composition in the EHR
  
  320ms
  
        
        
        
        
        
  
       
       
 
    
  
        
    
              
          
            After
                          QueryWithAqlSteps.cleanUp()
                        
  022ms
          
                      
          
          
  
         
              
          
            After
                          CompositionAPISteps.cleanUp()
                        
  000ms
          
                      
          
          
  
         
           
   
   
 
                      
  
  
  
  
  2s 480ms
    
    
  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 303ms
  
        
        
        
        
        
  
       
          
        
  And
  The client system is logged into a server session
  
  060ms
  
        
        
        
        
        
  
       
          
        
  And
  The openEHR template prescription.opt for the composition is available to the server
  
  056ms
  
        
        
        
        
        
  
       
          
        
  And
  An EHR is created
  
  058ms
  
        
        
        
        
        
  
       
       
 
    
   
 
                      
  
  
  
  
  477ms
    
    
  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.
  
    
    
    
  
          
        
  When
  A composition is persisted under the EHR without an EHR identifier
  
  427ms
  
        
        
        
        
        
  
       
          
        
  Then
  An AQL query should return data from the composition in the EHR
  
  049ms
  
        
        
        
        
        
  
       
       
 
    
  
        
    
              
          
            After
                          QueryWithAqlSteps.cleanUp()
                        
  010ms
          
                      
          
          
  
         
              
          
            After
                          CompositionAPISteps.cleanUp()
                        
  000ms