Skip to content

Commit

Permalink
Merge pull request #234 from NHSDigital/em-1139-gpreg-filtering-update
Browse files Browse the repository at this point in the history
EM-1139: GP Reg filtering
  • Loading branch information
johnwilliams57-nhs authored Oct 16, 2024
2 parents 1f6c98e + 1c189c2 commit ffb13bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ properties:
- "4"
- "5"
- "6"
- "-"
- ""
description: |
Numeric code that represents the type of GP registration that occurred.
The permitted codes are as follows:
Expand All @@ -24,11 +24,11 @@ properties:
| 4 | Immigrant | A patient has moved to the UK and registers with a GP Practice . |
| 6 | Internal Transfer | A deprecated type. In [NHAIS](https://digital.nhs.uk/services/nhais) a transfer between two GP practices in the same NHAIS region is counted as this type within [PCRM](https://digital.nhs.uk/services/primary-care-registration-management) registrations are centralised and will be counted as Type 3 |
| - | Blank | Before a GP Registration is approved by Primary Care Support using NHAIS or PCRM, there is an initial GP-Links transaction sent by the GP Practice. This initial transaction will result in a Signal where the registration encounter code is set as an empty string. A subsequent Signal is created when the registration is processed, which this time includes a registration encounter code e.g. Type 3. In the case of a GP Practice merge or split, the registration encounter code will also be an empty string. |
generalpractice:
generalpractitioner:
type: string
minLength: 1
example: "Y12345"
description: The ODS Code of the requested GP Practice.
required:
- registrationencountercode
- generalpractice
- generalpractitioner
18 changes: 15 additions & 3 deletions specification/multicast-notification-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ paths:
subject: '9912003888'
filtering:
registrationencountercode: '3'
generalpractice: 'XY11'
generalpractitioner: 'XY11'
application/json:
schema:
type: "object"
Expand Down Expand Up @@ -423,7 +423,7 @@ paths:
### Subscription filtering
You can filter the signals you want to receive using the `criteria` field in the payload. As a minimum, you must specify the event type. For example, if you provide `eventType=pds-change-of-gp-1`
this will mean that you receive all PDS Change of GP events. Depending on the event, additional filters are available, for example you can filter by `generalpractice` or `registrationencountercode` for `gpreg-change-gp-req-1` event.
this will mean that you receive all PDS Change of GP events. Depending on the event, additional filters are available, for example you can filter by `generalpractitioner`,`registrationencountercode` or `supplierNACS` for `gpreg-change-gp-req-1` event.
We are working with publishers and subscribers during private beta to identify any other useful filters for existing and future event types.
For further information refer to the payload schema below.
Expand Down Expand Up @@ -506,7 +506,7 @@ paths:
criteria:
type: "string"
description: |
Criteria for the subscription. Provide your criteria with each condition separated by `&;`. If you are requesting a generic subscription to all signals of a certain type the separator is not required. For example, `eventType=gpreg-change-gp-req-1&;generalpractice=XY11`
Criteria for the subscription. Provide your criteria with each condition separated by `&;`. If you are requesting a generic subscription to all signals of a certain type the separator is not required. For example, `eventType=gpreg-change-gp-req-1&;generalpractitioner=XY11`
or `eventType=gpreg-change-gp-req-1`. A valid criteria must contain a permitted value for `eventType`. Additional criteria depends on the event and are documentated on our [Signal Catalogue page](https://digital.nhs.uk/developer/api-catalogue/multicast-notification-service/signal-catalogue).
channel:
type: "object"
Expand Down Expand Up @@ -601,6 +601,18 @@ paths:
type: "message"
endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue2"
payload: "application/json"
validatedGPRegistrationRequestSubscription:
description: "Create a validated GP registration request event subscription"
value:
resourceType: "Subscription"
status: "requested"
end: "2022-04-05T17:31:00.000Z"
reason: "A description of why this subscription should be created."
criteria: "eventType=gpreg-change-gp-req-1&;supplierNACS=Y12345&;registrationencountercode=3"
channel:
type: "message"
endpoint: "arn:aws:sqs:eu-west-2:123456789012:queue2"
payload: "application/json"

responses:
201:
Expand Down

0 comments on commit ffb13bc

Please sign in to comment.