{
  "resourceType": "StructureDefinition",
  "id": "Quantity",
  "url": "http://StructureDefinition.hl7fhir.cn/Quantity",
  "name": "Quantity",
  "title": "数量类型",
  "status": "draft",
  "description": "用于计量的数据数型，表示一个可以被测量的数量）。包括没有精确量化部分的数量，如无量纲量（arbitrary unit，即在相同度量条件下各数据间的相对大小）、浮动货币等。",
  "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"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Quantity",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Quantity",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Quantity",
        "path": "Quantity",
        "short": "数量",
        "definition": "计量的量（或一个可以被测量的数量）。注意，计量数量包括没有精确量化部分的数量，如无量纲量（arbitrary unit，即在相同度量条件下各数据间的相对大小）、浮动货币等。",
        "comment": "需要通过具体的场景来确定数量的类型和单位。使用场景还可能约束Quantity.comparator的值。"
      },
      {
        "id": "Quantity.value",
        "path": "Quantity.value",
        "short": "数值",
        "definition": "测量出来的值。该值的精度由其自身的表现形式决定。如“3.2”的精度低于“3.20”。",
        "comment": "应该重视数值格式中所暗含的精度意义。如：货币类型的数值有自己的处理精度规则",
        "requirements": "计量值的精度几乎都暗含在其表示格式中。"
      },
      {
        "id": "Quantity.comparator",
        "path": "Quantity.comparator",
        "short": "< | <= | >= | > - 与实际值的比较",
        "definition": "应该如何理解和表示计量的值——由于测量问题，实际值与声明的计量值之间的关系；例如，如果此值为“<”，则实际值比声明的值更小。",
        "comment": "如果是简单数据类型（SimpleQuantity），则不允许使用此元素",
        "requirements": "由于测量方法的限制，需要一个框架可用于处理测量值小于5ug/L或大于400mg/L的情况。",
        "meaningWhenMissing": "如果此元素缺失，则实际值就是声明的计量值",
        "isModifierReason": "改变此元素的值会使整个计量值的意义发生重大变化。"
      },
      {
        "id": "Quantity.unit",
        "path": "Quantity.unit",
        "short": "单位",
        "definition": "计量值所使用的度量单位。",
        "requirements": "度量单位有许多表示方式，对于特定的度量一般都有固定的强制要求。比如，用\"mcg\"来表示单位“微克”。"
      },
      {
        "id": "Quantity.system",
        "path": "Quantity.system",
        "short": "单位编码所属系统",
        "definition": "以编码表示的度量单位所属的系统标识。",
        "comment": "参见：http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "requirements": "通过单位编码的所属系统才能准确理解编码的含义"
      },
      {
        "id": "Quantity.code",
        "path": "Quantity.code",
        "short": "单位编码",
        "definition": "在某些单位表示系统中，单位的编码形式，可用于计算机处理。",
        "comment": "从编码的选用角度，首选系统是UCUM（Unified Code for Units of Measure，计量单位统一代码），其次是SNOMED CT（ 惯用单位）或 ISO 4217（货币单位）。在特定的场景中可能还需要用到其它系统的单位编码。",
        "requirements": "在单位的所有表现形式中，需要一个可供计算机处理的固定形式。UCUM编码系统为计量单位提供了这种形式，而SNOMED CT也提供了许多有趣的单位编码。"
      }
    ]
  }
}