{
  "resourceType": "StructureDefinition",
  "id": "42766133-ecba-43d8-b654-870d1945caa6",
  "meta": {
    "lastUpdated": "2023-03-08T09:59:23.1270517+00:00"
  },
  "url": "https://simplifier.net/winningtest/medication-charge-item-profile",
  "name": "MedicationChargeItem",
  "title": "药品收费项目",
  "status": "draft",
  "date": "2023-03-08T10:01:10.4573435+00:00",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ChargeItem",
  "baseDefinition": "https://simplifier.net/winningtest/charge-item-profile",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ChargeItem.extension",
        "path": "ChargeItem.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "ChargeItem.extension:asGroup",
        "path": "ChargeItem.extension",
        "sliceName": "asGroup",
        "short": "组标志",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-as-group"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:sentToInsurance",
        "path": "ChargeItem.extension",
        "sliceName": "sentToInsurance",
        "short": "医保上传状态",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-sent-to-insurance"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:chargeType",
        "path": "ChargeItem.extension",
        "sliceName": "chargeType",
        "short": "计费方向",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-charge-type"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:requestSource",
        "path": "ChargeItem.extension",
        "sliceName": "requestSource",
        "short": "请求来源",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-request-source"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.definitionCanonical",
        "path": "ChargeItem.definitionCanonical",
        "short": "收费项目定义",
        "definition": "此处使用ChargeItemDefinition.url，该url可以是一个随机生成的urn:uuid。"
      },
      {
        "id": "ChargeItem.status",
        "path": "ChargeItem.status",
        "definition": "未收费使用billable，已收费使用billed，已发药使用complete。"
      },
      {
        "id": "ChargeItem.partOf",
        "path": "ChargeItem.partOf",
        "short": "用于收费项目成组关系",
        "max": "1"
      },
      {
        "id": "ChargeItem.code.coding",
        "path": "ChargeItem.code.coding",
        "max": "0"
      },
      {
        "id": "ChargeItem.subject",
        "path": "ChargeItem.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/newborn-profile",
              "https://simplifier.net/winningtest/patient-profile"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.context",
        "path": "ChargeItem.context",
        "max": "0"
      },
      {
        "id": "ChargeItem.occurrence[x]",
        "path": "ChargeItem.occurrence[x]",
        "max": "0"
      },
      {
        "id": "ChargeItem.performer",
        "path": "ChargeItem.performer",
        "max": "0"
      },
      {
        "id": "ChargeItem.performingOrganization",
        "path": "ChargeItem.performingOrganization",
        "max": "0"
      },
      {
        "id": "ChargeItem.requestingOrganization",
        "path": "ChargeItem.requestingOrganization",
        "max": "0"
      },
      {
        "id": "ChargeItem.costCenter",
        "path": "ChargeItem.costCenter",
        "max": "0"
      },
      {
        "id": "ChargeItem.quantity.extension",
        "path": "ChargeItem.quantity.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "ChargeItem.quantity.extension:refundable",
        "path": "ChargeItem.quantity.extension",
        "sliceName": "refundable",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-refundable-quantity"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.bodysite",
        "path": "ChargeItem.bodysite",
        "max": "0"
      },
      {
        "id": "ChargeItem.factorOverride",
        "path": "ChargeItem.factorOverride",
        "max": "0"
      },
      {
        "id": "ChargeItem.priceOverride",
        "path": "ChargeItem.priceOverride",
        "short": "单价",
        "definition": "已弃用",
        "max": "0"
      },
      {
        "id": "ChargeItem.overrideReason",
        "path": "ChargeItem.overrideReason",
        "max": "0"
      },
      {
        "id": "ChargeItem.enterer",
        "path": "ChargeItem.enterer",
        "max": "0"
      },
      {
        "id": "ChargeItem.enteredDate",
        "path": "ChargeItem.enteredDate",
        "max": "0"
      },
      {
        "id": "ChargeItem.reason",
        "path": "ChargeItem.reason",
        "short": "收费/退费原因",
        "definition": "当用于退费时，这里实际填写的是从HIS来的退费原因编码，因此没有绑定术语。",
        "max": "1"
      },
      {
        "id": "ChargeItem.service",
        "path": "ChargeItem.service",
        "short": "药品发药信息",
        "definition": "在退费流程时，需要包含的实际药品发药信息。此发药信息与冷藏药品退费有关。",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/medication-dispense-profile"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.product[x]",
        "path": "ChargeItem.product[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/medication-profile",
              "https://simplifier.net/winningtest/substance-profile"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.account",
        "path": "ChargeItem.account",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/account-profile"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.note",
        "path": "ChargeItem.note",
        "max": "0"
      },
      {
        "id": "ChargeItem.supportingInformation",
        "path": "ChargeItem.supportingInformation",
        "max": "0"
      }
    ]
  }
}