Skip to content

Commit

Permalink
fix: CDR-1698 remove EHR e CONTAINS from several AQL statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavploaia committed Dec 18, 2024
1 parent be11824 commit c38c928
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Suite Setup Set Library Search Order For Tests

1.c Query - Ad-Hoc Query POST - Query Params - MATCHES Multiple Values
Set Test Variable ${query_matches1}
... SELECT pe/time/value, s/name/value FROM EHR e CONTAINS COMPOSITION c CONTAINS SECTION s CONTAINS POINT_EVENT pe WHERE s/name/value MATCHES {'Section 1', 'Section 2'}
... SELECT pe/time/value, s/name/value FROM COMPOSITION c CONTAINS SECTION s CONTAINS POINT_EVENT pe WHERE s/name/value MATCHES {'Section 1', 'Section 2'}
Set Test Variable ${test_data} {"q":"${query_matches1}"}
Send Ad Hoc Request aql_body=${test_data}
Length Should Be ${resp_body['rows']} ${2}
Expand Down Expand Up @@ -156,7 +156,7 @@ Suite Setup Set Library Search Order For Tests

3. Query - Stored Query GET By Qualified Query Name And Version
Set Test Variable ${query3}
... SELECT c/uid/value, o/uid/value, p/time/value FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o CONTAINS POINT_EVENT p WHERE c/uid/value = '${compo_id}::${system_id_with_tenant}::1'
... SELECT c/uid/value, o/uid/value, p/time/value FROM COMPOSITION c CONTAINS OBSERVATION o CONTAINS POINT_EVENT p WHERE c/uid/value = '${compo_id}::${system_id_with_tenant}::1'
${resp_qualified_query_name_version} PUT /definition/query/{qualified_query_name}/{version}
... query_to_store=${query3} format=text
GET /query/{qualified_query_name}
Expand All @@ -169,7 +169,7 @@ Suite Setup Set Library Search Order For Tests
4. Query - Stored Query POST By Qualified Query Name
[Documentation] - *Postcondition:* Delete EHR using ADMIN endpoint. This is deleting compositions linked to EHR.
Set Test Variable ${query4}
... SELECT o/uid/value, p/time/value FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o CONTAINS POINT_EVENT p WHERE c/uid/value = '${compo_id}::${system_id_with_tenant}::1'
... SELECT o/uid/value, p/time/value FROM COMPOSITION c CONTAINS OBSERVATION o CONTAINS POINT_EVENT p WHERE c/uid/value = '${compo_id}::${system_id_with_tenant}::1'
${resp_qualified_query_name} PUT /definition/query/{qualified_query_name}
... query_to_store=${query4} format=text
${resp_query} POST /query/{qualified_query_name}
Expand Down

0 comments on commit c38c928

Please sign in to comment.