Dealing with PKB errors
The error type: Ambiguous patient IDs provided is an issue at the PKB side, possibly related to a patient with both CHI and NHS numbers. To solve this error:
1. Report the error to help@patientsknowbest.com. In the report, please include a minimal amount of the PID lines saying we have had these errors and asking them to investigate. For ex.:
PID|||1111111111^^^NHS Scotland^NH~42222222222^^^NHS^NH
PID|||22222222222^^^NHS^NH~111111111111^^^NHS Scotland^NH
Do not send the rest of the demographics.
2. Confirm the IDs belong to the same patient.
3. Based on the feedback received from PKB, do any of the following:
Ask PKB to remove the record with no results.
Ask PKB to remove the record with less results.
Ask PKB to keep the record that didn’t come from us (the one that don’t have a UKKA membership) and remove the other record (even if this has results).
4. Once PKB helpdesk have confirmed they’ve fixed the records at their end you can proceed.
5. If this error appeared after a historic send of data, make a note of the PID(s) the messages belong to. Remove the PID(s) from the .responses/resume directory if they exist.
6. Move the error responses to a subfolder of the failed folder.
7. Resume the send: python services/scripts/pkb/dump.py send --facility UNIT_CODE --no-anon --resume
Â