A replacement document was received, but the receiver could not process the new document correctly and has therefore marked the new and original documents as “bad” on its system.
The response code ‘20014’ must be supported and returned to sender.
The received document may be in a state where processing cannot be done to recognise it as a replacement. Where processing is possible to the point where the document is confirmed as a replacement, then suppliers should make every effort to indicate to staff that the initial document (i.e. that intended to be replaced) needs to be treated as “bad” to prevent GP Practice staff placing undue reliance on its content for patient care.
The GP IT supplier must have a clinically appropriate workaround behaviour for this scenario and an entry in their hazard log to identify the clinical risk and the mitigations in place.
As the sender previously sent a successful original message, the likelihood of not being able to process the replacement document is considered low.
For this error, the sender can expect back from the GP Practice system the following:
- 10001 negative catch-all infrastructure code or
- a more nuanced code for the specific processing problem such as a 10009 for bad XML, or
- 20014 to show the error relates to a failed replacement or
- two negative infrastructure response codes in the same ACK message - this would be the more nuanced error code such as 10009, and 20014 to indicate it relates to a replacement document
It is important that sender sites have adequate auditing capabilities so negative response codes can be traced back to the sent messages and any replacement document problems identified swiftly. When the sender identifies the response message as relating to a replacement document then they would need to urgently contact the GP practice via telephone to address any patient safety risks.