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