HL7 v2 PV2-2 Field Guide: Accommodation Code Values and Common Mistakes
A one-field typo in Accommodation Code can quietly assign a test patient to the wrong room class and send a bad charge downstream - and nobody notices until billing reconciliation.
PV2-2 is a coded element (typically CE or CWE depending on version) that records what kind of accommodation the patient requested or was assigned - private room, semi-private, ward, and so on. It's usually drawn from a site-defined or user-defined table rather than a single universal HL7 table, which means the actual code values differ from one facility's configuration to the next. For test data purposes, treat it as a lookup value that must match whatever table the receiving system expects, not a free-text field.
Valid code values
Example
PV2-2 here carries the triplet A^SEMI-PRIVATE^HL70129 - a code, its display text, and the table it was pulled from.
Where this trips people up
Teams frequently assume Accommodation Code is standardized across the industry the way admin sex or marital status is. It isn't - it's almost always a locally defined table (HL70129 is a placeholder table name many systems reuse, not a fixed universal list). When you build synthetic PV2-2 values, pull from the actual table the target system publishes rather than inventing plausible-looking codes, or your "valid" test message will fail validation for a reason that has nothing to do with the scenario you're actually testing.