我正在使用以下分段顺序解析 SIU S14:
MSH
SCH
PID
PV1
RGS
AIL
AIS
虽然它解析没有错误,但我无法从 AIS 段中检索数据。但是当我在 AIL 之前移动 AIS 段时,一切似乎都正常。那么段顺序在 HL7 中是否重要?
HL7 消息中段的顺序由消息类型预先确定。在Schedule Information Unsolicited消息中,AIS段必须在AIL之前。
SIU^S12-S24,S26,S27^SIU_S12: Schedule Information Unsolicited
MSH Message Header
SCH Schedule Activity Information
[ { TQ1 } ] Timing/Quantity
[ { NTE } ] Notes and Comments for the SCH
[ { --- PATIENT begin
PID Patient Identification
[ PD1 ] Additional Demographics
[ PV1 ] Patient Visit
[ PV2 ] Patient Visit - Additional Info
[ { OBX } ] Observation/Result
[ { DG1 } ] Diagnosis
} ] --- PATIENT end
{ --- RESOURCES begin
RGS Resource Group Segment
[ { --- SERVICE begin
AIS Appointment Information - Service
[ { NTE } ] Notes and Comments for the AIS
} ] --- SERVICE end
[ { --- GENERAL_RESOURCE begin
AIG Appointment Information - General Resource
[ { NTE } ] Notes and Comments for the AIG
} ] --- GENERAL_RESOURCE end
[ { --- LOCATION_RESOURCE begin
AIL Appointment Information - Location Resource
[ { NTE } ] Notes and Comments for the AIL
} ] --- LOCATION_RESOURCE end
[ { --- PERSONNEL_RESOURCE begin
AIP Appointment Information - Personnel Resource
[ { NTE } ] Notes and Comments for the AIP
} ] --- PERSONNEL_RESOURCE end
} --- RESOURCES end
但是两个段和它们的段组都是可选的。因此,只有AIL而没有AIS段的消息在语法上是可以的。并且由于 HL7 消息是开放的,在完整的消息之后允许附加或本地定义的段。为了检索这些附加数据,您需要一个适应的模板。