3
我解析SIU S14具有以下段下令: MSH SCH PID PV1 RGS AIL AIS
HL7段訂購
,雖然它分析沒有錯誤,我不能檢索AIS段數據。但是當我在AIL之前移動AIS segement時,一切似乎都正常。那麼細分順序在HL7中是否重要?
我解析SIU S14具有以下段下令: MSH SCH PID PV1 RGS AIL AIS
HL7段訂購
,雖然它分析沒有錯誤,我不能檢索AIS段數據。但是當我在AIL之前移動AIS segement時,一切似乎都正常。那麼細分順序在HL7中是否重要?
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消息打開時,在完整的消息之後允許附加或本地定義的段。爲了檢索這些額外的數據,您需要一個改編的模板。
在HL7中並不重要。 HAPI的文件說什麼? –
檢查我的答案在http://stackoverflow.com/a/23527761/2626313 – xmojmr