Skip to content

Commit a8c0352

Browse files
committed
NRL-502 add format to setup
1 parent 772a93b commit a8c0352

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/features/producer/createDocumentReference-failure.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios
409409

410410
Scenario: Invalid format code for attachment type contact details
411411
Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
412-
And the organisation 'X26' is authorised to access pointer types:
412+
And the organisation 'TSTCUS' is authorised to access pointer types:
413413
| system | value |
414414
| http://snomed.info/sct | 1363501000000100 |
415415
| http://snomed.info/sct | 736253002 |
@@ -455,7 +455,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios
455455

456456
Scenario: Invalid format code for attachment type pdf
457457
Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
458-
And the organisation 'X26' is authorised to access pointer types:
458+
And the organisation 'TSTCUS' is authorised to access pointer types:
459459
| system | value |
460460
| http://snomed.info/sct | 1363501000000100 |
461461
| http://snomed.info/sct | 736253002 |

tests/features/utils/data.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ def create_test_document_reference(items: dict) -> DocumentReference:
3333
attachment=Attachment(
3434
contentType=items.get("contentType", "application/json"),
3535
url=items["url"],
36-
)
36+
),
37+
format=Coding(
38+
system="https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode",
39+
code="urn:nhs-ic:unstructured",
40+
display="Unstructured document",
41+
),
3742
)
3843
],
3944
context=DocumentReferenceContext(

0 commit comments

Comments
 (0)