【问题标题】:HL7 segments orderHL7 分段顺序
【发布时间】:2014-09-14 15:39:06
【问题描述】:

我正在使用以下分段顺序解析 SIU S14: MSH SCH PID PV1 RGS AIL AIS

虽然它解析没有错误,但我无法从 AIS 段中检索数据。但是当我在 AIL 之前移动 AIS 段时,一切似乎都正常。那么段顺序在 HL7 中是否重要?

【问题讨论】:

标签: java parsing hl7 hapi hl7-v2


【解决方案1】:

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 消息是开放的,在完整的消息之后允许有额外的或本地定义的段。为了检索这些额外的数据,您需要一个适应的模板。

【讨论】:

    猜你喜欢
    • 2016-01-15
    • 1970-01-01
    • 1970-01-01
    • 2018-03-02
    • 2021-05-18
    • 2022-06-29
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多