# 中醫-臨床文件架構(Composition TWCM) - 臺灣中醫實作指引 v0.1.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **中醫-臨床文件架構(Composition TWCM)**

## Resource Profile: 中醫-臨床文件架構(Composition TWCM) 

| | |
| :--- | :--- |
| *Official URL*:https://www.nricm.edu.tw/twcm/StructureDefinition/composition-twcm | *Version*:0.1.0 |
| Draft as of 2026-08-31 | *Computable Name*:CompositionTWCM |

 
此Profile用於描述中醫門診單的報告文件 

**Usages:**

* Use this Profile: [中醫-資料交換基本單位(Bundle TWCM)](StructureDefinition-bundle-twcm.md)
* Refer to this Profile: [中醫-臨床文件架構(Composition TWCM)](StructureDefinition-composition-twcm.md)
* Examples for this Profile: [Composition/CompositionTWCM-min](Composition-CompositionTWCM-min.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/resource/tw.gov.mohw.nricm.twcm|current/StructureDefinition/StructureDefinition-composition-twcm.json)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-composition-twcm.csv), [Excel](StructureDefinition-composition-twcm.xlsx), [Schematron](StructureDefinition-composition-twcm.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "composition-twcm",
  "url" : "https://www.nricm.edu.tw/twcm/StructureDefinition/composition-twcm",
  "version" : "0.1.0",
  "name" : "CompositionTWCM",
  "title" : "中醫-臨床文件架構(Composition TWCM)",
  "status" : "draft",
  "date" : "2026-08-31T12:11:57+00:00",
  "publisher" : "衛生福利部國家中醫藥研究所",
  "contact" : [{
    "name" : "衛生福利部國家中醫藥研究所",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.nricm.edu.tw/"
    }]
  }],
  "description" : "此Profile用於描述中醫門診單的報告文件",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "cda",
    "uri" : "http://hl7.org/v3/cda",
    "name" : "CDA (R2)"
  },
  {
    "identity" : "fhirdocumentreference",
    "uri" : "http://hl7.org/fhir/documentreference",
    "name" : "FHIR DocumentReference"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Composition",
  "baseDefinition" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Composition-twcore",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Composition",
      "path" : "Composition",
      "constraint" : [{
        "key" : "majorIllness-condition-twcm",
        "severity" : "error",
        "human" : "若重大傷病註記為「是」，則重大傷病代碼與病名必填",
        "expression" : "(Composition.section.where(code.coding.code.all($this = '11338-1')).entry.resolve().where(($this is Observation) and (code.coding.code.all($this = '11338-1')) and (value.ofType(boolean) = true)).exists()) implies (Composition.section.where(code.coding.code.all($this = '11338-1')).section.where(code.coding.code.all($this = '11338-1')).entry.resolve().where($this is Condition).exists())",
        "source" : "https://www.nricm.edu.tw/twcm/StructureDefinition/composition-twcm"
      }]
    },
    {
      "id" : "Composition.meta",
      "path" : "Composition.meta",
      "short" : "應填入於中醫門診單之病歷表單版本號Sheet Version",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.meta.versionId",
      "path" : "Composition.meta.versionId",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.identifier",
      "path" : "Composition.identifier",
      "short" : "不分版本的臨床文件架構(Composition)識別碼。[應填入於中醫門診單之病歷表單編號]",
      "min" : 1
    },
    {
      "id" : "Composition.identifier.type",
      "path" : "Composition.identifier.type",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
          "code" : "SNO"
        }]
      }
    },
    {
      "id" : "Composition.identifier.value",
      "path" : "Composition.identifier.value",
      "min" : 1
    },
    {
      "id" : "Composition.identifier.assigner",
      "path" : "Composition.identifier.assigner",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"]
      }]
    },
    {
      "id" : "Composition.status",
      "path" : "Composition.status",
      "patternCode" : "final"
    },
    {
      "id" : "Composition.type",
      "path" : "Composition.type",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "34108-1",
          "display" : "Outpatient Note"
        }]
      }
    },
    {
      "id" : "Composition.subject",
      "path" : "Composition.subject",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm"]
      }]
    },
    {
      "id" : "Composition.subject.reference",
      "path" : "Composition.subject.reference",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.encounter",
      "path" : "Composition.encounter",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/encounter-twcm"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Composition.encounter.reference",
      "path" : "Composition.encounter.reference",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.date",
      "path" : "Composition.date",
      "short" : "[應填入文件產生時間Create Time]"
    },
    {
      "id" : "Composition.author",
      "path" : "Composition.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm"]
      }]
    },
    {
      "id" : "Composition.author.reference",
      "path" : "Composition.author.reference",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.title",
      "path" : "Composition.title",
      "short" : "固定值。[應填入病歷表單名稱Sheet Name]",
      "fixedString" : "中醫門診單"
    },
    {
      "id" : "Composition.confidentiality",
      "path" : "Composition.confidentiality",
      "short" : "[應填入文件敏感性Doc Confidentiality Code]",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Composition.attester.party",
      "path" : "Composition.attester.party",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm"]
      }]
    },
    {
      "id" : "Composition.custodian",
      "path" : "Composition.custodian",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm"]
      }]
    },
    {
      "id" : "Composition.relatesTo.target[x]",
      "path" : "Composition.relatesTo.target[x]",
      "type" : [{
        "code" : "Identifier"
      },
      {
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/composition-twcm"]
      }]
    },
    {
      "id" : "Composition.section",
      "path" : "Composition.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "code"
        }],
        "rules" : "open"
      },
      "min" : 6
    },
    {
      "id" : "Composition.section.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:PatientInformation",
      "path" : "Composition.section",
      "sliceName" : "PatientInformation",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:PatientInformation.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:PatientInformation.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "52460-3",
          "display" : "Patient Information"
        }]
      }
    },
    {
      "id" : "Composition.section:PatientInformation.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section",
      "path" : "Composition.section.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "entry.resolve()"
        }],
        "rules" : "open"
      },
      "max" : "3"
    },
    {
      "id" : "Composition.section:PatientInformation.section:educationlevel",
      "path" : "Composition.section.section",
      "sliceName" : "educationlevel",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:educationlevel.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "80913-7",
          "display" : "Highest level of education [US Standard Certificate of Death]"
        }]
      }
    },
    {
      "id" : "Composition.section:PatientInformation.section:educationlevel.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationeducationlevel-twcm"]
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:educationlevel.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:PatientInformation.section:occupation",
      "path" : "Composition.section.section",
      "sliceName" : "occupation",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:occupation.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "85658-3",
          "display" : "Occupation [Type]"
        }]
      }
    },
    {
      "id" : "Composition.section:PatientInformation.section:occupation.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationoccupation-twcm"]
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:occupation.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:PatientInformation.section:bloodtype",
      "path" : "Composition.section.section",
      "sliceName" : "bloodtype",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:bloodtype.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "882-1",
          "display" : "ABO and Rh group [Type] in Blood"
        }]
      }
    },
    {
      "id" : "Composition.section:PatientInformation.section:bloodtype.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationbloodtype-twcm"]
      }]
    },
    {
      "id" : "Composition.section:PatientInformation.section:bloodtype.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:AllergyIntolerance",
      "path" : "Composition.section",
      "sliceName" : "AllergyIntolerance",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:AllergyIntolerance.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:AllergyIntolerance.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "48765-2",
          "display" : "Allergies and adverse reactions Document"
        }]
      }
    },
    {
      "id" : "Composition.section:AllergyIntolerance.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:AllergyIntolerance.entry",
      "path" : "Composition.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/allergyintolerance-twcm"]
      }]
    },
    {
      "id" : "Composition.section:AllergyIntolerance.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory",
      "path" : "Composition.section",
      "sliceName" : "ConditionPastMedicalHistory",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11348-0",
          "display" : "History of Past illness note"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory.entry",
      "path" : "Composition.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/conditionpastmedicalhistory-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionPastMedicalHistory.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionMajorIllness",
      "path" : "Composition.section",
      "sliceName" : "ConditionMajorIllness",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11338-1",
          "display" : "History of Major illnesses and injuries Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationmajorillness-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.section",
      "path" : "Composition.section.section",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.section.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11338-1",
          "display" : "History of Major illnesses and injuries Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.section.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/conditionmajorillness-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionMajorIllness.section.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:Medication",
      "path" : "Composition.section",
      "sliceName" : "Medication",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:Medication.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:Medication.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "10160-0",
          "display" : "History of Medication use Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:Medication.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:Medication.section",
      "path" : "Composition.section.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "entry.resolve()"
        }],
        "rules" : "open"
      }
    },
    {
      "id" : "Composition.section:Medication.section:medication",
      "path" : "Composition.section.section",
      "sliceName" : "medication",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:Medication.section:medication.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "87232-5",
          "display" : "Medication administration.brief"
        }]
      }
    },
    {
      "id" : "Composition.section:Medication.section:medication.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/medication-twcm"]
      }]
    },
    {
      "id" : "Composition.section:Medication.section:medication.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:Medication.section:medicationrequest",
      "path" : "Composition.section.section",
      "sliceName" : "medicationrequest",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:Medication.section:medicationrequest.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "57833-6",
          "display" : "Prescription for medication"
        }]
      }
    },
    {
      "id" : "Composition.section:Medication.section:medicationrequest.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/medicationrequest-twcm"]
      }]
    },
    {
      "id" : "Composition.section:Medication.section:medicationrequest.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis",
      "path" : "Composition.section",
      "sliceName" : "ConditionDiagnosis",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "11450-4",
          "display" : "Problem list - Reported"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section",
      "path" : "Composition.section.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "entry.resolve()"
        }],
        "rules" : "open"
      },
      "min" : 3
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:conditiondiagnosis",
      "path" : "Composition.section.section",
      "sliceName" : "conditiondiagnosis",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:conditiondiagnosis.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29548-5",
          "display" : "Diagnosis Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:conditiondiagnosis.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/conditiondiagnosis-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:conditiondiagnosis.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:practitioner",
      "path" : "Composition.section.section",
      "sliceName" : "practitioner",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:practitioner.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "18600-7",
          "display" : "Primary practitioner identifier"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:practitioner.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:practitioner.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:careplan",
      "path" : "Composition.section.section",
      "sliceName" : "careplan",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:careplan.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "101541-1",
          "display" : "Multidisciplinary Comprehensive plan of care note"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:careplan.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/careplan-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:careplan.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtonguecondition",
      "path" : "Composition.section.section",
      "sliceName" : "observationtonguecondition",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtonguecondition.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29548-5",
          "display" : "Diagnosis Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtonguecondition.entry",
      "path" : "Composition.section.section.entry",
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationtonguecondition-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtonguecondition.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationpulsecondition",
      "path" : "Composition.section.section",
      "sliceName" : "observationpulsecondition",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationpulsecondition.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29548-5",
          "display" : "Diagnosis Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationpulsecondition.entry",
      "path" : "Composition.section.section.entry",
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationpulsecondition-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationpulsecondition.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationsyndrometype",
      "path" : "Composition.section.section",
      "sliceName" : "observationsyndrometype",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationsyndrometype.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29548-5",
          "display" : "Diagnosis Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationsyndrometype.entry",
      "path" : "Composition.section.section.entry",
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationsyndrometype-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationsyndrometype.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtherapeuticprinciples",
      "path" : "Composition.section.section",
      "sliceName" : "observationtherapeuticprinciples",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtherapeuticprinciples.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29548-5",
          "display" : "Diagnosis Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtherapeuticprinciples.entry",
      "path" : "Composition.section.section.entry",
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationtherapeuticprinciples-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionDiagnosis.section:observationtherapeuticprinciples.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint",
      "path" : "Composition.section",
      "sliceName" : "ConditionChiefComplaint",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "10154-3",
          "display" : "Chief complaint Narrative - Reported"
        }]
      }
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint.entry",
      "path" : "Composition.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/conditionchiefcomplaint-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ConditionChiefComplaint.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationVitalSign",
      "path" : "Composition.section",
      "sliceName" : "ObservationVitalSign",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ObservationVitalSign.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationVitalSign.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "8716-3",
          "display" : "Vital signs note"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationVitalSign.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ObservationVitalSign.entry",
      "path" : "Composition.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observationvitalsign-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ObservationVitalSign.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:Procedure",
      "path" : "Composition.section",
      "sliceName" : "Procedure",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:Procedure.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:Procedure.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29554-3",
          "display" : "Procedure Narrative"
        }]
      }
    },
    {
      "id" : "Composition.section:Procedure.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:Procedure.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/procedure-twcm"]
      }]
    },
    {
      "id" : "Composition.section:Procedure.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationLabResults",
      "path" : "Composition.section",
      "sliceName" : "ObservationLabResults",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:ObservationLabResults.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationLabResults.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "30954-2",
          "display" : "Relevant diagnostic tests/laboratory data note"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationLabResults.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section",
      "path" : "Composition.section.section",
      "slicing" : {
        "discriminator" : [{
          "type" : "profile",
          "path" : "entry.resolve()"
        }],
        "rules" : "open"
      },
      "min" : 3
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:observation",
      "path" : "Composition.section.section",
      "sliceName" : "observation",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:observation.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "19146-0",
          "display" : "Referral lab test results"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:observation.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/observation-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:observation.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:servicerequest",
      "path" : "Composition.section.section",
      "sliceName" : "servicerequest",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:servicerequest.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "77597-3",
          "display" : "Orders placed Document"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:servicerequest.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/servicerequest-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:servicerequest.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:diagnosticreport",
      "path" : "Composition.section.section",
      "sliceName" : "diagnosticreport",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:diagnosticreport.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "50398-7",
          "display" : "Narrative diagnostic report [Interpretation]"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:diagnosticreport.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/diagnosticreport-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:diagnosticreport.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:organizationinspection",
      "path" : "Composition.section.section",
      "sliceName" : "organizationinspection",
      "min" : 1,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:organizationinspection.code",
      "path" : "Composition.section.section.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "52482-7",
          "display" : "Laboratory"
        }]
      }
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:organizationinspection.entry",
      "path" : "Composition.section.section.entry",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/organizationinspection-twcm"]
      }]
    },
    {
      "id" : "Composition.section:ObservationLabResults.section:organizationinspection.entry.reference",
      "path" : "Composition.section.section.entry.reference",
      "min" : 1
    },
    {
      "id" : "Composition.section:DocumentReference",
      "path" : "Composition.section",
      "sliceName" : "DocumentReference",
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Composition.section:DocumentReference.title",
      "path" : "Composition.section.title",
      "min" : 1
    },
    {
      "id" : "Composition.section:DocumentReference.code",
      "path" : "Composition.section.code",
      "min" : 1,
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "75310-3",
          "display" : "Health concerns Document"
        }]
      }
    },
    {
      "id" : "Composition.section:DocumentReference.author",
      "path" : "Composition.section.author",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/practitioner-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/PractitionerRole-twcore",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/organization-twcm",
        "https://www.nricm.edu.tw/twcm/StructureDefinition/patient-twcm",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Device-twcore",
        "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/RelatedPerson-twcore"]
      }]
    },
    {
      "id" : "Composition.section:DocumentReference.entry",
      "path" : "Composition.section.entry",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["https://www.nricm.edu.tw/twcm/StructureDefinition/documentreference-twcm"]
      }]
    },
    {
      "id" : "Composition.section:DocumentReference.entry.reference",
      "path" : "Composition.section.entry.reference",
      "min" : 1
    }]
  }
}

```
