PackagesCanonicalsLogsProblems
    Packages
    tw.gov.mohw.emr@0.1.0
    https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckComposition
{
  "description": "此Profile用於描述檢驗檢查中的報告資料",
  "_filename": "StructureDefinition-InspectionCheckComposition.json",
  "package_name": "tw.gov.mohw.emr",
  "date": "2024-05-06T17:38:33+08:00",
  "derivation": "constraint",
  "publisher": "衛生福利部",
  "fhirVersion": "4.0.1",
  "name": "InspectionCheckComposition",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/v3/cda",
    "name": "CDA (R2)",
    "identity": "cda"
  }, {
    "uri": "http://hl7.org/fhir/documentreference",
    "name": "FHIR DocumentReference",
    "identity": "fhirdocumentreference"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Composition",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "檢驗檢查-報告資料",
  "package_version": "0.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "Composition",
      "min": 0,
      "definition": "一組與健康照護相關的資訊,這些訊息被組合成一個單一的邏輯套件,提供一個單一的連貫的意義陳述,建立自己的上下文,並且提供有關於是誰做出陳述的臨床認證。",
      "isModifier": false,
      "short": "將一組resources組成一份連貫的臨床聲明,並附有臨床證明。",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]",
        "identity": "rim"
      }, {
        "map": "ClinicalDocument",
        "identity": "cda"
      }, {
        "map": "when described by DocumentReference",
        "identity": "fhirdocumentreference"
      } ],
      "max": "*",
      "id": "Composition",
      "comment": "雖然此規範的重點在於特定於病人的臨床聲明,但此resource也可適用於其他與健康照護相關的聲明,如研究方案設計、醫療發票和其他不必然與特定於病人或臨床相關的活動。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition"
      },
      "isSummary": false
    }, {
      "path": "Composition.id",
      "min": 0,
      "definition": "resource的邏輯ID,在resource的URL中使用。一旦指定,這個值永遠不會改變。",
      "isModifier": false,
      "short": "不重複的ID用以識別儲存在特定FHIR Server中的Composition紀錄,通常又稱為邏輯性ID。",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "max": "1",
      "id": "Composition.id",
      "comment": "一個resource使用新增操作(create operation)提交給伺服器時是此resource唯一沒有id的時刻",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.meta",
      "min": 0,
      "definition": "關於resource的metadata。這是由基礎建設維護的內容。對內容的改變可能並不總是與resource的版本改變相關。",
      "isModifier": false,
      "short": "此Composition Resource的metadata",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Composition.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.implicitRules",
      "min": 0,
      "definition": "構建resource時遵循的一系列規則的參照,在處理內容時必須理解這些規則。通常這是IG定義特殊規則及其他profiles的參照。",
      "isModifier": true,
      "short": "創建此內容所依據的一組規則",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Composition.implicitRules",
      "comment": "宣告這套規則限制了內容只能被有限的貿易夥伴所理解。這從本質上限制了資料的長期有用性。然而,現有的健康生態體系高度分裂,還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能,實作者和(或)規範編寫者應該避免使用這個資料項目。通常,在使用時,此URL是對實作指引的參照,此指引將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.language",
      "min": 0,
      "definition": "編寫此resource的基礎語言",
      "isModifier": false,
      "short": "用以表述Composition Resource內容的語言",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "人類語言;鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Composition.language",
      "comment": "提供語言是為了支援索引和可存取性(通常,文字表述轉語音等服務使用此語言標籤)。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此基礎語言。不應該假定Resource.language自動適用於敘述。如果指定語言,它也應該被指定在html中的div元素(關於xml:lang和html lang屬性之間的關係,見HTML5中的規則)。",
      "example": [ {
        "label": "Value",
        "valueString": "zh-TW"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.text",
      "min": 0,
      "definition": "人可讀的敘述,包含resource的摘要,可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼,但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義可定義哪些內容應該在敘述中表示,以確保臨床安全。",
      "isModifier": false,
      "short": "Composition Resource之內容摘要以供人閱讀",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Composition.text",
      "comment": "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Composition.contained",
      "min": 0,
      "definition": "這些resource內嵌(contains)的resource不會另外存於任何FHIR伺服器,意即它們無法在任何FHIR伺服器中被找到,也無法有自己獨立的資料異動/交易(transaction)範圍。",
      "isModifier": false,
      "short": "內嵌的(contained)、行內的Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Composition.contained",
      "comment": "內嵌(contained)的resource沒有敘述,非內嵌(contained)的resource則 **建議應該(SHOULD)** 有敘述。在某些情況下,resource可能只有文字表述,很少或沒有額外的離散資料(只要滿足所有minOccurs=1的資料項目)。這對於來自舊有系統的資料可能是必要的,在這些系統中,從 「文字表述區塊(text blob) 」獲取訊息,或者文字表述是額外的原始輸入或敘述,而編碼訊息是後來添加的。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互操作性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。  \r\n修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.identifier",
      "min": 0,
      "definition": "與版本無關的Composition識別碼。隨著時間的推移,該識別碼將保持不變。",
      "isModifier": false,
      "short": "不分版本的臨床文件架構(Composition)識別碼。",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "Document.id / Document.setId",
        "identity": "rim"
      }, {
        "map": ".setId",
        "identity": "cda"
      }, {
        "map": "DocumentReference.masterIdentifier",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.identifier",
      "comment": "類似於 CDA 中的 ClinicalDocument/setId。請參閱resource定義中的討論,了解它們之間的關係。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.status",
      "fixedCode": "final",
      "requirements": "需要能夠標記為臨時(interim)、修改(amended)或撤回(withdrawn)的composition或文件。",
      "min": 1,
      "definition": "此composition的工作流程/臨床狀態。狀態是指文件的臨床狀態的標識。",
      "isModifier": true,
      "short": "registered | partial | preliminary | final | amended | corrected +",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "interim: .completionCode=\"IN\" & ./statusCode[isNormalDatatype()]=\"active\";  final: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and not(./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct()]);  amended: .completionCode=\"AU\" &&  ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct() and statusCode=\"completed\"];  withdrawn : .completionCode=NI &&  ./statusCode[isNormalDatatype()]=\"obsolete\"",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      }, {
        "map": "DocumentReference.status",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1",
        "description": "診斷報告狀態;應填[DiagnosticReportStatus](http://hl7.org/fhir/ValueSet/composition-status)代碼表中的其中一個代碼"
      },
      "max": "1",
      "id": "Composition.status",
      "comment": "如果一個composition被標記為撤回(withdraw),那麼該系列中的composition/文件或者此composition或文件系列中的資料,若未被明確標記為(該撤回)不可信的情況下,則不應向用戶展示。「錯誤輸入 (entered-in-error)標籤是此composition為何被標記為修飾用資料項目(modifier)的原因。\r\n某些報告工作流程要求最終文件的原始敘述永不更改;意即只能添加新的敘述。composition resource 沒有明確的狀態(status)來明確註明是否適用此業務規則。如有需要,這將透過擴充來處理。",
      "example": [ {
        "label": "Value",
        "valueCode": "final"
      } ],
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.status"
      },
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.type",
      "requirements": "描述composition的關鍵metadata資料項目,用於查詢/篩選。",
      "min": 1,
      "definition": "指定特定類型的composition(如病史和體檢、出院摘要、病程紀錄)。這通常等同於製作composition的目的。",
      "isModifier": false,
      "short": "Composition的種類(如果可能請使用LOINC)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-typecodes",
        "description": "應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Composition.type",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.type"
      }
    }, {
      "path": "Composition.type.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.type.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.type.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.type.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.type.coding",
      "requirements": "允許代碼系統中的替代編碼,以及翻譯到其他編碼系統。",
      "min": 0,
      "definition": "由專門術語系統(terminology system)所定義之代碼的參照",
      "isModifier": false,
      "short": "由專門術語系統(terminology system)定義的代碼",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.type.coding",
      "condition": [ "ele-1" ],
      "comment": "代碼可以在列舉清單(enumerations)或代碼清單(code lists)中非常隨意地定義,直至有非常正式的定義,例如:SNOMED CT—更多資訊見HL7 v3核心原則(Core Principles )。編碼的排序是未定義的因而 **必須沒有(SHALL NOT)** 被用來推斷意義。一般來說,最多只有一個編碼值(coding values)會被標記為UserSelected = true。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.type.text",
      "requirements": "專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義,或者根本就沒有合適的代碼;這些情況下,文字表述被用來捕捉來源的全部意義。",
      "min": 1,
      "definition": "輸入資料的使用者所見/所選/所說的人類可讀文字表述,和(或)其代表使用者的預期含義。",
      "isModifier": false,
      "short": "類型說明描述",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "fixedString": "檢驗檢查",
      "id": "Composition.type.text",
      "comment": "很多時候,此文字表述與其中一個代碼的顯示名稱相同。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.category",
      "requirements": "幫助人類在檢視composition或規範文件時評估composition是否感興趣。",
      "min": 0,
      "definition": "composition類型的分類 - 有助於索引和查詢。這可能是由 Composition Type 中指定的代碼隱含或衍生出來的。",
      "isModifier": false,
      "short": "Composition的分類",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes",
        "description": "應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "*",
      "id": "Composition.category",
      "condition": [ "ele-1" ],
      "comment": "\"這是來自XDS/MHD的metadata欄位\"。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.category"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject",
      "requirements": "查詢composition的基本metadata,指明compoisition/文件的作者和/或內容。",
      "min": 1,
      "definition": "composition是關於誰或什麼的。composition可以是關於一個人(病人或醫護人員)、一個設備(如機器),甚至是一群對象(如關於一群牲畜的文件,或一群有共同曝露的病人)。",
      "isModifier": false,
      "short": "報告文件有關的對象及(或)事物。[應填入於檢驗檢查中的病人基本資料]",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]",
        "identity": "rim"
      }, {
        "map": ".recordTarget",
        "identity": "cda"
      }, {
        "map": "DocumentReference.subject",
        "identity": "fhirdocumentreference"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckPatient" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.subject",
      "comment": "對於臨床文件來說,這通常是指病人。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.subject"
      },
      "isSummary": true
    }, {
      "path": "Composition.subject.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.subject.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.subject.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.subject.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject.reference",
      "min": 1,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.subject.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.subject.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.subject.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.subject.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter",
      "requirements": "為composition提供情境並支持查詢。",
      "min": 1,
      "definition": "描述與該文件相關的臨床就醫事件或照護類型。",
      "isModifier": false,
      "short": "報告文件來自於哪次住院基本資料",
      "mapping": [ {
        "map": "Event.context",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])",
        "identity": "rim"
      }, {
        "map": ".componentOf.encompassingEncounter",
        "identity": "cda"
      }, {
        "map": "DocumentReference.context.encounter",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckEncounter" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.encounter",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.encounter"
      },
      "isSummary": true
    }, {
      "path": "Composition.encounter.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.encounter.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.encounter.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.encounter.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter.reference",
      "min": 1,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "關聯至檢驗檢查中的開立資料",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.encounter.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.encounter.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.encounter.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.encounter.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.date",
      "requirements": "dateTime 用於追蹤、組織版本和查詢。請注意:這是創作此版本Composition的時間。打包成文檔時,Bundle.timestamp 是打包日期。",
      "min": 1,
      "definition": "composition編輯時間,即作者最後一次邏輯上更改composition的時間。",
      "isModifier": false,
      "short": "報告產生日期。[應填入於檢驗檢查報告日期時間Report Date and Time]",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".effectiveTime[type=\"TS\"]",
        "identity": "rim"
      }, {
        "map": ".effectiveTime",
        "identity": "cda"
      }, {
        "map": "DocumentReference.content.attachment.date, DocumentReference.created",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.date",
      "comment": "composition上的最後修改日期可能在文件被證明日期之後而未更改。這意味著修改過的文件上的日期是修改日期,而非原始撰寫之日期。",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.date"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author",
      "requirements": "指明誰對內容負責",
      "min": 2,
      "definition": "Identifies who is responsible for the information in the composition, not necessarily who typed it in.\r\n於檢驗報告中,至少須包含醫事機構與醫事人員資料。",
      "isModifier": false,
      "short": "報告文件有關的創作部分",
      "mapping": [ {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      }, {
        "map": "DocumentReference.agent",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckOrganization", "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckPractitioner" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.author",
      "base": {
        "max": "*",
        "min": 1,
        "path": "Composition.author"
      },
      "isSummary": true
    }, {
      "path": "Composition.author.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.author.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.author.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.author.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author.reference",
      "min": 1,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.author.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.author.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.author.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.author.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.title",
      "min": 1,
      "definition": "composition的正式可讀標籤",
      "isModifier": false,
      "short": "報告文件的名字或標題",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      }, {
        "map": "DocumentReference.description, DocumentReference.content.attachment.title",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.title",
      "comment": "對於許多composition來說,標題與文本或 Composition.type 的顯示名稱相同(如 「會診﹙consultation﹚」或 「病程紀錄﹙progress note﹚」)。請注意:CDA 並不強制要求標題,但目前還沒有發現省略標題有用的情況,因此在此強制要求標題。歡迎在試用區間對這一要求提出反饋意見。",
      "example": [ {
        "label": "Value",
        "valueString": "檢驗檢查"
      } ],
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.title"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.confidentiality",
      "min": 0,
      "definition": "具體說明Composition保密等級的代碼",
      "isModifier": false,
      "short": "根據特定技術領域的定義",
      "mapping": [ {
        "map": ".confidentialityCode",
        "identity": "rim"
      }, {
        "map": ".confidentialityCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.securityLabel",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentConfidentiality"
        } ],
        "description": "應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Composition.confidentiality",
      "comment": "此資料項目的確切使用,以及與高度敏感文件相關的執行和問題超出了基本規範的範圍,並委託給實作Profiles(見安全小節)。 此資料項目被標記為修飾用,因為高度機密的文件不能被當作非機密文件處理。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.confidentiality"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester",
      "requirements": "指明對composition內容準確性的責任",
      "min": 0,
      "definition": "證明composition/文件準確無誤的參與者",
      "isModifier": false,
      "short": "證明Composition的準確性",
      "mapping": [ {
        "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".authenticator/.legalAuthenticator",
        "identity": "cda"
      }, {
        "map": "DocumentReference.authenticator",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.attester",
      "comment": "每位參與者只需每位證明者只列一次",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.attester"
      },
      "isSummary": false
    }, {
      "path": "Composition.attester.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.attester.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.attester.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.attester.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.attester.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.attester.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.mode",
      "requirements": "指明認證的權威程度",
      "min": 1,
      "definition": "認證者提供的認證類型",
      "isModifier": false,
      "short": "personal | professional | legal | official",
      "mapping": [ {
        "map": "unique(./modeCode)",
        "identity": "rim"
      }, {
        "map": "implied by .authenticator/.legalAuthenticator",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionAttestationMode"
        } ],
        "description": "認證者提供的認證類型;應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Composition.attester.mode",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.attester.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.time",
      "requirements": "指明composition中的資訊何時被認為是準確的。(自那時起可能發生了變化)。",
      "min": 0,
      "definition": "當composition被該方證實的時間",
      "isModifier": false,
      "short": "此Composition被證明的時間",
      "mapping": [ {
        "map": "./time[type=\"TS\" and isNormalDatatype()]",
        "identity": "rim"
      }, {
        "map": ".authenticator.time",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Composition.attester.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.attester.time"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.party",
      "requirements": "指明由誰承擔composition內容準確性的責任",
      "min": 0,
      "definition": "誰以指定的方式證明了此composition",
      "isModifier": false,
      "short": "誰證明了此Composition",
      "mapping": [ {
        "map": "FiveWs.witness",
        "identity": "w5"
      }, {
        "map": "./role[classCode=\"ASSIGNED\" and isNormalRole]/player[determinerCode=\"INST\" and classCode=(\"DEV\", \"PSN\") and isNormalEntity()] or ./role[classCode=\"ASSIGNED\" and isNormalRole and not(player)]/scoper[determinerCode=\"INST\" and classCode=\"ORG\" and isNormalEntity()]",
        "identity": "rim"
      }, {
        "map": ".authenticator.assignedEnttty",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore" ]
      } ],
      "max": "1",
      "id": "Composition.attester.party",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.attester.party"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.custodian",
      "requirements": "指明在哪裡可以找到當前版本、在哪裡可以報告問題等",
      "min": 0,
      "definition": "指明負責持續維護和存取composition/文件資訊的機構或團體",
      "isModifier": false,
      "short": "維護Composition的機構",
      "mapping": [ {
        "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]",
        "identity": "rim"
      }, {
        "map": ".custodian.assignedCustodian",
        "identity": "cda"
      }, {
        "map": "DocumentReference.custodian",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.custodian",
      "comment": "當此文件是衍生自composition時非常有用。它提供了如何獲取文件的最新版本的指導。這是可選項,因為有時編寫系統並不知道可以根據情境推斷。不過,在處理派生文件時,了解這一資訊非常重要,因此鼓勵提供一個保管者。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.custodian"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo",
      "min": 0,
      "definition": "此composition與其他已有的composition或文件之間的關係",
      "isModifier": false,
      "short": "與其他Composition/文件之間的關係",
      "mapping": [ {
        "map": ".outboundRelationship",
        "identity": "rim"
      }, {
        "map": ".relatedDocument",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Composition.relatesTo",
      "comment": "要參照(使用 relatesTo)「document」type的 Bundle 或其他只有識別碼的 Composition,請使用帶有識別碼的 resourceReference。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.relatesTo"
      },
      "isSummary": false
    }, {
      "path": "Composition.relatesTo.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.relatesTo.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.relatesTo.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.relatesTo.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.code",
      "min": 1,
      "definition": "此composition與另一個compoisition或文件的關系類型",
      "isModifier": false,
      "short": "replaces | transforms | signs | appends",
      "mapping": [ {
        "map": ".outboundRelationship.typeCode",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.typeCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.code",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentRelationshipType"
        } ],
        "description": "檔案之間的關係型別;應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Composition.relatesTo.code",
      "comment": "如果此文件附加了另一個文件,那麼如果不存取參照的文件,就無法完全理解此文件。",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.target[x]",
      "min": 1,
      "definition": "此關係的目標composition/文件",
      "isModifier": false,
      "short": "此關係的目標文件",
      "mapping": [ {
        "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.id",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.target",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Composition" ]
      } ],
      "max": "1",
      "id": "Composition.relatesTo.target[x]",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.target[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event",
      "requirements": "為composition提供情境背景,並在描述事件的resource和為描述事件而創建的composition之間建立連結。",
      "min": 0,
      "definition": "記錄的臨床服務,例如:結腸鏡檢查或闌尾切除術。",
      "isModifier": false,
      "short": "正在記錄的臨床服務",
      "mapping": [ {
        "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']",
        "identity": "rim"
      }, {
        "map": ".documentationOf.serviceEvent",
        "identity": "cda"
      }, {
        "map": "DocumentReference.event",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Composition.event",
      "comment": "事件需要與類型資料項目保持一致,但如果需求,也可以提供更多的詳細資訊。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event"
      },
      "isSummary": true
    }, {
      "path": "Composition.event.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.event.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.event.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.event.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.event.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.event.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.code",
      "min": 0,
      "definition": "一個概念可能透過正式參照專門術語或本體論來定義,或者可以由文字提供。",
      "isModifier": false,
      "short": "此代碼表代表了正在被記錄的主要臨床行為",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentEventType"
        } ],
        "description": "可參考所綁定值集,但此值集只是針對這個欄位的一個可能值的範例,不預期也不鼓勵使用者一定要使用此值集的代碼。"
      },
      "max": "*",
      "id": "Composition.event.code",
      "condition": [ "ele-1" ],
      "comment": "一個事件可以進一步專門化 typeCode 中固有的行為,例如:當它僅僅是「處置報告」,而該處置是「結腸鏡檢查」。如果包含一個或多個事件,它們 **必須沒有(SHALL NOT)** 與 classCode、practiceSettingCode 或 typeCode 中固有的值相衝突,因為這樣的衝突會造成模糊不清的情況。這個簡短的代碼清單提供用作某些類型查詢的關鍵字。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event.code"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.period",
      "min": 0,
      "definition": "此文件涵蓋的時間區間,這並不是聲明此文件是這一個時間區間的完整代表,而只是表明它記錄了這段時間內發生的事件。",
      "isModifier": false,
      "short": "文件所涵蓋的時間區間",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      }, {
        "map": ".effectiveTime",
        "identity": "cda"
      }, {
        "map": "DocumentReference.event.period",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Composition.event.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.event.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.detail",
      "min": 0,
      "definition": "它描述了正在被記錄的主要臨床活動,比如說進行一次結腸鏡檢查或是闌尾切除手術。在某些情況下,這些臨床事件本身就包含在其typeCode中,例如:在「病史與體檢報告」中,所記錄的過程就必然是進行「病史與體檢」的行為。這些臨床事件可以以代碼的形式被記錄,或者作為對其他resource的參照。",
      "isModifier": false,
      "short": "在描述被記錄下來的事件,這些事件可以是以代碼的形式、參考資料的形式,或者兩者都有的形式來呈現。",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"].target",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "Composition.event.detail",
      "comment": "事件可以進一步細化類型編碼中的固有行為,例如,事件只是程序報告,而程序是結腸鏡檢查。如果包含一個或多個事件,它們不得與類別編碼、診療設置編碼或類型代碼中固有的值相衝 突,因為這樣的衝突會造成模稜兩可的情況。本編碼簡表可用作某些類型查詢的關鍵詞。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event.detail"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "cmp-1",
        "human": "A section must contain at least one of text, entries, or sub-sections",
        "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "text.exists() or entry.exists() or section.exists()"
      }, {
        "key": "cmp-2",
        "human": "A section can only have an emptyReason if it is empty",
        "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "emptyReason.empty() or entry.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section",
      "min": 1,
      "definition": "構成composition的各小節",
      "isModifier": false,
      "short": "報告文件與哪些資料有關",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.structuredBody.component.section",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.section",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.modifierExtension",
      "requirements": "修飾用的資料項目擴充將不能安全地忽略的擴充與絕大多數可以安全地忽略的擴充明確區分開來。透過消除禁止實作者擴充存在的需求來促進可互通性。更多訊息,請參見[修飾用的資料項目擴充之定義](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)。",
      "min": 0,
      "definition": "可以用來表示不屬於資料項目的基本定義的附加資訊,並且修改對它所內嵌(contained)的資料項目的理解和(或)對包含資料項目之後續使用的理解。通常,修飾用的資料項目提供否定或限定。為了使擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。處理resource的應用程式被要求檢查修飾用的擴充資料項目。 \r\n 修飾用的擴充資料項目 **必須沒有(SHALL NOT)** 改變resource或DomainResource上任何資料項目的含義(包括不能改變modifierExtension本身的含義)。",
      "isModifier": true,
      "short": "此擴充的資料項目可能會完全修正或改變其他資料項目的意涵,需特別留意。",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section.modifierExtension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何汙名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.title",
      "requirements": "不同類型的文件常常會有標準化的小節標題,這些標題為人們提供如何組織文件的指引。",
      "min": 0,
      "definition": "此特定小節的標籤。這將是文件呈現內容的一部分,通常用於建立目錄。",
      "isModifier": false,
      "short": "小節標籤(例如:目錄ToC)",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "header", "label", "caption" ],
      "max": "1",
      "id": "Composition.section.title",
      "comment": "標題為人類讀者指明小節。標題必須與作為 section.content 參照目標的resource的敘述一致。通常章節 **建議應該(SHOULD)** 有標題,但在某些文件中,這可能是不必要的或不適當的。通常情況下,當一個小節有其自己足夠區分的標題的子小節,或只有單一小節的文件時,就會這樣。大多數IG會要求小節標題是必填的資料項目。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.title"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code",
      "requirements": "提供給文件中主題的標籤是標準化的,並且可以被電腦程式識別和處理。",
      "min": 1,
      "definition": "一個用於指明小節中所含內容種類的代碼,這個代碼必須與小節的標題相一致。",
      "isModifier": false,
      "short": "小節分類(建議)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes",
        "description": "應填入所綁定值集中適合的代碼,確定無適合的代碼才可以使用其他值集的代碼來表示。"
      },
      "max": "1",
      "id": "Composition.section.code",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.code"
      }
    }, {
      "path": "Composition.section.code.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照)。這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.code.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.code.extension",
      "min": 0,
      "definition": "擴充的資料項目",
      "isModifier": false,
      "short": "擴充的資料項目",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section.code.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding",
      "requirements": "允許代碼系統中的替代編碼,以及翻譯到其他編碼系統。",
      "min": 1,
      "definition": "由專門術語系統(terminology system)所定義之代碼的參照",
      "isModifier": false,
      "short": "由專門術語系統(terminology system)定義的代碼",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.section.code.coding",
      "condition": [ "ele-1" ],
      "comment": "代碼可以在列舉清單(enumerations)或代碼清單(code lists)中非常隨意地定義,直至有非常正式的定義,例如:SNOMED CT—更多資訊見HL7 v3核心原則(Core Principles )。編碼的排序是未定義的因而 **必須沒有(SHALL NOT)** 被用來推斷意義。一般來說,最多只有一個編碼值(coding values)會被標記為UserSelected = true。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      }
    }, {
      "path": "Composition.section.code.coding.id",
      "min": 0,
      "definition": "resource中資料項目的唯一ID(用於內部參照),這可以是任何不含空格的字串。",
      "isModifier": false,
      "short": "唯一可識別ID,以供資料項目間相互參照。",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.code.coding.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.code.coding.extension",
      "min": 0,
      "definition": "可用於表示不屬於此資料項目基本定義的附加資訊。為了擴充的使用安全和可管理,對擴充的定義和使用有一套嚴格的管理。儘管任何實作者都可以定義一個擴充,但作為擴充定義的一部分,有一套要求 **必須(SHALL)** 滿足。",
      "isModifier": false,
      "short": "擴充的資料項目",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section.code.coding.extension",
      "comment": "無論使用或定義擴充的機構或管轄區,任何應用程式、專案或標準使用擴充都不背負任何污名(stigma)。使用擴充是允許FHIR規範為每個人保留一個核心的簡易性。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding.system",
      "requirements": "需要明確說明符號定義的來源",
      "min": 1,
      "definition": "定義代碼中符號意義的代碼系統識別",
      "isModifier": false,
      "short": "專門術語系統(terminology system)的識別",
      "fixedUri": "http://loinc.org",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.section.code.coding.system",
      "comment": "URI可以是一個OID(urn:oid:...)或一個UUID(urn:uuid:...);OID和UUID **必須(SHALL)** 參照HL7 OID註冊中心;否則,URI應該來自HL7的FHIR定義的特殊URI列表,或者它應該參照一些明確建立的系统定義。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding.version",
      "min": 0,
      "definition": "選擇此代碼時使用的代碼系統版本;請注意,一個維護良好的代碼系統不需要版本報告,因為代碼的意義在不同系統版本中是一致的;然而,不能始終保證這點,當不能保證意義一致時, **必須(SHALL)** 將版本資訊也一併作交換。",
      "isModifier": false,
      "short": "系統的版本—如果相關的話",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Composition.section.code.coding.version",
      "comment": "如果專門術語沒有明確定義應該使用什麼字串來識別代碼系統的版本,建議使用版本正式發布的日期(用FHIR日期格式表示)作為版本日期。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding.code",
      "fixedCode": "30954-2",
      "requirements": "需要參照系統中的一個特定代碼",
      "min": 1,
      "definition": "系統定義的語法之符號;符號可能是一個預先定義的代碼,也可能是代碼系統定義的語法中的表達式(如後組合配對/後組合式)。",
      "isModifier": false,
      "short": "系統定義的語法之符號",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.section.code.coding.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding.display",
      "requirements": "需要能為不了解此系統的讀者呈現可讀的代碼含義",
      "min": 0,
      "definition": "遵循系統的規則以呈現代碼含義的表示法",
      "isModifier": false,
      "short": "由系統定義的表示法",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "fixedString": "Relevant diagnostic tests/laboratory data Narrative",
      "id": "Composition.section.code.coding.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.coding.userSelected",
      "requirements": "已被確定為一個臨床安全準則—此確切的系統/代碼對(code pair)是被明確選擇的,而不是由系統根據一些規則或是程式語言處理判斷。",
      "min": 0,
      "definition": "表明此編碼是由使用者直接選擇,例如:從可用項目(代碼或顯示名稱)的清單中選擇。",
      "isModifier": false,
      "short": "此編碼是否由使用者直接選擇?",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "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   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Composition.section.code.coding.userSelected",
      "comment": "在一系列備選方案中,直接選擇的代碼是新翻譯最合適的起點;關於「直接選擇」的確切意義,存在模糊不清之處,可能需要貿易夥伴的同意,以更完整澄清此資料項目的使用及其後果。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code.text",
      "requirements": "專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義,或者根本就沒有合適的代碼;這些情況下,文字表述被用來捕捉來源的全部意義。",
      "min": 0,
      "definition": "輸入資料的使用者所見/所選/所說的人類可讀文字表述,和(或)其代表使用者的預期含義。",
      "isModifier": false,
      "short": "概念的文字表示法",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.section.code.text",
      "comment": "很多時候,此文字表述與其中一個代碼的顯示名稱相同。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.author",
      "requirements": "指明誰對內容負責",
      "min": 0,
      "definition": "指明誰對小節中的資訊負責,而不一定是誰輸入了它。",
      "isModifier": false,
      "short": "誰和/或什麼人撰寫了該小節",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Practitioner-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore", "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Patient-twcore", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
      } ],
      "max": "*",
      "id": "Composition.section.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.focus",
      "min": 0,
      "definition": "當小節的實際焦點不是composition描述的對象,而是代表與對象相關的某事物或某人時,例如:(對於病人對象)配偶、父母、胎兒或捐贈者。如果沒有指定焦點,則假定焦點為父小節的焦點,或者對於Composition本身中的小節,為Composition的對象。具有焦點的小節只 **必須(SHALL)** 包含對象(病人、對象、焦點等)與小節焦點相匹配的resources,或者是沒有對象的resources(少數resources)。",
      "isModifier": false,
      "short": "當小節與composition描述的對象無關時,此小節是關於誰/什麼。",
      "mapping": [ {
        "map": ".subject? (CDA did not differentiate between subject and focus)",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Composition.section.focus",
      "comment": "通常,文件中的小節是關於該文件的描述對象,無論是病人、一群病人、位置、設備或其他。對於某些種類的文件,有些小節實際上包含有關的實體資料。典型的例子包括新生兒出院病摘中關於母親的小節,或者家族病史文件中關於每個家庭成員的小節,當然還有很多其他例子。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.focus"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.text",
      "min": 0,
      "definition": "一個供人閱讀的敘述,包含小節的核實內容,用以展現resource的內容供人類閱讀。這段敘述不需要涵蓋所有結構化的資料,但必須包含足夠的細節,確保僅透過閱讀這段敘述的人能夠在臨床上獲得安全且準確的資訊。",
      "isModifier": false,
      "short": "將文件中特定小節的內容簡化成容易理解的文字形式,便於人類閱讀和解釋。",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": ".text",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.section.text",
      "condition": [ "cmp-1" ],
      "comment": "文件Profile可能會定義應在敘述中呈現哪些內容,以確保臨床安全。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.text"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.mode",
      "requirements": "小節有多種使用方式,因此必須清楚地了解如何安全地使用其中的條目。",
      "min": 0,
      "definition": "條目清單是如何準備的 - 它是一個適合持續維護的工作清單,還是代表從另一個來源截取的項目清單的快照,或者是一個準備好的清單,在該清單中,項目可能被標記為已添加、修改或刪除。",
      "isModifier": false,
      "short": "適用於此小節的處理模式",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionMode"
        } ],
        "description": "應填入所綁定值集中的其中一個代碼。"
      },
      "max": "1",
      "id": "Composition.section.mode",
      "comment": "這個資料項目被標記為修飾用,是因為不應將變更清單(a change list)誤解為完整清單(a complete list)。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.orderedBy",
      "requirements": "這對於展示和呈現是重要的,清單可能會進行排序,以便將重要的資訊放在前面,或將相關的條目分組。",
      "min": 0,
      "definition": "指定應用於小節條目的項目順序",
      "isModifier": false,
      "short": "小節條目的順序",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-order",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEntryOrder"
        } ],
        "description": "鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Composition.section.orderedBy",
      "condition": [ "ele-1" ],
      "comment": "應用程式 **建議應該(SHOULD)** 按照給定的順序來顯示有序清單,但也可以允許用戶按照他們自己的偏好進行重新排序。如果沒有明確指定順序,則該順序是不確定的,雖然清單可能仍有某種排列順序。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.orderedBy"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 2,
      "definition": "指向那些提供小節中敘述內容的實際resource的參照",
      "isModifier": false,
      "short": "提供一個連結用於參照或查看支持此小節內容的資料",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      },
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.section.entry",
      "condition": [ "cmp-2" ],
      "comment": "如果清單中沒有條目,則 **建議應該(SHOULD)** 提供 emptyReason。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 1,
      "definition": "指向那些提供小節中敘述內容的實際resource的參照",
      "isModifier": false,
      "short": "檢驗檢查中的檢驗資料",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckObservation" ]
      } ],
      "mustSupport": true,
      "sliceName": "Observation",
      "max": "*",
      "id": "Composition.section.entry:Observation",
      "condition": [ "cmp-2" ],
      "comment": "如果清單中沒有條目,則 **建議應該(SHOULD)** 提供 emptyReason。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.entry.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.entry:Observation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.entry.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.section.entry:Observation.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.reference",
      "min": 1,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Composition.section.entry:Observation.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.section.entry:Observation.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.section.entry:Observation.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.section.entry:Observation.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 1,
      "definition": "指向那些提供小節中敘述內容的實際resource的參照",
      "isModifier": false,
      "short": "檢驗檢查中的檢體來源",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckSpecimen" ]
      } ],
      "mustSupport": true,
      "sliceName": "Specimen",
      "max": "*",
      "id": "Composition.section.entry:Specimen",
      "condition": [ "cmp-2" ],
      "comment": "如果清單中沒有條目,則 **建議應該(SHOULD)** 提供 emptyReason。",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.entry.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.entry:Specimen.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.entry.extension",
      "min": 0,
      "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.section.entry:Specimen.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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.reference",
      "min": 1,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Composition.section.entry:Specimen.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.section.entry:Specimen.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.section.entry:Specimen.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "isModifier": false,
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.section.entry:Specimen.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.emptyReason",
      "requirements": "允許捕捉像是「不存在」或「未詢問」這樣的情況,這對於大多數清單來說可能很重要。",
      "min": 0,
      "definition": "如果小節為空,則說明清單為空的原因。一個空的小節通常有一些文字說明空的原因。",
      "isModifier": false,
      "short": "為什麼此小節是空的原因",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept",
        "profile": [ "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw" ]
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEmptyReason"
        } ],
        "description": "鼓勵使用所綁定值集中的代碼,但不強制一定要使用此值集,你也可使用其他值集的代碼或單純以文字表示。"
      },
      "max": "1",
      "id": "Composition.section.emptyReason",
      "condition": [ "ele-1" ],
      "comment": "當一個小節是空的,其空白的原因對於理解該小節非常重要。需要注意的是,這個代碼是用於當整個小節的內容都沒有被包括時,它並不適用於個別項目被省略的情形,若為個別項目被省略的情況,開發者可以考慮在該條目中添加文字說明或標記。",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.emptyReason"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.section",
      "min": 0,
      "definition": "此小節中嵌套的小節",
      "isModifier": false,
      "short": "嵌套的小節",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.section",
        "identity": "cda"
      } ],
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
      "max": "*",
      "id": "Composition.section.section",
      "condition": [ "cmp-1" ],
      "comment": "嵌套小節主要是為了幫助讀者快速找到文件中的特定內容",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.section"
      },
      "isSummary": false
    } ]
  },
  "status": "active",
  "id": "d819a693-2c20-4cdc-8f97-96c7d16ac2c9",
  "kind": "resource",
  "url": "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckComposition",
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "id": "Composition",
      "path": "Composition"
    }, {
      "id": "Composition.status",
      "path": "Composition.status",
      "binding": {
        "strength": "required",
        "description": "診斷報告狀態;應填[DiagnosticReportStatus](http://hl7.org/fhir/ValueSet/composition-status)代碼表中的其中一個代碼"
      },
      "example": [ {
        "label": "Value",
        "valueCode": "final"
      } ],
      "fixedCode": "final"
    }, {
      "id": "Composition.type.text",
      "min": 1,
      "path": "Composition.type.text",
      "short": "類型說明描述",
      "fixedString": "檢驗檢查"
    }, {
      "id": "Composition.subject",
      "min": 1,
      "path": "Composition.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckPatient" ]
      } ],
      "short": "報告文件有關的對象及(或)事物。[應填入於檢驗檢查中的病人基本資料]"
    }, {
      "id": "Composition.subject.reference",
      "min": 1,
      "path": "Composition.subject.reference",
      "mustSupport": true
    }, {
      "id": "Composition.encounter",
      "min": 1,
      "path": "Composition.encounter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckEncounter" ]
      } ],
      "short": "報告文件來自於哪次住院基本資料",
      "mustSupport": true
    }, {
      "id": "Composition.encounter.reference",
      "min": 1,
      "path": "Composition.encounter.reference",
      "short": "關聯至檢驗檢查中的開立資料",
      "mustSupport": true
    }, {
      "id": "Composition.date",
      "path": "Composition.date",
      "short": "報告產生日期。[應填入於檢驗檢查報告日期時間Report Date and Time]"
    }, {
      "id": "Composition.author",
      "min": 2,
      "path": "Composition.author",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckOrganization", "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckPractitioner" ]
      } ],
      "short": "報告文件有關的創作部分",
      "definition": "Identifies who is responsible for the information in the composition, not necessarily who typed it in.\r\n於檢驗報告中,至少須包含醫事機構與醫事人員資料。"
    }, {
      "id": "Composition.author.reference",
      "min": 1,
      "path": "Composition.author.reference",
      "mustSupport": true
    }, {
      "id": "Composition.title",
      "path": "Composition.title",
      "short": "報告文件的名字或標題",
      "example": [ {
        "label": "Value",
        "valueString": "檢驗檢查"
      } ]
    }, {
      "id": "Composition.section",
      "min": 1,
      "path": "Composition.section",
      "short": "報告文件與哪些資料有關"
    }, {
      "id": "Composition.section.code",
      "min": 1,
      "path": "Composition.section.code"
    }, {
      "id": "Composition.section.code.coding",
      "min": 1,
      "path": "Composition.section.code.coding"
    }, {
      "id": "Composition.section.code.coding.system",
      "min": 1,
      "path": "Composition.section.code.coding.system",
      "fixedUri": "http://loinc.org"
    }, {
      "id": "Composition.section.code.coding.code",
      "min": 1,
      "path": "Composition.section.code.coding.code",
      "fixedCode": "30954-2"
    }, {
      "id": "Composition.section.code.coding.display",
      "path": "Composition.section.code.coding.display",
      "fixedString": "Relevant diagnostic tests/laboratory data Narrative"
    }, {
      "id": "Composition.section.entry",
      "min": 2,
      "path": "Composition.section.entry",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      }
    }, {
      "id": "Composition.section.entry:Observation",
      "min": 1,
      "path": "Composition.section.entry",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckObservation" ]
      } ],
      "short": "檢驗檢查中的檢驗資料",
      "sliceName": "Observation"
    }, {
      "id": "Composition.section.entry:Observation.reference",
      "min": 1,
      "path": "Composition.section.entry.reference"
    }, {
      "id": "Composition.section.entry:Specimen",
      "min": 1,
      "path": "Composition.section.entry",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://twcore.mohw.gov.tw/ig/emr/StructureDefinition/InspectionCheckSpecimen" ]
      } ],
      "short": "檢驗檢查中的檢體來源",
      "sliceName": "Specimen"
    }, {
      "id": "Composition.section.entry:Specimen.reference",
      "min": 1,
      "path": "Composition.section.entry.reference"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://www.mohw.gov.tw/mp-1.html",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Composition-twcore"
}