臺灣電子處方箋與調劑單張實作指引(TW EMPD IG)
0.1.0 - ci-build

臺灣電子處方箋與調劑單張實作指引(TW EMPD IG) - Downloaded Version 0.1.0 See the Directory of published versions

## Resource Profile: MedicationDS - JSON Profile

Active as of 2024-01-02

JSON representation of the Medication-DS resource profile.

Raw json | Download

    {
      "resourceType" : "StructureDefinition",
      "id" : "Medication-DS",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition Medication-DS</b></p><a name=\"Medication-DS\"> </a><a name=\"hcMedication-DS\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication\">Medication</a><a name=\"Medication\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-Medication-twcore.html\">TWCoreMedication</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.identifier\">identifier</a><a name=\"Medication.identifier\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">此藥品的業務用識別碼</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.identifier.value\">value</a><a name=\"Medication.identifier.value\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">The value that is unique。[應填入藥品批號]</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.code\">code</a><a name=\"Medication.code\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html\" title=\"CodeableConcept\">CodeableConceptTW</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">指明這種藥品的代碼。[應填入健保代碼、藥品商品名稱 Brand Name與學名 Generic Name]</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.form\">form</a><a name=\"Medication.form\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"https://twcore.mohw.gov.tw/ig/twcore/0.3.2/StructureDefinition-CodeableConcept-tw.html\" title=\"CodeableConcept\">CodeableConceptTW</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">powder ｜ tablets ｜ capsule +此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。[應填入劑型 Dosage Form]</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.form.text\">text</a><a name=\"Medication.form.text\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">概念的文字表示法</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.ingredient\">ingredient</a><a name=\"Medication.ingredient\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#BackboneElement\">BackboneElement</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">有使用或沒有使用的藥品成份</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-Medication-DS-definitions.html#Medication.ingredient.strength\">strength</a><a name=\"Medication.ingredient.strength\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..<span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Ratio\">Ratio</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">所含成份的劑量。[應填入藥品單位含量]</td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64, \" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
      },
      "url" : "https://nhicore.nhi.gov.tw/empd/StructureDefinition/Medication-DS",
      "version" : "0.1.0",
      "name" : "MedicationDS",
      "title" : "調劑單張-藥物處方內容(Medication)",
      "status" : "active",
      "date" : "2024-01-02",
      "publisher" : "NHI",
      "contact" : [
        {
          "name" : "NHI",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.nhi.gov.tw/en/mp-2.html"
            }
          ]
        }
      ],
      "description" : "此Profiles繼承於臺灣核心-藥品(TW Core Medication) ，並進一步用於描述調劑單張之藥物處方內容  \n[[*FMM1*](http://build.fhir.org/versions.html#maturity)]",
      "fhirVersion" : "4.0.1",
      "mapping" : [
        {
          "identity" : "script10.6",
          "uri" : "http://ncpdp.org/SCRIPT10_6",
          "name" : "Mapping to NCPDP SCRIPT 10.6"
        },
        {
          "identity" : "rim",
          "uri" : "http://hl7.org/v3",
          "name" : "RIM Mapping"
        },
        {
          "identity" : "w5",
          "uri" : "http://hl7.org/fhir/fivews",
          "name" : "FiveWs Pattern Mapping"
        },
        {
          "identity" : "v2",
          "uri" : "http://hl7.org/v2",
          "name" : "HL7 v2 Mapping"
        }
      ],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Medication",
      "baseDefinition" : "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore",
      "derivation" : "constraint",
      "snapshot" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
            "valueString" : "0.3.2"
          }
        ],
        "element" : [
          {
            "id" : "Medication",
            "path" : "Medication",
            "short" : "藥品的定義",
            "definition" : "此resource主要用於識別和定義藥品，以便開立處方、配藥和給藥，以及對藥品使用進行說明。",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Medication",
              "min" : 0,
              "max" : "*"
            },
            "constraint" : [
              {
                "key" : "dom-2",
                "severity" : "error",
                "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression" : "contained.contained.empty()",
                "xpath" : "not(parent::f:contained and f:contained)",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key" : "dom-3",
                "severity" : "error",
                "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",
                "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()",
                "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"
              },
              {
                "key" : "dom-4",
                "severity" : "error",
                "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "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"
              },
              {
                "key" : "dom-5",
                "severity" : "error",
                "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression" : "contained.meta.security.empty()",
                "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "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."
                  }
                ],
                "key" : "dom-6",
                "severity" : "warning",
                "human" : "A resource should have narrative for robust management",
                "expression" : "text.`div`.exists()",
                "xpath" : "exists(f:text/h:div)",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "Entity. Role, or Act"
              },
              {
                "identity" : "script10.6",
                "map" : "NewRx/MedicationPrescribed\r-or-\rRxFill/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationDispensed\r-or-\rRxHistoryResponse/MedicationPrescribed"
              },
              {
                "identity" : "rim",
                "map" : "ManufacturedProduct[classCode=ADMM]"
              }
            ]
          },
          {
            "id" : "Medication.id",
            "path" : "Medication.id",
            "short" : "不重複的ID用以識別儲存在特定FHIR Server中的Medication紀錄，通常又稱為邏輯性ID。",
            "definition" : "resource的邏輯ID，在resource的URL中使用。一旦指定，這個值永遠不會改變。",
            "comment" : "一個resource使用新增操作（create operation）提交給伺服器時，此resource沒有id，它的id在resource被創建後由伺器分配/指定。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "id"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : true
          },
          {
            "id" : "Medication.meta",
            "path" : "Medication.meta",
            "short" : "此Medication Resource的metadata",
            "definition" : "關於resource的metadata。這是由基礎建設維護的內容。內容的更改可能並不總是與resource的版本更改相關聯。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.meta",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Meta"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true
          },
          {
            "id" : "Medication.implicitRules",
            "path" : "Medication.implicitRules",
            "short" : "創建此內容所依據的一組規則",
            "definition" : "構建resource時遵循的一系列規則的參照，在處理內容時必須理解這些規則。通常這是對IG所定義之特殊規則及其他profiles的參照。",
            "comment" : "宣告這套規則限制了內容只能被有限的交易夥伴所理解。這從本質上限制了資料的長期有用性。然而，現有的健康生態體系高度分裂，還沒有準備好以普遍可計算的方式定義、收集和交換資料。只要有可能，實作者和/或規範編寫者應該避免使用這個資料項目。通常在使用時，此URL是對IG的參照，此IG將這些特殊規則與其他profiles、value sets等一起定義為其敘述的一部分。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.implicitRules",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "uri"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : true,
            "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
          },
          {
            "id" : "Medication.language",
            "path" : "Medication.language",
            "short" : "用以表述Medication Resource內容的語言。",
            "definition" : "編寫此resource的語言",
            "comment" : "提供語言是為了支援索引和可存取性（通常，文字表述轉語音等服務使用此語言標籤）。html lanuage tag適用於此敘述。resource上的語言標籤可用於指定從resource中的資料所產成的其他表述之語言。不是所有的內容都必須使用此語言。不應該假定Resource.language自動適用於敘述。如果指定語言，它也應該被指定在html中的div資料項目（關於xml:lang和html lang屬性之間的關係，見HTML5中的規則）。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.language",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "code"
              }
            ],
            "example" : [
              {
                "label" : "Value",
                "valueString" : "zh-TW"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "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"
                }
              ],
              "strength" : "preferred",
              "description" : "人類語言；鼓勵使用CommonLanguages代碼表中的代碼，但不強制一定要使用此代碼表，你也可使用其他代碼表的代碼或單純以文字表示。",
              "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id" : "Medication.text",
            "path" : "Medication.text",
            "short" : "Medication Resource之內容摘要以供人閱讀",
            "definition" : "人可讀的敘述，包含resource的摘要，可用於向人表述resource的內容。敘述不需要對所有的結構化資料進行編碼，但需要包含足夠的細節使人在閱讀敘述時理解「臨床安全性」。resource定義有哪些內容應該在敘述中表示，以確保臨床安全。",
            "comment" : "內嵌（contained）的resource沒有敘述，非內嵌（contained）的resource則 **建議應該（SHOULD）** 有敘述。有時resource可能只有文字表述，很少或沒有額外的結構化資料（只要滿足所有minOccurs=1的資料項目）。這可能出現在舊系統的資料，當資訊以 「文字表述區塊（text blob） 」的形式被取得，或者文字表述是原始輸入或說明，而編碼資訊稍後再添加。",
            "alias" : [
              "narrative",
              "html",
              "xhtml",
              "display"
            ],
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "DomainResource.text",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Narrative"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "Act.text?"
              }
            ]
          },
          {
            "id" : "Medication.contained",
            "path" : "Medication.contained",
            "short" : "Contained, inline Resources",
            "definition" : "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
            "comment" : "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
            "alias" : [
              "inline resources",
              "anonymous resources",
              "contained resources"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.contained",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Resource"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Medication.extension",
            "path" : "Medication.extension",
            "short" : "Additional content defined by implementations",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
            "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Medication.modifierExtension",
            "path" : "Medication.modifierExtension",
            "short" : "Extensions that cannot be ignored",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
            "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.",
            "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Medication.identifier",
            "path" : "Medication.identifier",
            "short" : "此藥品的業務用識別碼",
            "definition" : "此藥品的業務用識別碼",
            "comment" : "序號可被包含於一個識別碼",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Medication.identifier",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Identifier"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "w5",
                "map" : "FiveWs.identifier"
              },
              {
                "identity" : "rim",
                "map" : ".id"
              }
            ]
          },
          {
            "id" : "Medication.identifier.id",
            "path" : "Medication.identifier.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.identifier.extension",
            "path" : "Medication.identifier.extension",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "value",
                  "path" : "url"
                }
              ],
              "description" : "Extensions are always sliced by (at least) url",
              "rules" : "open"
            },
            "short" : "Additional content defined by implementations",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
            "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.identifier.use",
            "path" : "Medication.identifier.use",
            "short" : "usual | official | temp | secondary | old (If known)",
            "definition" : "The purpose of this identifier.",
            "comment" : "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
            "requirements" : "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.use",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "code"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "IdentifierUse"
                }
              ],
              "strength" : "required",
              "description" : "Identifies the purpose for this identifier, if known .",
              "valueSet" : "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
            },
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "N/A"
              },
              {
                "identity" : "rim",
                "map" : "Role.code or implied by context"
              }
            ]
          },
          {
            "id" : "Medication.identifier.type",
            "path" : "Medication.identifier.type",
            "short" : "Description of identifier",
            "definition" : "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
            "comment" : "This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
            "requirements" : "Allows users to make use of identifiers when the identifier system is not known.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.type",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "IdentifierType"
                }
              ],
              "strength" : "extensible",
              "description" : "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/identifier-type|4.0.1"
            },
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CX.5"
              },
              {
                "identity" : "rim",
                "map" : "Role.code or implied by context"
              }
            ]
          },
          {
            "id" : "Medication.identifier.system",
            "path" : "Medication.identifier.system",
            "short" : "The namespace for the identifier value",
            "definition" : "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
            "comment" : "Identifier.system is always case sensitive.",
            "requirements" : "There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.system",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "uri"
              }
            ],
            "example" : [
              {
                "label" : "General",
                "valueUri" : "http://www.acme.com/identifiers/patient"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CX.4 / EI-2-4"
              },
              {
                "identity" : "rim",
                "map" : "II.root or Role.id.root"
              },
              {
                "identity" : "servd",
                "map" : "./IdentifierType"
              }
            ]
          },
          {
            "id" : "Medication.identifier.value",
            "path" : "Medication.identifier.value",
            "short" : "The value that is unique。[應填入藥品批號]",
            "definition" : "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
            "comment" : "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.value",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "string"
              }
            ],
            "example" : [
              {
                "label" : "General",
                "valueString" : "123456"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CX.1 / EI.1"
              },
              {
                "identity" : "rim",
                "map" : "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
              },
              {
                "identity" : "servd",
                "map" : "./Value"
              }
            ]
          },
          {
            "id" : "Medication.identifier.period",
            "path" : "Medication.identifier.period",
            "short" : "Time period when id is/was valid for use",
            "definition" : "Time period during which identifier is/was valid for use.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.period",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Period"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CX.7 + CX.8"
              },
              {
                "identity" : "rim",
                "map" : "Role.effectiveTime or implied by context"
              },
              {
                "identity" : "servd",
                "map" : "./StartDate and ./EndDate"
              }
            ]
          },
          {
            "id" : "Medication.identifier.assigner",
            "path" : "Medication.identifier.assigner",
            "short" : "Organization that issued id (may be just text)",
            "definition" : "Organization that issued/manages the identifier.",
            "comment" : "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Identifier.assigner",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CX.4 / (CX.4,CX.9,CX.10)"
              },
              {
                "identity" : "rim",
                "map" : "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
              },
              {
                "identity" : "servd",
                "map" : "./IdentifierIssuingAuthority"
              }
            ]
          },
          {
            "id" : "Medication.code",
            "path" : "Medication.code",
            "short" : "指明這種藥品的代碼。[應填入健保代碼、藥品商品名稱 Brand Name與學名 Generic Name]",
            "definition" : "具體說明此藥品的一個代碼（或一組代碼），如果沒有代碼，則為文字描述。使用說明：這可以是一個標準的藥品代碼，如RxNorm、SNOMED CT、IDMP等的代碼。它也可以是一個國家或地方的處方藥代碼，可以選擇翻譯／交易（transactions）為其他代碼系統。",
            "comment" : "根據使用情境，實際由使用者（開立處方者、配藥者等）選擇的代碼將把coding.userSelected設置為true。正如coding datatype中所描述的。「如果使用者在使用者介面上選擇了特定的代碼值（例如：使用者在清單中選擇了一個項目），那麼coding可以被標記為 「userSelected」。如果存在一個使用者選擇的代碼，它是進行翻譯等的首選，其他代碼只能字面翻譯至替代的代碼系統或者較小精細度的代碼（例如：一個通用代碼用於一個供應商限定的代碼）。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Medication.code",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "MedicationFormalRepresentation"
                }
              ],
              "strength" : "example",
              "description" : "此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。",
              "valueSet" : "http://hl7.org/fhir/ValueSet/medication-codes"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE"
              },
              {
                "identity" : "rim",
                "map" : "CD"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD"
              }
            ]
          },
          {
            "id" : "Medication.code.id",
            "path" : "Medication.code.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "唯一可識別ID，以供資料項目間相互參照。",
            "definition" : "resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.code.extension",
            "path" : "Medication.code.extension",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "value",
                  "path" : "url"
                }
              ],
              "description" : "Extensions are always sliced by (at least) url",
              "rules" : "open"
            },
            "short" : "擴充的資料項目",
            "definition" : "擴充的資料項目",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false
          },
          {
            "id" : "Medication.code.coding",
            "path" : "Medication.code.coding",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "pattern",
                  "path" : "$this"
                }
              ],
              "rules" : "open"
            },
            "short" : "由專門術語系統（terminology system）定義的代碼。此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:fda-medication-tw",
            "path" : "Medication.code.coding",
            "sliceName" : "fda-medication-tw",
            "short" : "此為臺灣食品藥物管理署(TFDA)維護之藥品代碼，涵蓋範圍相對完整，可免費使用，可優先選用此代碼。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼。",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-fda-tw"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:nhi-medication-tw",
            "path" : "Medication.code.coding",
            "sliceName" : "nhi-medication-tw",
            "short" : "此為中央健康保險署(NHI)維護之藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼。",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-nhi-tw"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:nhi-medication-ch-herb-tw",
            "path" : "Medication.code.coding",
            "sliceName" : "nhi-medication-ch-herb-tw",
            "short" : "此為中央健康保險署(NHI)維護之中藥藥品代碼，主要針對申報使用，更新頻率相對頻繁，可免費使用，可依情境選用此代碼。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼。",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/nhi-medication-ch-herb-tw"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:rxnorm-medication-us-core",
            "path" : "Medication.code.coding",
            "sliceName" : "rxnorm-medication-us-core",
            "short" : "RxNorm為美國Unified Medical Language System®中的藥品代碼，取得UMLS®授權即可免費使用，可依情境選用此代碼。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼。",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medication-rxnorm-tw"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:atc-medication-code",
            "path" : "Medication.code.coding",
            "sliceName" : "atc-medication-code",
            "short" : "ATC代碼的版權為世界衛生組織（WHO）Collaborating Centre for Drug Statistics Methodology，可免費使用，可依情境選用此代碼。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼。",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/medcation-atc-tw"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.coding:snomedct-medication-codes",
            "path" : "Medication.code.coding",
            "sliceName" : "snomedct-medication-codes",
            "short" : "此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照。",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，如SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "可參考所綁定值集，但此值集只是針對這個欄位的一個可能值的範例，不預期也不鼓勵使用者一定要使用此值集的代碼。",
              "valueSet" : "http://hl7.org/fhir/ValueSet/medication-codes"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.code.text",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
                "valueBoolean" : true
              }
            ],
            "path" : "Medication.code.text",
            "short" : "概念的文字表示法",
            "definition" : "輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。",
            "comment" : "很多時候，此文字表述與其中一個代碼的顯示名稱相同。",
            "requirements" : "專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.text",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "string"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "C*E.9. But note many systems use C*E.2 for this"
              },
              {
                "identity" : "rim",
                "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
              }
            ]
          },
          {
            "id" : "Medication.status",
            "path" : "Medication.status",
            "short" : "active ｜ inactive ｜ entered-in-error",
            "definition" : "此代碼指明藥品是否使用中",
            "comment" : "此狀態是為了識別當地系統中的藥品是否在藥物資料庫或存貨為有效使用狀態。例如：一個藥局系統可能為一個複方產品 「ABC醫院專用藥膏」建立一個新的藥品檔案紀錄，狀態為有效。在未來的某個時間點，可能決定此藥品紀錄在建立時出現了錯誤，於是狀態被改為 「輸入錯誤 」。這種狀態不是為了說明某種藥品是否屬於某個特定的處方集。藥品紀錄有可能被多個處方集或編錄集所參照，每筆紀錄都會有一個單獨的狀態。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.status",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "code"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "This element changes the interpretation of all descriptive attributes.",
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "MedicationStatus"
                }
              ],
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼",
              "valueSet" : "http://hl7.org/fhir/ValueSet/medication-status|4.0.1"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".statusCode"
              }
            ]
          },
          {
            "id" : "Medication.manufacturer",
            "path" : "Medication.manufacturer",
            "short" : "此藥品的製造商",
            "definition" : "描述藥品製造商的詳細訊息。這並不意味著代表藥品的經銷商。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.manufacturer",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Organization-twcore"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "no mapping"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.actor"
              },
              {
                "identity" : "v2",
                "map" : "RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name"
              },
              {
                "identity" : "rim",
                "map" : ".player.scopingRole[typeCode=MANU].scoper"
              }
            ]
          },
          {
            "id" : "Medication.form",
            "path" : "Medication.form",
            "short" : "powder ｜ tablets ｜ capsule +此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。[應填入劑型 Dosage Form]",
            "definition" : "描述藥品的劑型：藥粉、錠劑、膠囊。",
            "comment" : "當藥品被MedicationRequest參照時，這是開立處方的劑型。當MedicationDispense中參用Medication時，這是配藥的劑型。當在MedicationAdministration中引用Medication時，這是給藥的劑型。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Medication.form",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "MedicationForm"
                }
              ],
              "strength" : "example",
              "description" : "此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。",
              "valueSet" : "http://hl7.org/fhir/ValueSet/medication-form-codes"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE"
              },
              {
                "identity" : "rim",
                "map" : "CD"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept rdfs:subClassOf dt:CD"
              }
            ]
          },
          {
            "id" : "Medication.form.id",
            "path" : "Medication.form.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "唯一可識別ID，以供資料項目間相互參照。",
            "definition" : "resource中資料項目的唯一ID（用於內部參照）。這可以是任何不含空格的字串。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.form.extension",
            "path" : "Medication.form.extension",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "value",
                  "path" : "url"
                }
              ],
              "description" : "Extensions are always sliced by (at least) url",
              "rules" : "open"
            },
            "short" : "擴充的資料項目",
            "definition" : "擴充的資料項目",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false
          },
          {
            "id" : "Medication.form.coding",
            "path" : "Medication.form.coding",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "pattern",
                  "path" : "$this"
                }
              ],
              "rules" : "open"
            },
            "short" : "powder ｜ tablets ｜ capsule + 此資料項目為可擴充綁定預設國際標準值集，但實作者可視實務專案需求只綁定以下slices中的任一值集。目前未只限定綁定預設值集是因為尚無slice值集與預設國際標準值集的代碼對應表，待後續有相對的代碼對應表後將建議採用國際標準值集作為唯一綁定值集並針對該值集進行擴充與管理，以利進行跨國與跨系統之資料交換。",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 1,
            "max" : "*",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.form.coding:v3-orderableDrugForm",
            "path" : "Medication.form.coding",
            "sliceName" : "v3-orderableDrugForm",
            "short" : "由專門術語系統（terminology system）定義的代碼",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼",
              "valueSet" : "https://twcore.mohw.gov.tw/ig/twcore/ValueSet/v3-orderableDrugForm"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.form.coding:snomed-sct-form-codes",
            "path" : "Medication.form.coding",
            "sliceName" : "snomed-sct-form-codes",
            "short" : "由專門術語系統（terminology system）定義的代碼",
            "definition" : "由專門術語系統（terminology system）所定義之代碼的參照",
            "comment" : "代碼可以在列舉清單（enumerations）或代碼清單（code lists）中非常隨意地定義，直至有非常正式的定義，例如：SNOMED CT—更多資訊見HL7 v3核心原則（Core Principles ）。編碼的排序是未定義的因而 **必須沒有（SHALL NOT）** 被用來推斷意義。一般來說，最多只有一個編碼值（coding values）會被標記為UserSelected = true。",
            "requirements" : "允許代碼系統中的替代編碼，以及翻譯到其他編碼系統。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Coding-tw"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "binding" : {
              "strength" : "required",
              "description" : "應填入所綁定值集中的其中一個代碼",
              "valueSet" : "http://hl7.org/fhir/ValueSet/medication-form-codes"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "v2",
                "map" : "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
              },
              {
                "identity" : "rim",
                "map" : "CV"
              },
              {
                "identity" : "orim",
                "map" : "fhir:Coding rdfs:subClassOf dt:CDCoding"
              }
            ]
          },
          {
            "id" : "Medication.form.text",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
                "valueBoolean" : true
              }
            ],
            "path" : "Medication.form.text",
            "short" : "概念的文字表示法",
            "definition" : "輸入資料的使用者所見／所選／所說的人類可讀文字表述，和（或）其代表使用者的預期含義。",
            "comment" : "很多時候，此文字表述與其中一個代碼的顯示名稱相同。",
            "requirements" : "專門術語中的代碼並不總是能捕捉人類使用的細微差別的正確意義，或者根本就沒有合適的代碼；這些情況下，文字表述被用來捕捉來源的全部意義。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.text",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "string"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "C*E.9. But note many systems use C*E.2 for this"
              },
              {
                "identity" : "rim",
                "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
              }
            ]
          },
          {
            "id" : "Medication.amount",
            "path" : "Medication.amount",
            "short" : "每包裝的藥品數量或容量",
            "definition" : "每包裝產品中藥品的具體數量或容量。例如：當指定一個具有相同強度的藥品時（例如：每毫升注射用胰島素100單位），該屬性提供了每包裝數量與容量的附加說明（例如：3mL、10mL等）。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.amount",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Ratio"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".quantity"
              }
            ]
          },
          {
            "id" : "Medication.ingredient",
            "path" : "Medication.ingredient",
            "short" : "有使用或沒有使用的藥品成份",
            "definition" : "指明產品中的特定成份",
            "comment" : "成份不需要是一個完整的清單。如果沒有具體說明某種成份，這並不表明有使用或沒使用某種成份。如果一個成份被具體說明，並不意味著所有的成份都被具體說明。可以同時具體說明有沒有使用及有使用的成份。",
            "min" : 1,
            "max" : "*",
            "base" : {
              "path" : "Medication.ingredient",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "BackboneElement"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".scopesRole[typeCode=INGR]"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.id",
            "path" : "Medication.ingredient.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.extension",
            "path" : "Medication.ingredient.extension",
            "short" : "Additional content defined by implementations",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
            "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.modifierExtension",
            "path" : "Medication.ingredient.modifierExtension",
            "short" : "Extensions that cannot be ignored even if unrecognized",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
            "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.",
            "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
            "alias" : [
              "extensions",
              "user content",
              "modifiers"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "BackboneElement.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.item[x]",
            "path" : "Medication.ingredient.item[x]",
            "short" : "實際的成份或內容物",
            "definition" : "實際成份—不是一種物質（單一成份）就是一種藥品的另一種藥品。",
            "requirements" : "此成份可能是指一種物質（例如：阿莫西林）或另一種藥品（例如：複方葛蘭素史克）。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Medication.ingredient.item[x]",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept",
                "profile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/CodeableConcept-tw"
                ]
              },
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "https://twcore.mohw.gov.tw/ig/twcore/StructureDefinition/Medication-twcore"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "coding.code = //element(*,MedicationType)/DrugCoded/ProductCode\r\rcoding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier\r\rcoding.display = //element(*,MedicationType)/DrugDescription"
              },
              {
                "identity" : "v2",
                "map" : "RXC-2-Component Code  if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code"
              },
              {
                "identity" : "rim",
                "map" : ".player"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.isActive",
            "path" : "Medication.ingredient.isActive",
            "short" : "有效成份指標",
            "definition" : "說明此成份是否會影響藥物的治療作用",
            "requirements" : "True表示此成份會影響藥物的治療作用（意即：active），False表示此成份不影響藥物的治療作用（意即：inactive）。",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.ingredient.isActive",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "boolean"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "NA"
              }
            ]
          },
          {
            "id" : "Medication.ingredient.strength",
            "path" : "Medication.ingredient.strength",
            "short" : "所含成份的劑量。[應填入藥品單位含量]",
            "definition" : "指明此藥品中有多少（或多少）項目。例如：每錠250毫克，這表示為一個比率，分子為250毫克，分母為1錠。",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Medication.ingredient.strength",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Ratio"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "//element(*,DrugCodedType)/Strength"
              },
              {
                "identity" : "v2",
                "map" : "RXC-3-Component Amount & RXC-4-Component Units  if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units"
              },
              {
                "identity" : "rim",
                "map" : ".quantity"
              }
            ]
          },
          {
            "id" : "Medication.batch",
            "path" : "Medication.batch",
            "short" : "關於包裝藥品的細節",
            "definition" : "只適用於包裝（不是產品）的資訊",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.batch",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "BackboneElement"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "no mapping"
              },
              {
                "identity" : "rim",
                "map" : ".player[classCode=CONT]"
              }
            ]
          },
          {
            "id" : "Medication.batch.id",
            "path" : "Medication.batch.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.batch.extension",
            "path" : "Medication.batch.extension",
            "short" : "Additional content defined by implementations",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
            "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Medication.batch.modifierExtension",
            "path" : "Medication.batch.modifierExtension",
            "short" : "Extensions that cannot be ignored even if unrecognized",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
            "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.",
            "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
            "alias" : [
              "extensions",
              "user content",
              "modifiers"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "BackboneElement.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Medication.batch.lotNumber",
            "path" : "Medication.batch.lotNumber",
            "short" : "藥品的批號",
            "definition" : "藥品的批號資訊",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.batch.lotNumber",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "string"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "no mapping"
              },
              {
                "identity" : "v2",
                "map" : "RXA-15 Substance Lot Number / RXG-19 Substance Lot Number"
              },
              {
                "identity" : "rim",
                "map" : ".id"
              }
            ]
          },
          {
            "id" : "Medication.batch.expirationDate",
            "path" : "Medication.batch.expirationDate",
            "short" : "有效期限",
            "definition" : "此批號藥品之有效期限",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Medication.batch.expirationDate",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "dateTime"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "script10.6",
                "map" : "no mapping"
              },
              {
                "identity" : "v2",
                "map" : "RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date"
              },
              {
                "identity" : "rim",
                "map" : "participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime"
              }
            ]
          }
        ]
      },
      "differential" : {
        "element" : [
          {
            "id" : "Medication.identifier",
            "path" : "Medication.identifier",
            "mustSupport" : true
          },
          {
            "id" : "Medication.identifier.value",
            "path" : "Medication.identifier.value",
            "short" : "The value that is unique。[應填入藥品批號]",
            "mustSupport" : true
          },
          {
            "id" : "Medication.code",
            "path" : "Medication.code",
            "short" : "指明這種藥品的代碼。[應填入健保代碼、藥品商品名稱 Brand Name與學名 Generic Name]",
            "min" : 1
          },
          {
            "id" : "Medication.form",
            "path" : "Medication.form",
            "short" : "powder ｜ tablets ｜ capsule +此為SNOMED CT代碼，若機構已有購買相關授權，亦可使用。[應填入劑型 Dosage Form]",
            "min" : 1
          },
          {
            "id" : "Medication.form.text",
            "path" : "Medication.form.text",
            "min" : 1
          },
          {
            "id" : "Medication.ingredient",
            "path" : "Medication.ingredient",
            "min" : 1,
            "mustSupport" : true
          },
          {
            "id" : "Medication.ingredient.strength",
            "path" : "Medication.ingredient.strength",
            "short" : "所含成份的劑量。[應填入藥品單位含量]",
            "min" : 1,
            "mustSupport" : true
          }
        ]
      }
    }