<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Coding" />
  <meta>
    <lastUpdated value="2020-03-16T15:00:01.651+00:00" />
  </meta>
  <url value="http://StructureDefinition.hl7fhir.cn/Coding" />
  <name value="Coding" />
  <title value="术语编码类型" />
  <status value="draft" />
  <date value="2020-03-16T14:59:41.9663727+00:00" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="orim" />
    <uri value="http://hl7.org/orim" />
    <name value="Ontological RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Coding" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Coding" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Coding">
      <path value="Coding" />
      <short value="对术语系统定义的编码的引用" />
      <definition value="一个引用自术语系统定义的编码。" />
      <comment value="编码可以使用枚举值或编码列表非常随意地定义。也可以非常正式的定义，如SNOMED CT。请参阅HL7 v3核心原则。" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Coding" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="Coding.id">
      <path value="Coding.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Coding.extension">
      <path value="Coding.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Coding.system">
      <path value="Coding.system" />
      <label value="所属编码系统" />
      <short value="术语系统的标识" />
      <definition value="编码符号所属编码系统的URI。" />
      <comment value="URI可以是OID（urn:OID:…）或UUID（urn:UUID:…）。OID和UUIDs必须引用自HL7 OID注册表。否则，该URI应该选自HL7为FHIR定义的特殊URI列表。如果要引用其它系统的定义的URI，所引用的系统应该有清晰、明确的定义。" />
      <requirements value="需要明确编码符号定义的来源。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Coding.version">
      <path value="Coding.version" />
      <label value="编码系统版本" />
      <short value="系统版本-如果需求" />
      <definition value="选择此代码时使用的代码系统的版本。注意，维护良好的代码系统不需要使用版本，因为代码的含义在不同版本之间是一致的。然而，这却一定能得到保证，当同一编码的不同版本含义不能保证一致时，应提供版本信息。" />
      <comment value="如果术语没有明确定义用于标识代码系统版本的字符串，建议使用该版本正式发布的日期（以FHIR日期格式表示）作为版本日期。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Coding.code">
      <path value="Coding.code" />
      <label value="编码" />
      <short value="由系统定义的语法符号" />
      <definition value="由系统定义的语法符号。符号可以是预定义的代码或由编码系统定义的语法中的表达式，例如：后协调（post-coordination）。" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <requirements value="需要指向系统中的特定编码。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Coding.display" />
      <label value="编码含义" />
      <short value="由系统定义的编码意义" />
      <definition value="用于说明代码在系统中的意义，它遵循系统的规则。" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <requirements value="需要能够为不了解系统的使用者提供可读性强的代码含义。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Coding.userSelected">
      <path value="Coding.userSelected" />
      <label value="编码由用户选取" />
      <short value="此编码是否是由用户直接选择的" />
      <definition value="此编码是否是由用户直接选择的。例如，从下拉列表框中的选取的代码或含义。" />
      <comment value="当同一个CodeableConcept里的存在多个的Coding时，将用户直接选择的代码作为编码转换的起点是最合适的。关于“直接选择”究竟意味着什么，存在一些模糊性，可能需要数据交互的多方进一步约定以更全面地澄清这一要素的使用及其后果。" />
      <requirements value="这已经被确定为一个临床安全性标准-这明确了“系统/代码”对是由用户显式选择的，而不是由系统根据一些规则或语言处理自动生成的。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Coding">
      <path value="Coding" />
      <short value="对术语系统定义的编码的引用" />
      <definition value="一个引用自术语系统定义的编码。" />
      <comment value="编码可以使用枚举值或编码列表非常随意地定义。也可以非常正式的定义，如SNOMED CT。请参阅HL7 v3核心原则。" />
    </element>
    <element id="Coding.system">
      <path value="Coding.system" />
      <label value="所属编码系统" />
      <short value="术语系统的标识" />
      <definition value="编码符号所属编码系统的URI。" />
      <comment value="URI可以是OID（urn:OID:…）或UUID（urn:UUID:…）。OID和UUIDs必须引用自HL7 OID注册表。否则，该URI应该选自HL7为FHIR定义的特殊URI列表。如果要引用其它系统的定义的URI，所引用的系统应该有清晰、明确的定义。" />
      <requirements value="需要明确编码符号定义的来源。" />
    </element>
    <element id="Coding.version">
      <path value="Coding.version" />
      <label value="编码系统版本" />
      <short value="系统版本-如果需求" />
      <definition value="选择此代码时使用的代码系统的版本。注意，维护良好的代码系统不需要使用版本，因为代码的含义在不同版本之间是一致的。然而，这却一定能得到保证，当同一编码的不同版本含义不能保证一致时，应提供版本信息。" />
      <comment value="如果术语没有明确定义用于标识代码系统版本的字符串，建议使用该版本正式发布的日期（以FHIR日期格式表示）作为版本日期。" />
    </element>
    <element id="Coding.code">
      <path value="Coding.code" />
      <label value="编码" />
      <short value="由系统定义的语法符号" />
      <definition value="由系统定义的语法符号。符号可以是预定义的代码或由编码系统定义的语法中的表达式，例如：后协调（post-coordination）。" />
      <requirements value="需要指向系统中的特定编码。" />
    </element>
    <element id="Coding.display">
      <path value="Coding.display" />
      <label value="编码含义" />
      <short value="由系统定义的编码意义" />
      <definition value="用于说明代码在系统中的意义，它遵循系统的规则。" />
      <requirements value="需要能够为不了解系统的使用者提供可读性强的代码含义。" />
    </element>
    <element id="Coding.userSelected">
      <path value="Coding.userSelected" />
      <label value="编码由用户选取" />
      <short value="此编码是否是由用户直接选择的" />
      <definition value="此编码是否是由用户直接选择的。例如，从下拉列表框中的选取的代码或含义。" />
      <comment value="当同一个CodeableConcept里的存在多个的Coding时，将用户直接选择的代码作为编码转换的起点是最合适的。关于“直接选择”究竟意味着什么，存在一些模糊性，可能需要数据交互的多方进一步约定以更全面地澄清这一要素的使用及其后果。" />
      <requirements value="这已经被确定为一个临床安全性标准-这明确了“系统/代码”对是由用户显式选择的，而不是由系统根据一些规则或语言处理自动生成的。" />
    </element>
  </differential>
</StructureDefinition>