{
  "resourceType": "StructureDefinition",
  "id": "239d6d31-d8df-4356-b078-3f58aa8cad70",
  "meta": {
    "lastUpdated": "2022-10-20T12:03:46.8505918+00:00"
  },
  "url": "https://simplifier.net/winningtest/traditional-chinese-medication-formula-profile",
  "name": "TraditionalChineseMedicationFormula",
  "title": "中草药药方",
  "status": "draft",
  "date": "2022-10-20T12:04:26.6592393+00:00",
  "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": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.extension",
        "path": "Medication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Medication.extension:herbalPaste",
        "path": "Medication.extension",
        "sliceName": "herbalPaste",
        "short": "膏方标志",
        "definition": "用于在表示整个中药方剂的Medication实例上标记为膏方，该实例下关联了表示每一味药材的Medication实例。",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-herbal-paste"
            ]
          }
        ]
      },
      {
        "id": "Medication.extension:sceretPrescription",
        "path": "Medication.extension",
        "sliceName": "sceretPrescription",
        "short": "保密方标志",
        "definition": "用于在表示整个中药方剂的Medication实例上标记为保密方，该实例下关联了表示每一味药材的Medication实例。",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-secret-prescription"
            ]
          }
        ]
      },
      {
        "id": "Medication.extension:prescriptionPrinciple",
        "path": "Medication.extension",
        "sliceName": "prescriptionPrinciple",
        "short": "处方法则",
        "definition": "用于在表示整个中药方剂的Medication实例上描述方剂组成原则（君臣佐使），该实例下关联了表示每一味药材的Medication实例。",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-prescription-principle"
            ]
          }
        ]
      },
      {
        "id": "Medication.extension:specialDecoction",
        "path": "Medication.extension",
        "sliceName": "specialDecoction",
        "definition": "用于在表示处方中每一味药材的Medication实例中表示对该药的特殊煎法要求。",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-special-decoction"
            ]
          }
        ]
      },
      {
        "id": "Medication.extension:decoctionMethod",
        "path": "Medication.extension",
        "sliceName": "decoctionMethod",
        "short": "煎法",
        "definition": "用于在表示整个中药方剂的Medication实例上表示煎法（区别于对单个药材的煎法要求）。",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-decoction-method"
            ]
          }
        ]
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "short": "中药饮片处方"
      },
      {
        "id": "Medication.code.coding.system",
        "path": "Medication.code.coding.system",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.version",
        "path": "Medication.code.coding.version",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.code",
        "path": "Medication.code.coding.code",
        "short": "药品商品代码",
        "definition": "对接外部系统时，实际填的是“外部系统唯一标识”。"
      },
      {
        "id": "Medication.code.coding.display",
        "path": "Medication.code.coding.display",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.userSelected",
        "path": "Medication.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "short": "药品名称"
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "max": "0"
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "max": "0"
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "short": "制出总量"
      },
      {
        "id": "Medication.amount.numerator.comparator",
        "path": "Medication.amount.numerator.comparator",
        "max": "0"
      },
      {
        "id": "Medication.amount.numerator.system",
        "path": "Medication.amount.numerator.system",
        "max": "0"
      },
      {
        "id": "Medication.amount.numerator.code",
        "path": "Medication.amount.numerator.code",
        "short": "剂量单位",
        "binding": {
          "strength": "required",
          "description": "剂量单位代码",
          "valueSet": "urn:oid:1.2.156.112604.1.1.3690"
        }
      },
      {
        "id": "Medication.amount.denominator",
        "path": "Medication.amount.denominator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.extension",
        "path": "Medication.ingredient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Medication.ingredient.extension:shared",
        "path": "Medication.ingredient.extension",
        "sliceName": "shared",
        "short": "药材共享",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-tcm-shared"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ]
        },
        "short": "药材",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/traditional-chinese-medication-profile"
            ],
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.item[x]:itemReference",
        "path": "Medication.ingredient.item[x]",
        "sliceName": "itemReference",
        "short": "药材",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/traditional-chinese-medication-profile"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.isActive",
        "path": "Medication.ingredient.isActive",
        "fixedBoolean": true
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "short": "药材剂量"
      },
      {
        "id": "Medication.ingredient.strength.numerator.comparator",
        "path": "Medication.ingredient.strength.numerator.comparator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.numerator.system",
        "path": "Medication.ingredient.strength.numerator.system",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.numerator.code",
        "path": "Medication.ingredient.strength.numerator.code",
        "short": "剂量单位",
        "binding": {
          "strength": "required",
          "description": "剂量单位代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.766"
        }
      },
      {
        "id": "Medication.ingredient.strength.denominator.comparator",
        "path": "Medication.ingredient.strength.denominator.comparator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.denominator.system",
        "path": "Medication.ingredient.strength.denominator.system",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.strength.denominator.code",
        "path": "Medication.ingredient.strength.denominator.code",
        "short": "剂量单位",
        "binding": {
          "strength": "required",
          "description": "剂量单位代码",
          "valueSet": "urn:oid:1.2.156.112604.1.2.766"
        }
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "max": "0"
      }
    ]
  }
}