Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
81 changes: 81 additions & 0 deletions signal-schemas/examples/pds-record-change-2/signal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"resourceType": "Bundle",
"id": "deb6ed8d-c54a-4489-8609-b15baf927541",
"type": "history",
"timestamp": "2020-06-01T13:00:00Z",
"entry": [
{
"fullUrl": "urn:uuid:7c38eb82-9186-402f-a120-94c29ceddb48",
"resource": {
"resourceType": "Parameters",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription-status-r4"
]
},
"id": "7c38eb82-9186-402f-a120-94c29ceddb48",
"parameter": [
{
"name": "subscription",
"valueReference": {
"reference": "https://api.service.nhs.uk/multicast-notification-service/subscriptions"
}
},
{
"name": "status",
"valueCode": "active"
},
{
"name": "type",
"valueCode": "event-notification"
},
{
"name": "notification-event",
"part": [
{
"name": "event-number",
"valueString": "1"
},
{
"name": "timestamp",
"valueInstant": "2020-06-01T13:00:00Z"
}
]
},
{
"name": "additional-context",
"part": [
{
"name": "event-type",
"valueString": "pds-record-change-2"
},
{
"name": "source",
"valueUri": "https://fhir.nhs.uk/Id/nhsSpineASID/477121000324"
},
{
"name": "subject",
"valueReference": {
"identifier": {
"value": "9912003888"
}
}
},
{
"name": "version-id",
"valueString": "W/\"4\""
}
]
}
]
},
"request": {
"method": "GET",
"url": "https://api.service.nhs.uk/multicast-notification-service/subscriptions"
},
"response": {
"status": "200"
}
}
]
}
14 changes: 14 additions & 0 deletions specification/multicast-notification-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,20 @@ paths:
time: '2020-06-01T13:00:00Z'
dataref: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ecc32c41
subject: '9730676240'
pds-record-change-2:
description: "Create a PDS record change event"
value:
specversion: '1.0'
id: 963b28e0-067a-4a3f-bee8-f613c23541b2
source: https://fhir.nhs.uk/Id/nhsSpineASID/477121000324
type: pds-record-change-2
time: '2020-06-01T13:00:00Z'
subject: '9912003888'
versionid: 'W/"16"'
filtering:
changed_name: true
registeredgpodscode: 'XY11'
nhsnumber: '9912003888'
pds-death-notification-2:
description: "Create a patient death status event"
value:
Expand Down
12 changes: 12 additions & 0 deletions specification/requestBody/create-or-update-subscription-body.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@ content:
type: "message"
endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1"
payload: "application/json"
pdsRecordChangeSubscription:
description: "PDS record change subscription"
value:
resourceType: "Subscription"
status: "requested"
end: "2022-04-05T17:31:00.000Z"
reason: "Business process A"
criteria: "eventType=pds-record-change-2"
channel:
type: "message"
endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue1"
payload: "application/json"
pdsChangeofGPSubscription:
description: "PDS change of GP subscription"
value:
Expand Down
6 changes: 6 additions & 0 deletions specification/schemas/cloudevents/mns-publish-cloudevent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,18 @@ properties:
format: uri
minLength: 1
example: https://api.service.nhs.uk/personal-demographics/FHIR/R4/Patient/9912003888
versionid:
description: Version identifier for the resource that the event relates to.
type: string
minLength: 1
example: "12"
filtering:
type: object
additionalProperties:
oneOf:
- type: string
- type: number
- type: boolean
- type: array
items:
oneOf:
Expand Down
Loading