简体   繁体   English

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

[英]CCD ClinicalDocument.id: What is the value of root supposed to be?

In the CDA R2 CCD implementation guide, a ClinicalDocument element (the root element of the document) is supposed to have an id element. 在CDA R2 CCD实施指南中, ClinicalDocument元素(文档的根元素)应该具有id元素。

This id element is of the "II" datatype: http://wiki.hl7.no/index.php/R1:II This states that the root attribute is to have an OID value, to identify the type of identification used in the extension attribute. id元素属于“II”数据类型: http ://wiki.hl7.no/index.php/R1:II这表明root属性具有OID值,用于标识在extension属性。

Now, when looking at the sample CCD document that HL7 provides we see: 现在,在查看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>

The root value db734647-fc99-424c-a864-7e3cda82e703 is not an OID. 根值db734647-fc99-424c-a864-7e3cda82e703不是OID。 I'm not sure what it is, but it looks like a UUID perhaps? 我不确定它是什么,但它看起来像UUID? Anyway, is this a static value for all CCD documents, or will it differ from document to another? 无论如何,这是所有CCD文件的静态值,还是会因文档而异? Why is the extension attribute not used, isn't that what identifies the document? 为什么不使用extension属性,是不是标识文档的内容?

Note that throughout that same sample document I also see things like 请注意,在同一个示例文档中,我也看到了类似的内容

<id root="2.16.840.1.113883.19.5" />

which seem to be OIDs (in the root attribute). 它似乎是OID(在root属性中)。

EDIT : The sample document I reference is from the HL7 CCD implementation guide, ie it is from the official source, it is unlikely that they would have a glaring error in their sample file that nobody has noticed before. 编辑 :我参考的样本文件来自HL7 CCD实施指南,即它来自官方来源,他们不可能在他们的样本文件中有一个以前没有人注意到的明显错误。

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

Note: you will have to create an account, but not a paid account. 注意:您必须创建一个帐户,但不是付费帐户。 Also, when I forgot my password, they emailed it in plain text to me. 此外,当我忘记密码时,他们以纯文本形式通过电子邮件发送给我。 Don't use your secure password here. 请勿在此处使用您的安全密码。

In datatypes-base.xsd, you can see an explanation of II type. 在datatypes-base.xsd中,您可以看到II类型的说明。 Root is a UID, and there are 2 types of UID. Root是一个UID,有两种类型的UID。 An OID and a UUID. OID和UUID。

UUIDs are GUIDs (your example). UUID是GUID(您的示例)。 OIDs are HL7 designated IDs. OID是HL7指定的ID。 You can file for an organizational OID, and you have control over any leaf OIDs from that point. 您可以申请组织OID,并且您可以控制该点的任何叶OID。 Following pattern "[0-2](\\.(0|[1-9][0-9]*))*" 模式“[0-2](\\。(0 | [1-9] [0-9] *))*”

Between the root and extension (string), the II should be universally unique. 在根和扩展(字符串)之间,II应该是普遍唯一的。 An OID can be unique by itself. OID本身可以是唯一的。 A couple examples. 几个例子。

OID "2.16.840.1.113883" is Hl7 ( https://www.hl7.org/oid/index.cfm ). OID“2.16.840.1.113883”是H17( https://www.hl7.org/oid/index.cfm )。 Leaf ".10.20.22" is HL7 Health Story Templates. Leaf“.10.20.22”是HL7健康故事模板。 Leaf ".1.2" is a Continuity Of Care Document. Leaf“.1.2”是一份持续性护理文件。

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

OID "2.16.840.1.113883.5" is HL7 V3 Code Systems. OID“2.16.840.1.113883.5”是HL7 V3 Code Systems。 ".1" is Administrative Gender “.1”是行政性别

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

That gives you two options for generating an II for your clinical document. 这为您的临床文档生成II提供了两种选择。 You can generate your own GUID. 您可以生成自己的GUID。 Or you can use any local identifier, if you have a meaningful ID within an OID/leaf that your organization controls. 或者,如果组织控制的OID /叶子中有有意义的ID,则可以使用任何本地标识符。 Pulling the top OID from the hl7 registry ("2.16.840.1.113883.5.3" is external users; ".1" is ProVation) as an example: 从hl7注册表中拉出顶部OID(“2.16.840.1.113883.5.3”是外部用户;“。1”是ProVation)作为示例:

They could define leafs as needed; 他们可以根据需要定义叶子; and each time they send a document, it would reference the same unique document. 每次发送文档时,都会引用相同的唯一文档。 Theoretically: 100=documents; 理论上:100 =文件; 100.2=clinical documents; 100.2 =临床文件; extension=databaseIdentityColumn. 延长= 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

It's also perfectly valid to use OID only format, as long as it's globally unique. 只要它是全球唯一的,使用仅OID格式也是完全有效的。

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

Similar to a globally unique SSN 类似于全球唯一的SSN

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

Then locally defined patient identifier could be .12=patient chart 然后,本地定义的患者标识符可以是.12 =患者图表

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

I am working on the same thing myself. 我自己也在做同样的事情。 An example I received from our EHR certifying authority had the id's root looking like an OID. 我从EHR认证机构收到的一个例子是id的root看起来像OID。 It was "2.16.840.1.113883.3.72". 这是“2.16.840.1.113883.3.72”。

Here is a link that may help somewhat: http://www.ihe.net/Technical_Framework/upload/ihe_lab_TF_rel2-3.pdf 这是一个可能有所帮助的链接: http//www.ihe.net/Technical_Framework/upload/ihe_lab_TF_rel2-3.pdf

I copied the relevant text below. 我复制了下面的相关文字。

This element SHALL be present. 这个元素应该存在。 It represents the unique instance identifier of the clinical document. 它表示临床文档的唯一实例标识符。 The combination of the root and extension attributes SHALL provide a globally unique identifier. 根和扩展属性的组合应提供全局唯一标识符。 Example: 例:

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

Old question, I know, but I'm just learning about this stuff and I think I finally have my head wrapped around it. 老问题,我知道,但我只是在学习这些东西,我想我终于把头包裹起来了。

The roots are basically like namespaces or domains in which the id will be valid and guaranteed to be unique. 根类似于名称空间或域,其中id将是有效的并且保证是唯一的。 For example if your authority/organization is generating CDAs it will most likely have applied for a unique OID (the value you see in the root is an OID 2.16.840.1.113883.19.4). 例如,如果您的权限/组织正在生成CDA,它很可能已经申请了唯一的OID(您在根中看到的值是OID 2.16.840.1.113883.19.4)。

So, for the example above, 所以,对于上面的例子,

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

I'm going to guess that 2.16.840.1.113883.19 is the base OID for the authority sending out the CDA and the .4 is most likely the OID to indicate that this 我猜想2.16.840.1.113883.19是发送CDA的权限的基本OID,.4很可能是OID来表示这个

<id>

is in fact the document's identifier (the authority defines these OID extensions under the base OID) 实际上是文档的标识符(权限在基础OID下定义这些OID扩展)

"extension" is the Unique Identifier value for this particular document. “extension”是此特定文档的唯一标识符值。

In regards to your comment about the implementation guide not having glaring errors, I've found quite the opposite in trying to figure this stuff out...there are errors abound. 关于你对实施指南没有明显错误的评论,我发现在试图弄清楚这些东西时恰恰相反......有很多错误。 I do believe the root is always to be an OID, the extensions are usually UUIDs or some other unique ID. 我确实认为root始终是OID,扩展名通常是UUID或其他一些唯一ID。

According to these two links: 根据这两个链接:

http://tl7.intelliware.ca/public/messages/dataTypes/ii.faces and http://cdatools.com/infocenter/index.jsp?topic=/org.openhealthtools.mdht.uml.cda.consol.doc/classes/GeneralHeaderConstraints.html 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

the "II" datatype accepts both OID and UUID in its root element. “II”数据类型在其root元素中接受OID和UUID。

Can someone direct me to the official documentation explaining this? 有人可以指示我解释这个的官方文件吗?

Sidenote: The lack of proper documentation and knowledge available online regarding HL7 is quite disappointing, given the fact that it is widely used. 旁注:由于广泛使用HL7,因此缺乏关于HL7的在线可用文档和知识是非常令人失望的。

I know this is an old post, but like user453441 said, HL7 info is hard to come by. 我知道这是一个老帖子,但像用户453441说,HL7信息很难得到。

Regarding the <id> element, here is what I believe is going on: 关于<id>元素,这是我认为正在发生的事情:

According to some learning materials I have been given to read at work, the element is a "Document Identifier". 根据我在工作中阅读的一些学习材料,元素是“文档标识符”。 It is a 它是一个

"unique identifier for (the) document instance. The (id) is normally generated by the document creator." “(文件)实例的唯一标识符。(id)通常由文档创建者生成。”

My interpretation is that this element is to be used for security and verification purposes. 我的解释是这个元素将用于安全和验证目的。 I believe that the element that is a child of the main <Clinical Document> element is used to show the CDA recipient that this document did indeed originate from the expected origin. 我认为,作为主要<Clinical Document>元素的子元素的元素用于向CDA接收者显示该文档确实源自预期的来源。 You, as a CDA sender, would have a unique ID of some sort (there doesn't seem to be a standard, but getting an OID for your organization would be helpful). 作为CDA发件人,您将拥有某种类型的唯一ID(似乎没有标准,但为您的组织获取OID会很有帮助)。

The root attribute of the <id> element is the unique identifier for the whole document, the unique ID for your organization. <id>元素的root属性是整个文档的唯一标识符,即组织的唯一ID。 There is also an extension attribute that can be used to uniquely identify individual sections of the CDA. 还有一个扩展属性,可用于唯一标识CDA的各个部分。 You mentioned there is more than one attribute in the CDA, this is why. 你提到CDA中有多个属性,这就是原因。 The extension attribute could be used to identify, for example, the <assignedAuthor> . 例如,extension属性可用于标识<assignedAuthor> It appears that all children of any Participation element uses this <id> element. 似乎任何Participation元素的所有子元素都使用此<id>元素。

Hope this helps. 希望这可以帮助。

Edit: After reading further, I have a couple more details. 编辑:进一步阅读后,我有更多细节。 The root attribute of the <id> element <id>元素的root属性

"...represents the unique instance identifier (UID)." “...表示唯一的实例标识符(UID)。”

I am getting these quotes from learning materials from the "Asociacion HL7 Argentina -HL7". 我从“Asociacion HL7 Argentina -HL7”的学习资料中获得了这些引用。 Their example of this uses a case number and a version sequencer for the extension attribute. 他们的示例使用案例编号和extension属性的版本序列器。 That way, two different organizations could use the same extension, but since they have different UIDs in the root attribute, they are still different. 这样,两个不同的组织可以使用相同的扩展,但由于它们在root属性中具有不同的UID,因此它们仍然不同。

When you are looking in the CDA specifications, what has already been mentioned, you see that the datatype of the ClinicalDocument.id element is II (Instance Identifier). 当您查看已经提到的CDA规范时,您会看到ClinicalDocument.id元素的数据类型是II(实例标识符)。

If you are looking into the datatype definition (can be found in the datatypes-base.xsd file), you will find the following: 如果您正在查看数据类型定义(可以在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>

Here you can see that the root attribute has to be a uid with the following documentation: 在这里,您可以看到root属性必须是一个带有以下文档的uid:

A unique identifier that guarantees the global uniqueness of the instance identifier. 唯一标识符,用于保证实例标识符的全局唯一性。 The root alone may be the entire instance identifier. 单独的根可以是整个实例标识符。

The 'id' attribute in the the ClinicalDocument class of a CDA document should hold a unique id for the document. CDA文档的ClinicalDocument类中的“id”属性应该包含文档的唯一ID。

For an II datatype then the "root" should always be an OID, the extension can be any unique string. 对于II数据类型,“root”应始终为OID,扩展名可以是任何唯一的字符串。 I would suggest that there is an error in your example XML ( where was this sourced from ). 我建议您的示例XML中存在错误(源自此处)。

It goes without saying that within the CDA document there will be many different OIDs used depending on the object they are used to Id. 不言而喻,在CDA文档中,将使用许多不同的OID,具体取决于它们用于Id的对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM