File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed
createDocumentReference/tests
updateDocumentReference/tests
upsertDocumentReference/tests Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,21 @@ def test_create_document_reference_invalid_body():
238238 "diagnostics" : "Request body could not be parsed (status: Field required)" ,
239239 "expression" : ["status" ],
240240 },
241+ {
242+ "severity" : "error" ,
243+ "code" : "invalid" ,
244+ "details" : {
245+ "coding" : [
246+ {
247+ "code" : "MESSAGE_NOT_WELL_FORMED" ,
248+ "display" : "Message not well formed" ,
249+ "system" : "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" ,
250+ }
251+ ],
252+ },
253+ "diagnostics" : "Request body could not be parsed (author: Field required)" ,
254+ "expression" : ["author" ],
255+ },
241256 {
242257 "severity" : "error" ,
243258 "code" : "invalid" ,
Original file line number Diff line number Diff line change @@ -246,6 +246,21 @@ def test_create_document_reference_invalid_body():
246246 "diagnostics" : "Request body could not be parsed (status: Field required)" ,
247247 "expression" : ["status" ],
248248 },
249+ {
250+ "severity" : "error" ,
251+ "code" : "invalid" ,
252+ "details" : {
253+ "coding" : [
254+ {
255+ "code" : "MESSAGE_NOT_WELL_FORMED" ,
256+ "display" : "Message not well formed" ,
257+ "system" : "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" ,
258+ }
259+ ],
260+ },
261+ "diagnostics" : "Request body could not be parsed (author: Field required)" ,
262+ "expression" : ["author" ],
263+ },
249264 {
250265 "severity" : "error" ,
251266 "code" : "invalid" ,
Original file line number Diff line number Diff line change @@ -323,6 +323,21 @@ def test_upsert_document_reference_invalid_body():
323323 "diagnostics" : "Request body could not be parsed (status: Field required)" ,
324324 "expression" : ["status" ],
325325 },
326+ {
327+ "severity" : "error" ,
328+ "code" : "invalid" ,
329+ "details" : {
330+ "coding" : [
331+ {
332+ "code" : "MESSAGE_NOT_WELL_FORMED" ,
333+ "display" : "Message not well formed" ,
334+ "system" : "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" ,
335+ }
336+ ],
337+ },
338+ "diagnostics" : "Request body could not be parsed (author: Field required)" ,
339+ "expression" : ["author" ],
340+ },
326341 {
327342 "severity" : "error" ,
328343 "code" : "invalid" ,
You can’t perform that action at this time.
0 commit comments