HL7 v2 RXA-20 Field Guide: Completion Status Codes and Common Mistakes
RXA-20 decides whether the rest of the segment describes something that actually happened. Skip validating this field and your test suite is only ever exercising the "dose given normally" path.
RXA-20 is a coded field indicating whether the administration was completed, refused, not administered, or only partially administered. It works closely with RXA-21 (Action Code) — a refusal or non-administration still produces a valid RXA segment, just with different downstream handling expected.
Valid code values
Example
RXA-20 holds CP, marking this synthetic Hepatitis B dose as completed.
Where this trips people up
Systems that count "doses given" by simply counting RXA segments, without checking RXA-20, will overstate administration numbers whenever a refusal or non-administration flows through the same feed. It is worth deliberately testing RE and NA values alongside a non-zero RXA-6 — some source systems populate a dose amount out of habit even when nothing was given, and code that trusts the amount field over the status field will report a phantom administration.