找回密码
 欢迎注册
搜索
热搜: 活动 交友 discuz
查看: 1743|回复: 6

hl7 2.4中有关FILEDS部分的理解

[复制链接]
发表于 2009-6-25 23:38:17 | 显示全部楼层 |阅读模式
大家好,在看hl72.4Chapter2中flleds处,有一段英文如下
Except where noted, HL7 data fields may take on the  null value.
Sending the null value, which is transmitted as two double quote marks (“”), is different from omitting an optional data field.
The difference appears when the contents of a message will be used to update a record in a database rather than create a new one。If no value is sent, (i.e., it is omitted) the old value should remain unchanged.

If the null value is sent, the old value should be changed to null


null value.是表空值,还是无效值?能否帮忙梳理一下这段英文如何理解?
发表于 2009-6-26 11:14:14 | 显示全部楼层

字段的区别

我的理解是:""是空值,它会把原来的值更新。如果一个可选字段什么也没写,它不会修改原来的值,

如|""| 和||的区别:(假如说原值是|abc|),前者是有值的,值为空(就像字符串可取空值一样),会把abc换为"",后者是省略的(可选字段可以省略),没有值。原有的abc不会别改变。

个人理解,呵呵。
 楼主| 发表于 2009-6-26 11:25:06 | 显示全部楼层
谢谢
 楼主| 发表于 2009-6-26 11:32:36 | 显示全部楼层
意思是不是说就是对已经有的字段进行更新时,对相应字段的处理,||原值要么保留不变,|“”|是把已有值换成“”?
发表于 2009-6-29 09:13:37 | 显示全部楼层

回复楼主

我是这样理解的,呵呵。
发表于 2009-6-29 22:40:10 | 显示全部楼层
顺路问一句:HL7里的可选field在ER7消息中是否需要使用占位符,还是说可以直接忽略
对于这个可选的概念不是很理解,希望哪位可以教教我,谢谢了

[ 本帖最后由 swcomeon 于 2009-6-29 22:43 编辑 ]
发表于 2009-6-30 08:52:07 | 显示全部楼层

回复楼上

1.Data fields ‘not present’ require no characters.

2.Data fields ‘present but null’ are encoded with ”” (double quotes)

3.If components, subcomponents, or repetitions at the end of a data field are ‘not present’, their separators may be omitted

4.If no more fields are present in a segment, the data field separators may be omitted

5.Padding doesn’t violate the rules, but you’ll be filling other applications’ databases with spaces (it’s not fair!)



你看看第五条,是不是你说的情况。
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

快速回复 返回顶部 返回列表