@@ -72,6 +72,25 @@ def test_create_single_nrl_document_reference_with_transaction_happy_path(
7272 "response" : {
7373 "status" : "201" ,
7474 "location" : "/producer/FHIR/R4/DocumentReference/Y05868-00000000-0000-0000-0000-000000000001" ,
75+ "outcome" : {
76+ "resourceType" : "OperationOutcome" ,
77+ "issue" : [
78+ {
79+ "severity" : "information" ,
80+ "code" : "informational" ,
81+ "details" : {
82+ "coding" : [
83+ {
84+ "system" : "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode" ,
85+ "code" : "RESOURCE_CREATED" ,
86+ "display" : "Resource created" ,
87+ }
88+ ]
89+ },
90+ "diagnostics" : "The document has been created" ,
91+ }
92+ ],
93+ },
7594 },
7695 },
7796 ],
@@ -150,6 +169,25 @@ def test_create_single_mhds_document_reference_with_transaction_happy_path(
150169 "response" : {
151170 "status" : "201" ,
152171 "location" : "/producer/FHIR/R4/DocumentReference/Y05868-00000000-0000-0000-0000-000000000001" ,
172+ "outcome" : {
173+ "resourceType" : "OperationOutcome" ,
174+ "issue" : [
175+ {
176+ "severity" : "information" ,
177+ "code" : "informational" ,
178+ "details" : {
179+ "coding" : [
180+ {
181+ "system" : "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode" ,
182+ "code" : "RESOURCE_CREATED" ,
183+ "display" : "Resource created" ,
184+ }
185+ ]
186+ },
187+ "diagnostics" : "The document has been created" ,
188+ }
189+ ],
190+ },
153191 },
154192 },
155193 ],
@@ -241,12 +279,50 @@ def test_create_multiple_mhds_document_reference_with_transaction_happy_path(
241279 "response" : {
242280 "status" : "201" ,
243281 "location" : "/producer/FHIR/R4/DocumentReference/Y05868-00000000-0000-0000-0000-000000000001" ,
282+ "outcome" : {
283+ "resourceType" : "OperationOutcome" ,
284+ "issue" : [
285+ {
286+ "severity" : "information" ,
287+ "code" : "informational" ,
288+ "details" : {
289+ "coding" : [
290+ {
291+ "system" : "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode" ,
292+ "code" : "RESOURCE_CREATED" ,
293+ "display" : "Resource created" ,
294+ }
295+ ]
296+ },
297+ "diagnostics" : "The document has been created" ,
298+ }
299+ ],
300+ },
244301 },
245302 },
246303 {
247304 "response" : {
248305 "status" : "201" ,
249306 "location" : "/producer/FHIR/R4/DocumentReference/Y05868-00000000-0000-0000-0000-000000000002" ,
307+ "outcome" : {
308+ "resourceType" : "OperationOutcome" ,
309+ "issue" : [
310+ {
311+ "severity" : "information" ,
312+ "code" : "informational" ,
313+ "details" : {
314+ "coding" : [
315+ {
316+ "system" : "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode" ,
317+ "code" : "RESOURCE_CREATED" ,
318+ "display" : "Resource created" ,
319+ }
320+ ]
321+ },
322+ "diagnostics" : "The document has been created" ,
323+ }
324+ ],
325+ },
250326 },
251327 },
252328 ],
@@ -354,12 +430,51 @@ def test_create_multiple_mhds_document_reference_with_transaction_wrong_ods_retu
354430 {
355431 "response" : {
356432 "status" : "400" ,
433+ "outcome" : {
434+ "resourceType" : "OperationOutcome" ,
435+ "issue" : [
436+ {
437+ "severity" : "error" ,
438+ "code" : "invalid" ,
439+ "details" : {
440+ "coding" : [
441+ {
442+ "system" : "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" ,
443+ "code" : "BAD_REQUEST" ,
444+ "display" : "Bad request" ,
445+ }
446+ ]
447+ },
448+ "diagnostics" : "The custodian of the provided DocumentReference does not match the expected ODS code for this organisation" ,
449+ "expression" : ["custodian.identifier.value" ],
450+ }
451+ ],
452+ },
357453 },
358454 },
359455 {
360456 "response" : {
361457 "status" : "201" ,
362458 "location" : "/producer/FHIR/R4/DocumentReference/Y05868-00000000-0000-0000-0000-000000000002" ,
459+ "outcome" : {
460+ "resourceType" : "OperationOutcome" ,
461+ "issue" : [
462+ {
463+ "severity" : "information" ,
464+ "code" : "informational" ,
465+ "details" : {
466+ "coding" : [
467+ {
468+ "system" : "https://fhir.nhs.uk/ValueSet/NRL-ResponseCode" ,
469+ "code" : "RESOURCE_CREATED" ,
470+ "display" : "Resource created" ,
471+ }
472+ ]
473+ },
474+ "diagnostics" : "The document has been created" ,
475+ }
476+ ],
477+ },
363478 },
364479 },
365480 ],
0 commit comments