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