Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions input/pagecontent/2-8-Extensions.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
The specification is not prescriptive about support for extensions. However, to support extensions, the specification reserves the name `extension` and will never define an element with that name, allowing implementations to use it to provide custom behavior and information. The value of an extension element MUST be a pre-coordinated JSON object. For example, an extension on a notification could look like this:

```json
{
"context": [{
"key": "patient",
"resource": {
"resourceType": "Patient",
"id": "ewUbXT9RWEbSj5wPEdgRaBw3"
}
},
{
"key": "extension",
"data": {
"user-timezone": "+1:00"
}
}
]
}
```
The specification is not prescriptive about support for extensions. However, to support extensions, the specification reserves the name `extension` and will never define an element with that name, allowing implementations to use it to provide custom behavior and information. The value of an extension element MUST be a valid JSON object. For example, an extension on a notification could look like this:

```json
{
"context": [{
"key": "patient",
"resource": {
"resourceType": "Patient",
"id": "ewUbXT9RWEbSj5wPEdgRaBw3"
}
},
{
"key": "extension",
"data": {
"user-timezone": "+1:00"
}
}
]
}
```