{
  "resourceType": "StructureDefinition",
  "url": "https://simplifier.net/winningtest/invoice-profile",
  "name": "Invoice",
  "title": "订单/票据",
  "status": "draft",
  "date": "2022-11-28T12:56:24.0273293+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Invoice",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Invoice",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Invoice.extension",
        "path": "Invoice.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Invoice.extension:inpatientBillingSource",
        "path": "Invoice.extension",
        "sliceName": "inpatientBillingSource",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/winningtest/extension-inpatient-billing-source"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Invoice.identifier",
        "path": "Invoice.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Invoice.identifier:purchaseOrderId",
        "path": "Invoice.identifier",
        "sliceName": "purchaseOrderId",
        "short": "订单标识",
        "max": "1"
      },
      {
        "id": "Invoice.identifier:purchaseOrderId.use",
        "path": "Invoice.identifier.use",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:purchaseOrderId.type",
        "path": "Invoice.identifier.type",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:purchaseOrderId.system",
        "path": "Invoice.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.3349"
      },
      {
        "id": "Invoice.identifier:purchaseOrderId.period",
        "path": "Invoice.identifier.period",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:purchaseOrderId.assigner",
        "path": "Invoice.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:refundRequestId",
        "path": "Invoice.identifier",
        "sliceName": "refundRequestId",
        "short": "退费申请标识",
        "definition": "仅在将本资源用于退费申请时使用。",
        "max": "1"
      },
      {
        "id": "Invoice.identifier:refundRequestId.use",
        "path": "Invoice.identifier.use",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:refundRequestId.type",
        "path": "Invoice.identifier.type",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:refundRequestId.system",
        "path": "Invoice.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.4690"
      },
      {
        "id": "Invoice.identifier:refundRequestId.period",
        "path": "Invoice.identifier.period",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:refundRequestId.assigner",
        "path": "Invoice.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:invoiceNo",
        "path": "Invoice.identifier",
        "sliceName": "invoiceNo",
        "short": "票据号",
        "max": "1"
      },
      {
        "id": "Invoice.identifier:billId",
        "path": "Invoice.identifier",
        "sliceName": "billId",
        "max": "1"
      },
      {
        "id": "Invoice.identifier:billId.use",
        "path": "Invoice.identifier.use",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billId.type",
        "path": "Invoice.identifier.type",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billId.system",
        "path": "Invoice.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.4144"
      },
      {
        "id": "Invoice.identifier:billId.period",
        "path": "Invoice.identifier.period",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billId.assigner",
        "path": "Invoice.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billDetailId",
        "path": "Invoice.identifier",
        "sliceName": "billDetailId",
        "max": "1"
      },
      {
        "id": "Invoice.identifier:billDetailId.use",
        "path": "Invoice.identifier.use",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billDetailId.type",
        "path": "Invoice.identifier.type",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billDetailId.system",
        "path": "Invoice.identifier.system",
        "fixedUri": "urn:oid:1.2.156.112604.1.1.4152"
      },
      {
        "id": "Invoice.identifier:billDetailId.period",
        "path": "Invoice.identifier.period",
        "max": "0"
      },
      {
        "id": "Invoice.identifier:billDetailId.assigner",
        "path": "Invoice.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Invoice.totalPriceComponent",
        "path": "Invoice.totalPriceComponent",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Invoice#Invoice.lineItem.priceComponent"
      }
    ]
  }
}