首页
学习
活动
专区
圈层
工具
发布

HL7段序
EN

Stack Overflow用户
提问于 2014-07-23 12:40:17
回答 1查看 1.6K关注 0票数 3

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

虽然它分析没有错误,但我无法从AIS段中检索数据。但是当我在艾尔之前移动AIS片段时,一切似乎都很好。那么,分段排序在HL7中重要吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-24 08:29:47

HL7消息中段的顺序由消息类型预先确定。在计划信息未经请求的消息中,AIS段必须领先于AIL

代码语言:javascript
复制
SIU^S12-S24,S26,S27^SIU_S12: Schedule Information Unsolicited

代码语言:javascript
复制
  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命令之后允许有额外的或本地定义的段来检索这些额外的数据,您需要一个经过调整的模板。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24910733

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档