Generate an invitation token for a specific patientThis example demonstrates how to generate an invitation token for a single, specific patient based on their NHS number.
Example requestThis example is written for sandbox.patientsknowbest.com; replace the URL as needed if you are connecting to a different environment.
Note: whilst every effort has been made to ensure that the examples are correct and useful, they do not form part of the official specification. {
"resourceType": "Parameters",
"parameter": [
{
"name": "patientIdentifier",
"valueIdentifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9999999999"
}
}
]
} Example responseNote: whilst every effort has been made to ensure that the examples are correct and useful, they do not form part of the official specification. {
"resourceType": "Parameters",
"parameter": [
{
"name": "patientTokens",
"part": [
{
"name": "patientIdentifier",
"valueIdentifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9999999999"
}
},
{
"name": "code",
"valueString": "aaaaaaaaaa"
},
{
"name": "token",
"valueString": "bbbbbbbbbb"
},
{
"name": "expiry",
"valueDatetime": "2021-01-01T09:29:23.356+00:00"
}
]
}
]
}
|