CCD ClinicalDocument.id:root应该是什么价值?

时间:2011-05-11 21:10:35

标签: hl7 ccd c-cda

在CDA R2 CCD实施指南中,ClinicalDocument元素(文档的根元素)应该具有id元素。

id元素属于“II”数据类型:http://wiki.hl7.no/index.php/R1:II 这表明root属性具有OID值,以标识extension属性中使用的标识类型。

现在,在查看HL7提供的示例CCD文档时,我们看到:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="CDASchemas\cda\Schemas\CCD.xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" >
...
   <id root="db734647-fc99-424c-a864-7e3cda82e703"/>
...
</ClinicalDocument>

根值 db734647-fc99-424c-a864-7e3cda82e703 不是OID。我不确定它是什么,但它看起来像UUID?无论如何,这是所有CCD文件的静态值,还是会因文档而异?为什么extension属性未使用,是不是标识文档的内容?

请注意,在同一个示例文档中,我还会看到类似

的内容
<id root="2.16.840.1.113883.19.5" />

似乎是OID(在root属性中)。

编辑:我参考的示例文档来自HL7 CCD实施指南,即来自官方来源,他们不太可能在他们的示例文件中出现明显的错误之前注意到了。

7 个答案:

答案 0 :(得分:4)

我自己也在做同样的事情。我从EHR认证机构收到的一个例子是id的root看起来像OID。这是“2.16.840.1.113883.3.72”。

这是一个可能有所帮助的链接: http://www.ihe.net/Technical_Framework/upload/ihe_lab_TF_rel2-3.pdf

我复制了下面的相关文字。

  

此元素应存在。它   代表唯一的实例   临床文件的标识符。   根和的组合   扩展属性应提供一个   全球唯一标识符。例如:

<id root="2.16.840.1.113883.19.4" extension="abc266"/>

答案 1 :(得分:4)

您可以在此处下载CDA第2版文档: http://www.hl7.org/implement/standards/product_brief.cfm?product_id=7

注意:您必须创建一个帐户,但不是付费帐户。此外,当我忘记密码时,他们以纯文本形式通过电子邮件发送给我。请勿在此处使用您的安全密码。

在datatypes-base.xsd中,您可以看到II类型的解释。 Root是一个UID,有两种类型的UID。 OID和UUID。

UUID是GUID(您的示例)。 OID是HL7指定的ID。您可以申请组织OID,并且您可以控制该点的任何叶OID。遵循模式&#34; [0-2](\。(0 | [1-9] [0-9] *))*&#34;

在根和扩展名(字符串)之间,II应该是普遍唯一的。 OID本身可以是唯一的。几个例子。

OID&#34; 2.16.840.1.113883&#34;是Hl7(https://www.hl7.org/oid/index.cfm)。 Leaf&#34; .10.20.22&#34;是HL7健康故事模板。 Leaf&#34; .1.2&#34;是一份持续关怀文件。

<id root="2.16.840.1.113883.10.20.22.1.2" /> is globally unique for a CCD template, extension unneeded

OID&#34; 2.16.840.1.113883.5&#34;是HL7 V3 Code Systems。 &#34; 0.1&#34;是行政性别

<id root="2.16.840.1.113883.5.1" extension="M" /> is globally unique for Male

这为您提供了两种为临床文档生成II的选项。您可以生成自己的GUID。或者,如果组织控制的OID /叶子中有有意义的ID,则可以使用任何本地标识符。从hl7注册表中提取顶级OID(&#34; 2.16.840.1.113883.5.3&#34;是外部用户;&#34; .1&#34;是ProVation)作为示例:

他们可以根据需要定义叶子;每次发送文档时,都会引用相同的唯一文档。理论上:100 =文件; 100.2 =临床文件;延长= databaseIdentityColumn。

<id root="2.16.840.1.113883.5.3.1.100.2" extension="1" /> = first document they created
<id root="2.16.840.1.113883.5.3.1.100.2" extension="15" /> = 15th document they created

只要它使用OID格式,它也是完全有效的,只要它是全球唯一的。

<id root="2.16.840.1.113883.5.3.1.100.2.15" /> = 15th document they created

类似于全球唯一的SSN

<id root="2.16.840.1.113883.4.1" extension="111-11-1111" />

然后,本地定义的患者标识符可以是.12 =患者图表

<id root="2.16.840.1.113883.5.3.1.12" extension="ZZ1234-111111" />

答案 2 :(得分:3)

老问题,我知道,但我只是在了解这些东西,我想我终于把头包裹起来了。

根类似于名称空间或域,其中id有效并保证是唯一的。例如,如果您的权限/组织正在生成CDA,它很可能已经申请了唯一的OID(您在根中看到的值是OID 2.16.840.1.113883.19.4)。

所以,对于上面的例子,

    <id root="2.16.840.1.113883.19.4" extension="abc266"/>

我猜测2.16.840.1.113883.19是发送CDA的权限的基本OID,而.4很可能是指示此

的OID
<id>

实际上是文档的标识符(权限在基础OID下定义这些OID扩展)

&#34;延伸&#34;是此特定文档的唯一标识符值。

关于你对实施指南没有明显错误的评论,我发现在试图弄清楚这些东西时恰恰相反......有很多错误。我确实认为root始终是OID,扩展名通常是UUID或其他一些唯一ID。

答案 3 :(得分:2)

根据这两个链接:

http://tl7.intelliware.ca/public/messages/dataTypes/ii.faceshttp://cdatools.com/infocenter/index.jsp?topic=/org.openhealthtools.mdht.uml.cda.consol.doc/classes/GeneralHeaderConstraints.html

“II”数据类型在其root元素中接受OID和UUID。

是否有人可以直接向我提供解释此问题的官方文件?

旁注:鉴于广泛使用HL7,缺乏关于HL7的在线可用文档和知识是非常令人失望的。

答案 4 :(得分:2)

我知道这是一个旧帖子,但是像用户453441所说,HL7信息很难得到。

关于<id>元素,我认为这是:

根据我在工作中阅读的一些学习资料,该元素是“文档标识符”。这是一个

  

“(文档)实例的唯一标识符。(id)通常由文档创建者生成。”

我的解释是,此元素将用于安全性和验证目的。我相信作为主要<Clinical Document>元素的子元素的元素用于向CDA接收者显示该文档确实源自预期的来源。作为CDA发件人,您将拥有某种类型的唯一ID(似乎没有标准,但为您的组织获取OID会很有帮助)。

<id>元素的root属性是整个文档的唯一标识符,即组织的唯一ID。还有一个扩展属性,可用于唯一标识CDA的各个部分。你提到CDA中有多个属性,这就是原因。例如,扩展属性可用于标识<assignedAuthor>。似乎任何Participation元素的所有子元素都使用此<id>元素。

希望这有帮助。

编辑:进一步阅读后,我还有一些细节。 root元素的<id>属性

  

“...表示唯一的实例标识符(UID)。”

我从“Asociacion HL7 Argentina -HL7”的学习资料中获得这些引用。他们的示例使用案例编号和extension属性的版本序列器。这样,两个不同的组织可以使用相同的扩展,但由于它们在root属性中具有不同的UID,因此它们仍然不同。

答案 5 :(得分:0)

CDA文档的ClinicalDocument类中的“id”属性应该包含文档的唯一ID。

对于II数据类型,“root”应始终为OID,扩展名可以是任何唯一的字符串。我建议您的示例XML中存在错误(源自此处)。

毋庸置疑,在CDA文档中将会有许多不同的OID,具体取决于它们用于Id的对象。

答案 6 :(得分:0)

查看CDA规范时,已经提到的内容会发现ClinicalDocument.id元素的数据类型为II(实例标识符)。

如果要查看数据类型定义(可以在datatypes-base.xsd文件中找到),则会发现以下内容:

<xs:complexType name="II">
  <xs:annotation>
     <xs:documentation>
        An identifier that uniquely identifies a thing or object.
        Examples are object identifier for HL7 RIM objects,
        medical record number, order id, service catalog item id,
        Vehicle Identification Number (VIN), etc. Instance
        identifiers are defined based on ISO object identifiers.
     </xs:documentation>
     <xs:appinfo>
        <sch:pattern name="validate II">
           <sch:rule abstract="true" id="rule-II">
              <sch:report test="(@root or @nullFlavor) and not(@root and @nullFlavor)">
                 A root component is required or else the II value is NULL.
              </sch:report>
           </sch:rule>
        </sch:pattern>
     </xs:appinfo>
  </xs:annotation>
  <xs:complexContent>
     <xs:extension base="ANY">
        <xs:attribute name="root" type="uid" use="optional">
           <xs:annotation>
              <xs:documentation>
                 A unique identifier that guarantees the global uniqueness
                 of the instance identifier. The root alone may be the
                 entire instance identifier.
              </xs:documentation>
           </xs:annotation>
        </xs:attribute>
        <xs:attribute name="extension" type="st" use="optional">
           <xs:annotation>
              <xs:documentation>
                 A character string as a unique identifier within the
                 scope of the identifier root.
              </xs:documentation>
           </xs:annotation>
        </xs:attribute>
        <xs:attribute name="assigningAuthorityName" type="st" use="optional">
           <xs:annotation>
              <xs:documentation>
                 A human readable name or mnemonic for the assigning
                 authority. This name may be provided solely for the
                 convenience of unaided humans interpreting an II value
                 and can have no computational meaning. Note: no
                 automated processing must depend on the assigning
                 authority name to be present in any form.
              </xs:documentation>
           </xs:annotation>
        </xs:attribute>
        <xs:attribute name="displayable" type="bl" use="optional">
           <xs:annotation>
              <xs:documentation>
                 Specifies if the identifier is intended for human
                 display and data entry (displayable = true) as
                 opposed to pure machine interoperation (displayable
                 = false).
              </xs:documentation>
           </xs:annotation>
        </xs:attribute>
     </xs:extension>
  </xs:complexContent>

在这里您可以看到root属性必须是具有以下文档的uid:

  

保证全局唯一性的唯一标识符                    实例标识符。根源可能是                    整个实例标识符。