Skip to content

Commit d29c6ca

Browse files
committed
NRL-1053 fix tests by adding system in
1 parent 969ff8f commit d29c6ca

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/features/consumer/searchDocumentReference-failure.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,6 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios
216216
}]
217217
},
218218
"diagnostics": "Invalid query parameter (The provided category is not valid)",
219-
"expression": ["type"]
219+
"expression": ["category"]
220220
}
221221
"""

tests/features/consumer/searchDocumentReference-success.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ Feature: Consumer - searchDocumentReference - Success Scenarios
311311
| custodian | 02V |
312312
| author | 02V |
313313
When consumer 'RX898' searches for DocumentReferences with parameters:
314-
| parameter | value |
315-
| subject | 9278693472 |
316-
| category | 734163000 |
314+
| parameter | value |
315+
| subject | 9278693472 |
316+
| category | http://snomed.info/sct\|734163000 |
317317
Then the response status code is 200
318318
And the response is a searchset Bundle
319319
And the Bundle has a self link matching 'DocumentReference?subject:identifier=https://fhir.nhs.uk/Id/nhs-number|9278693472&category=http://snomed.info/sct|734163000'

tests/features/consumer/searchPostDocumentReference-failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios
199199
| http://snomed.info/sct | 736253002 |
200200
| http://snomed.info/sct | 1363501000000100 |
201201
When consumer 'RX898' searches for DocumentReferences with parameters:
202-
| parameter | value |
203-
| subject | 9278693472 |
204-
| category | invalid |
202+
| parameter | value |
203+
| subject | 9278693472 |
204+
| category | http://incorrect.info/sct\|736253002 |
205205
Then the response status code is 400
206206
And the response is an OperationOutcome with 1 issue
207207
And the OperationOutcome contains the issue:

tests/features/consumer/searchPostDocumentReference-success.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ Feature: Consumer - searchDocumentReference - Success Scenarios
283283
| custodian | x26 |
284284
| author | x26 |
285285
When consumer 'RX898' searches for DocumentReferences using POST with request body:
286-
| key | value |
287-
| subject | 9278693472 |
288-
| category | 734163000 |
286+
| key | value |
287+
| subject | 9278693472 |
288+
| category | http://snomed.info/sct\|734163000 |
289289
Then the response status code is 200
290290
And the response is a searchset Bundle
291291
And the Bundle has a total of 2

0 commit comments

Comments
 (0)