我使用以下片段顺序解析SIU S14:MSH SCH PID PV1 RGS AIL AIS
虽然它分析没有错误,但我无法从AIS段中检索数据。但是当我在艾尔之前移动AIS片段时,一切似乎都很好。那么,分段排序在HL7中重要吗?
发布于 2014-07-24 08:29:47
HL7消息中段的顺序由消息类型预先确定。在计划信息未经请求的消息中,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消息是打开的,在完整的message.In命令之后允许有额外的或本地定义的段来检索这些额外的数据,您需要一个经过调整的模板。
https://stackoverflow.com/questions/24910733
复制相似问题