@@ -100,44 +100,44 @@ Feature: Producer - readDocumentReference - Failure Scenarios
100100 }
101101 """
102102
103- Scenario : Read document reference by ID - custodian suffix mismatch
104- Given the application 'DataShare' (ID 'z00z-y11y-x22x' ) is registered to access the API
105- And the organisation 'RX898.001' is authorised to access pointer types:
106- | system | value |
107- | http ://snomed .info /sct | 736253002 |
108- And the organisation 'RX898.002' is authorised to access pointer types:
109- | system | value |
110- | http ://snomed .info /sct | 736253002 |
111- And a DocumentReference resource exists with values:
112- | property | value |
113- | id | RX898 .001 -1234567890 -CustSuffixMismatch |
114- | subject | 9999999999 |
115- | status | current |
116- | type | 736253002 |
117- | category | 734163000 |
118- | contentType | application /pdf |
119- | url | https ://example .org /my -doc .pdf |
120- | custodian | RX898 .001 |
121- | author | X26 |
122- When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
123- Then the response status code is 200
124- When producer 'RX898.002' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
125- Then the response status code is 403
126- And the response is an OperationOutcome with 1 issue
127- And the OperationOutcome contains the issue:
128- """
129- {
130- "severity": "error",
131- "code": "forbidden",
132- "details": {
133- "coding": [
134- {
135- "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
136- "code": "AUTHOR_CREDENTIALS_ERROR",
137- "display": "Author credentials error"
138- }
139- ]
140- },
141- "diagnostics": "The requested DocumentReference cannot be read because it belongs to another organisation"
142- }
143- """
103+ # Scenario: Read document reference by ID - custodian suffix mismatch
104+ # Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
105+ # And the organisation 'RX898.001' is authorised to access pointer types:
106+ # | system | value |
107+ # | http://snomed.info/sct | 736253002 |
108+ # And the organisation 'RX898.002' is authorised to access pointer types:
109+ # | system | value |
110+ # | http://snomed.info/sct | 736253002 |
111+ # And a DocumentReference resource exists with values:
112+ # | property | value |
113+ # | id | RX898.001-1234567890-CustSuffixMismatch |
114+ # | subject | 9999999999 |
115+ # | status | current |
116+ # | type | 736253002 |
117+ # | category | 734163000 |
118+ # | contentType | application/pdf |
119+ # | url | https://example.org/my-doc.pdf |
120+ # | custodian | RX898.001 |
121+ # | author | X26 |
122+ # When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
123+ # Then the response status code is 200
124+ # When producer 'RX898.002' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
125+ # Then the response status code is 403
126+ # And the response is an OperationOutcome with 1 issue
127+ # And the OperationOutcome contains the issue:
128+ # """
129+ # {
130+ # "severity": "error",
131+ # "code": "forbidden",
132+ # "details": {
133+ # "coding": [
134+ # {
135+ # "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
136+ # "code": "AUTHOR_CREDENTIALS_ERROR",
137+ # "display": "Author credentials error"
138+ # }
139+ # ]
140+ # },
141+ # "diagnostics": "The requested DocumentReference cannot be read because it belongs to another organisation"
142+ # }
143+ # """
0 commit comments