{
  "resourceType": "StructureDefinition",
  "id": "c7187944-cc52-4f11-bf77-f94da8f02fc2",
  "meta": {
    "lastUpdated": "2024-03-13T08:42:50.3348694+00:00"
  },
  "url": "https://simplifier.net/winningtest/service-charge-item-profile",
  "name": "ServiceChargeItem",
  "title": "服务收费项目",
  "status": "draft",
  "date": "2024-03-13T08:43:05.6208461+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:asGroup",
        "path": "ChargeItem.extension",
        "sliceName": "asGroup",
        "short": "组标志",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-as-group"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:sentToInsurance",
        "path": "ChargeItem.extension",
        "sliceName": "sentToInsurance",
        "short": "医保上传状态",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-sent-to-insurance"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:chargeType",
        "path": "ChargeItem.extension",
        "sliceName": "chargeType",
        "short": "计费方向",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-charge-type"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:requestResource",
        "path": "ChargeItem.extension",
        "sliceName": "requestResource",
        "short": "请求来源",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-request-source"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.extension:billingRule",
        "path": "ChargeItem.extension",
        "sliceName": "billingRule",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-billing-rule"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ChargeItem.extension:pricingRule",
        "path": "ChargeItem.extension",
        "sliceName": "pricingRule",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-pricing-rule"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "ChargeItem.identifier:chargingItemId",
        "path": "ChargeItem.identifier",
        "sliceName": "chargingItemId",
        "short": "收费项目标识",
        "max": "1"
      },
      {
        "id": "ChargeItem.identifier:chargingItemId.use",
        "path": "ChargeItem.identifier.use",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemId.type",
        "path": "ChargeItem.identifier.type",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemId.system",
        "path": "ChargeItem.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3938"
      },
      {
        "id": "ChargeItem.identifier:chargingItemId.period",
        "path": "ChargeItem.identifier.period",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemId.assigner",
        "path": "ChargeItem.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo",
        "path": "ChargeItem.identifier",
        "sliceName": "chargingItemNo",
        "short": "收费项目编码",
        "max": "1"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo.use",
        "path": "ChargeItem.identifier.use",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo.type",
        "path": "ChargeItem.identifier.type",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo.system",
        "path": "ChargeItem.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3937"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo.period",
        "path": "ChargeItem.identifier.period",
        "max": "0"
      },
      {
        "id": "ChargeItem.identifier:chargingItemNo.assigner",
        "path": "ChargeItem.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ChargeItem.definitionCanonical",
        "path": "ChargeItem.definitionCanonical",
        "short": "收费项目定义",
        "definition": "此处使用ChargeItemDefinition.url，该url可以是一个随机生成的urn:uuid。"
      },
      {
        "id": "ChargeItem.status",
        "path": "ChargeItem.status",
        "short": "planned | billable | not-billable | aborted | billed | entered-in-error | unknown | booked | complete",
        "definition": "未收费使用billable，已收费使用billed，已预约使用booked，已完成使用complete。"
      },
      {
        "id": "ChargeItem.partOf",
        "path": "ChargeItem.partOf",
        "short": "用于收费项目成组关系",
        "max": "1"
      },
      {
        "id": "ChargeItem.code.coding",
        "path": "ChargeItem.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "max": "1"
      },
      {
        "id": "ChargeItem.code.coding:pathologicalChargeItemExternalId",
        "path": "ChargeItem.code.coding",
        "sliceName": "pathologicalChargeItemExternalId",
        "short": "病理收费项目编码（外部）",
        "definition": "一般由医院以外的病理中心使用的病理收费项目的唯一编码。",
        "max": "1"
      },
      {
        "id": "ChargeItem.code.coding:pathologicalChargeItemExternalId.system",
        "path": "ChargeItem.code.coding.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.2.116441"
      },
      {
        "id": "ChargeItem.code.coding:pathologicalChargeItemExternalId.version",
        "path": "ChargeItem.code.coding.version",
        "max": "0"
      },
      {
        "id": "ChargeItem.code.coding:pathologicalChargeItemExternalId.userSelected",
        "path": "ChargeItem.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ChargeItem.code.text",
        "path": "ChargeItem.code.text",
        "short": "收费项目名称"
      },
      {
        "id": "ChargeItem.subject",
        "path": "ChargeItem.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/winningtest/patient-profile",
              "https://simplifier.net/winningtest/newborn-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:refundable",
        "path": "ChargeItem.quantity.extension",
        "sliceName": "refundable",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-refundable-quantity"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.quantity.value",
        "path": "ChargeItem.quantity.value",
        "short": "数量"
      },
      {
        "id": "ChargeItem.quantity.unit",
        "path": "ChargeItem.quantity.unit",
        "short": "单位"
      },
      {
        "id": "ChargeItem.bodysite",
        "path": "ChargeItem.bodysite",
        "max": "0"
      },
      {
        "id": "ChargeItem.factorOverride",
        "path": "ChargeItem.factorOverride",
        "max": "0"
      },
      {
        "id": "ChargeItem.priceOverride",
        "path": "ChargeItem.priceOverride",
        "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": "此临床项目可以对应检查项目或检验指标，也可以对应检验服务，取决于临床实际开立的服务项目，也即是ServiceRequest对应的code（代表Service）。",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/Procedure"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "ChargeItem.service.identifier",
        "path": "ChargeItem.service.identifier",
        "short": "临床项目编号/医疗服务标识",
        "definition": "当作为临床项目编号时，system为urn:oid:1.2.156.112604.1.1.3241：\r\n表示对于外部可识别的临床项目标识，通常称为hisid。\r\n当作为医疗服务标识时，system为urn:oid:1.2.156.112604.1.1.5290：\r\n用于服务类医疗服务标识。"
      },
      {
        "id": "ChargeItem.service.identifier.use",
        "path": "ChargeItem.service.identifier.use",
        "max": "0"
      },
      {
        "id": "ChargeItem.service.identifier.type",
        "path": "ChargeItem.service.identifier.type",
        "max": "0"
      },
      {
        "id": "ChargeItem.service.identifier.period",
        "path": "ChargeItem.service.identifier.period",
        "max": "0"
      },
      {
        "id": "ChargeItem.service.identifier.assigner",
        "path": "ChargeItem.service.identifier.assigner",
        "max": "0"
      },
      {
        "id": "ChargeItem.product[x]",
        "path": "ChargeItem.product[x]",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "ChargeItem.product[x].coding",
        "path": "ChargeItem.product[x].coding",
        "max": "0"
      },
      {
        "id": "ChargeItem.product[x].coding.system",
        "path": "ChargeItem.product[x].coding.system",
        "max": "0"
      },
      {
        "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"
      }
    ]
  }
}