关于HL7 PID-5字段多患者姓名构建的技术咨询
Handling Multiple Patient Names in HL7 PID-5 Field
Great question! Managing multiple patient names (like a former name and current legal name) in HL7's PID segment is a common use case, and the HL7 standard provides a straightforward way to structure this using the repeating nature of PID-5 and name type codes.
Here's how to implement it properly:
- Use PID-5 as a repeating field: HL7 allows PID-5 (Patient Name) to repeat, so you can include a separate instance of PID-5 for each distinct name the patient has. Repeating fields in HL7 are separated by the
~character. - Specify the name type in PID-5.5: Each PID-5 instance includes a component (PID-5.5) for the name type code. Use the standard HL7 0006 code set to distinguish between name types:
- For the current/legal name, use the code
L(Legal Name) — this is the most widely accepted code for a patient's official current name. - For former/alias names, use the code
A(Alias Name). If the former name is a maiden name specifically, you could useM, butAworks for any previous legal name.
- For the current/legal name, use the code
Example HL7 PID Segment Snippet
PID|||PAT-12345||Mat^Han^Robert^||19800101|M|||123 Oak Ave^^Portland^OR^97201^USA||503-555-1234||||||987654321|||L~Burke^Han^John^||||||||||A
Breaking this down:
- The first PID-5 instance (
Mat^Han^Robert^...|||L) is the patient's current legal name, marked with type codeL. - The second PID-5 instance (
Burke^Han^John^...|||A) is the former name, marked with type codeA, separated from the first by~.
Key Best Practices
- Always list the current/primary name first as the initial PID-5 instance — this is standard practice to ensure receiving systems prioritize the most relevant name.
- If you need to include additional name types (like nicknames), use the appropriate code from the HL7 0006 set (e.g.,
Nfor Nickname). - Confirm with the receiving system which name type codes they support, as some systems may have specific preferences or restrictions.
内容的提问来源于stack exchange,提问作者Sam
相关产品推荐
相关产品推荐

