Skip to content

Commit 22523d9

Browse files
NRL-518 Update narrative
1 parent 85efa9e commit 22523d9

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

swagger/producer-static/narrative.yaml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,40 @@ paths:
276276
]
277277
```
278278
* `content` MUST have at least one entry.
279-
* `content` MUST include an `attachment` entry.
280-
* `content` MUST include a `format` entry.
281-
* `content` MUST include the content stability extension (https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability).
279+
* `content[]` MUST include an `attachment` entry.
280+
* `content[]` MUST include a `format` entry. (https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode)
281+
* `content[]` MUST include the content stability extension (https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability).
282282
* `content[].attachment` MUST include a `url` to the document.
283283
* `content[].attachment` MUST include a `contentType` and be a valid MIME type, specifically `application/pdf` for documents or `text/html` for contact details.
284-
* `content[].format[]` MUST indicate whether the data is structured or not, e.g.
284+
* `content[].format` MUST indicate whether the data is structured or not
285+
* Example of the content section:
285286
```
286-
"format": [
287+
"content": [
287288
{
288-
"system": "https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode",
289-
"code": "urn:nhs-ic:unstructured"
290-
"display": "Unstructured Document"
289+
"attachment": {
290+
"contentType": "application/pdf",
291+
"url": "https://provider-ods-code.thirdparty.nhs.uk/path/to/document.pdf",
292+
"creation": "2022-12-22T09:45:41+11:00"
293+
},
294+
"format": {
295+
"system": "https://fhir.nhs.uk/England/CodeSystem/England-NRLFormatCode",
296+
"code": "urn:nhs-ic:unstructured"
297+
"display": "Unstructured Document"
298+
},
299+
"extension": [
300+
{
301+
"url": "https://fhir.nhs.uk/England/StructureDefinition/Extension-England-ContentStability",
302+
"valueCodeableConcept": {
303+
"coding": [
304+
{
305+
"system": "https://fhir.nhs.uk/England/CodeSystem/England-NRLContentStability",
306+
"code": "static",
307+
"display": "Static"
308+
}
309+
]
310+
}
311+
}
312+
]
291313
}
292314
]
293315
```

0 commit comments

Comments
 (0)