Skip to content

Commit e3b58e1

Browse files
committed
2 parents bd1c4aa + 32da5fa commit e3b58e1

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

docs/_layouts/no-nav-page.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@
2222
<div class="nhsuk-width-container">
2323
<main class="nhsuk-main-wrapper" id="maincontent" role="main">
2424
<div class="nhsuk-grid-row">
25-
<div class="nhsuk-grid-column-full">
26-
<div class="nhsnotify-pane__main-content nhsuk-grid-column-three-quarters">
27-
{% if page.section != undefined %}
28-
<heading class="nhsuk-heading-s" style="margin-bottom: 0; color: #4c6272">{{ page.section }}</heading>
29-
{% endif %}
30-
<h1>{{ page.title }}</h1>
31-
{{ content }}
32-
</div>
25+
<div class="nhsnotify-pane__main-content nhsuk-grid-column-three-quarters">
26+
{% if page.section != undefined %}
27+
<heading class="nhsuk-heading-s" style="margin-bottom: 0; color: #4c6272">{{ page.section }}</heading>
28+
{% endif %}
29+
<h1>{{ page.title }}</h1>
30+
{{ content }}
3331
</div>
3432
</div>
3533
</main>

docs/pages/using-nhs-notify/personalisation.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ You can send personalised messages using a single template.
1515
To personalise a message, use double brackets to add a placeholder to your content. For example:
1616

1717
{% include components/inset-text.html
18-
text='<code>Hello ((firstName)), your NHS Number is ((nhsNumber))'
18+
text='Hello ((firstName)), your NHS Number is ((nhsNumber))'
1919
%}
2020

21+
## Personal Demographics Service (PDS) personalisation fields
2122
## Personal Demographics Service (PDS) personalisation fields
2223

24+
NHS Notify uses the [Personal Demographics Service (PDS)](https://digital.nhs.uk/services/personal-demographics-service) to find and populate certain personalisation fields for each recipient. This happens automatically when you [tell us who you want to message]({% link pages/using-nhs-notify/tell-us-who-you-want-to-message.md %}) using recipients' NHS numbers.
2325
NHS Notify uses the [Personal Demographics Service (PDS)](https://digital.nhs.uk/services/personal-demographics-service) to find and populate certain personalisation fields for each recipient. This happens automatically when you [tell us who you want to message]({% link pages/using-nhs-notify/tell-us-who-you-want-to-message.md %}) using recipients' NHS numbers.
2426

27+
You can use the following PDS personalisation fields in your templates:
2528
You can use the following PDS personalisation fields in your templates:
2629

2730
- fullName
@@ -33,6 +36,7 @@ You can use the following PDS personalisation fields in your templates:
3336
- nhsNumber
3437
- date
3538

39+
Any placeholders in your content need to match the PDS personalisation fields.
3640
Any placeholders in your content need to match the PDS personalisation fields.
3741

3842
## Providing your own personalisation data
@@ -41,30 +45,30 @@ You can provide your own personalisation data.
4145

4246
Do not send us personalisation data that's already available in PDS. We'll use the PDS data over your own data in this case.
4347

48+
### If you're using NHS Notify API
4449
### If you're using NHS Notify API
4550

4651
Include a personalisation block in your API request.
4752

4853
For example, if you wanted to include 'practice' as a personalisation field, the personalisation block would be:
4954

5055
{% include components/inset-text.html
51-
text='{
52-
53-
"practice": "PRACTICE_NAME",
54-
55-
}'
56+
text='"practice": "PRACTICE_NAME",'
5657
%}
5758

5859
Read the [API documentation](https://digital.nhs.uk/developer/api-catalogue/nhs-notify#post-/v1/message-batches) to find out where to put this in your request.
5960

61+
### If you're using NHS Notify MESH
6062
### If you're using NHS Notify MESH
6163

6264
Include the personalisation fields as columns in your CSV file.
6365

66+
The column names should start with 'personalisation\_', followed by the same wording as the placeholders in your template.
6467
The column names should start with 'personalisation\_', followed by the same wording as the placeholders in your template.
6568

6669
For example, if you wanted to include 'practice' as a personalisation field, the column name would be:
6770

6871
{% include components/inset-text.html
6972
text='nhsNumber,requestItemRefId,personalisation_practice'
73+
text='nhsNumber,requestItemRefId,personalisation_practice'
7074
%}

0 commit comments

Comments
 (0)