|
1 | | -Feature: Producer - searchPostDocumentReference - Success Scenarios |
2 | | - |
3 | | - Scenario: Search for multiple DocumentReferences by NHS number and Summary |
4 | | - Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API |
5 | | - And the organisation 'RX898' is authorised to access pointer types: |
6 | | - | system | value | |
7 | | - | http://snomed.info/sct | 736253002 | |
8 | | - | http://snomed.info/sct | 1363501000000100 | |
9 | | - And a DocumentReference resource exists with values: |
10 | | - | property | value | |
11 | | - | id | X26-1111111111-SearchMultipleRefTest1 | |
12 | | - | subject | 9278693472 | |
13 | | - | status | current | |
14 | | - | type | 736253002 | |
15 | | - | category | 734163000 | |
16 | | - | contentType | application/pdf | |
17 | | - | url | https://example.org/my-doc-1.pdf | |
18 | | - | custodian | X26 | |
19 | | - | author | X26 | |
20 | | - And a DocumentReference resource exists with values: |
21 | | - | property | value | |
22 | | - | id | X26-1111111111-SearchMultipleRefTest2 | |
23 | | - | subject | 9278693472 | |
24 | | - | status | current | |
25 | | - | type | 736253002 | |
26 | | - | category | 734163000 | |
27 | | - | contentType | application/pdf | |
28 | | - | url | https://example.org/my-doc-2.pdf | |
29 | | - | custodian | X26 | |
30 | | - | author | X26 | |
31 | | - And a DocumentReference resource exists with values: |
32 | | - | property | value | |
33 | | - | id | x26-1111111111-SearchMultipleRefTest3 | |
34 | | - | subject | 9278693472 | |
35 | | - | status | current | |
36 | | - | type | 1363501000000100 | |
37 | | - | category | 1102421000000108 | |
38 | | - | contentType | application/pdf | |
39 | | - | url | https://example.org/my-doc-3.pdf | |
40 | | - | custodian | x26 | |
41 | | - | author | x26 | |
42 | | - When producer 'RX898' searches for DocumentReferences using POST with request body: |
43 | | - | key | value | |
44 | | - | subject | 9278693472 | |
45 | | - | _summary | count | |
46 | | - Then the response status code is 200 |
47 | | - And the response is a searchset Bundle |
48 | | - And the Bundle has a total of 3 |
0 commit comments