Skip to content

v3.0.18

Choose a tag to compare

@mattdean3-nhs mattdean3-nhs released this 04 Feb 09:26
· 508 commits to develop since this release
6c1d5e9

What's Changed

API Changes

NRL-1165 - Respond with error for invalid CodeableConcept by @katebobyn-nhs in #815

A 400 response is returned when a CodeableConcept containing a Coding with missing properties is in the provided DocumentReference JSON request body. All properties within a Coding must be set and have a value. This applies to all API endpoints that accept a DocumentReference in the request.

Example 1 - An invalid CodeableConcept .type with the coding.display and coding.system properties missing:

"type": {
  "coding": [
    {
      "code": "736253002",
    }
  ]
},

Example 2 - A valid CodeableConcept .type with all the properties set:

"type": {
  "coding": [
    {
      "code": "736253002",
      "display": "Mental health crisis plan",
      "system": "http://snomed.info/sct"
    }
  ]
},

NRL-1215 - Respond with error for duplicate keys in JSON by @axelkrastek1-nhs in #801

A 400 response is returned when a duplicate key is in the provided DocumentReference JSON request body. This applies to all API endpoints that accept a DocumentReference in the request.

Example 1 - Duplicate .type key:

"type": {
  "coding": [
    {
      "system": "http://snomed.info/sct",
      "code": "736253002",
      "display": "Mental health crisis plan"
    }
  ]
},
"type": {
  "coding": [
    {
      "system": "http://snomed.info/sct",
      "code": "736253002",
      "display": "Mental health crisis plan"
    }
  ]
},

Example 2 - Duplicate .content.attachment.url key:

"content": [
  {
    "attachment": {
      "contentType": "application/pdf",
      "language": "en-UK",
      "url": "https://example.org/MentalhealthCrisisPlanReport1.pdf",
      "url": "https://example.org/MentalhealthCrisisPlanReport2.pdf",
      "title": "Mental health crisis plan report",
      "creation": "2025-12-21T10:45:41+11:00"
    },
....

Other Changes

Full Changelog: v3.0.17...v3.0.18