<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="invoice-de-art-abrechnung" />
  <meta>
    <lastUpdated value="2022-11-28T16:27:54.1895651+00:00" />
  </meta>
  <language value="DE" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml" />
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Financial.Billing" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fm" />
  </extension>
  <url value="http://fhir.de/StructureDefinition/invoice-de-art-abrechnung" />
  <version value="1.1.0" />
  <name value="InvoiceDeArtAbrechnung" />
  <title value="Abrechnung" />
  <status value="active" />
  <experimental value="false" />
  <date value="2022-11-03" />
  <publisher value="vital.services GmbH" />
  <contact>
    <name value="Florian Meißner" />
    <telecom>
      <system value="url" />
      <value value="https://vital-services.de" />
      <use value="work" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="info@vital-services.de" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Generisches Profil zur Abbildung aller Abrechnungsarten in der ambualnten Versorgung" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Invoice" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="Invoice">
      <path value="Invoice" />
      <short value="Invoice containing ChargeItems from an Account" />
      <definition value="Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose." />
      <mapping>
        <identity value="v2" />
        <map value="FT1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act[moodCode=EVN]" />
      </mapping>
    </element>
    <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:PrintjobExtension">
      <path value="Invoice.extension" />
      <sliceName value="PrintjobExtension" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/PrintjobExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Invoice.extension:tseExtension">
      <path value="Invoice.extension" />
      <sliceName value="tseExtension" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/tseExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Invoice.extension:PvsExtension">
      <path value="Invoice.extension" />
      <sliceName value="PvsExtension" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/PvsExtension" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Invoice.identifier">
      <path value="Invoice.identifier" />
      <short value="Business Identifier for item" />
      <definition value="Identifier of this Invoice, often used for reference in correspondence about this invoice or for tracking of payments." />
      <requirements value="Allows Identification of this Invoice instance." />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="FT1.2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".identifier" />
      </mapping>
    </element>
    <element id="Invoice.identifier.value">
      <path value="Invoice.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Invoice.status">
      <path value="Invoice.status" />
      <short value="draft | issued | balanced | cancelled | entered-in-error" />
      <definition value="The current state of the Invoice." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="InvoiceStatus" />
        </extension>
        <strength value="required" />
        <description value="Codes identifying the lifecycle stage of an Invoice." />
        <valueSet value="http://hl7.org/fhir/ValueSet/invoice-status|4.0.0" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".status" />
      </mapping>
    </element>
    <element id="Invoice.cancelledReason">
      <path value="Invoice.cancelledReason" />
      <short value="Reason for cancellation of this Invoice" />
      <definition value="In case of Invoice cancellation a reason must be given (entered in error, superseded by corrected invoice etc.)." />
      <comment value="Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled." />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <isSummary value="false" />
    </element>
    <element id="Invoice.type">
      <path value="Invoice.type" />
      <short value="Type of Invoice" />
      <definition value="Type of Invoice depending on domain, realm an usage (e.g. internal/external, dental, preliminary)." />
      <alias value="type" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.code" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.what[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="FT1.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Invoice.subject">
      <path value="Invoice.subject" />
      <short value="Recipient(s) of goods and services" />
      <definition value="The individual or set of individuals receiving the goods and services billed in this invoice." />
      <requirements value="Links the event to the Patient context." />
      <alias value="Patient" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="false" />
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.subject" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PAT in proximity to FT1 segment" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].role" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="Invoice.recipient">
      <path value="Invoice.recipient" />
      <short value="Recipient of this invoice" />
      <definition value="The individual or Organization responsible for balancing of this invoice." />
      <alias value="Rechnungsempfänger" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.context" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="PV1 in proximity to FT1 segment" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship(typeCode=COMP].source[classCode&lt;=PCPR, moodCode=EVN]" />
      </mapping>
    </element>
    <element id="Invoice.date">
      <path value="Invoice.date" />
      <short value="Invoice date / posting date" />
      <definition value="Date/time(s) of when this Invoice was posted." />
      <comment value="The list of types may be constrained as appropriate for the type of charge item." />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.done[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Invoice.participant">
      <path value="Invoice.participant" />
      <short value="Participant in creation of this Invoice" />
      <definition value="Indicates who or what performed or participated in the charged service." />
      <alias value="Behandler" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="EVN.5 or by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
      </mapping>
    </element>
    <element id="Invoice.participant.role">
      <path value="Invoice.participant.role" />
      <short value="Type of involvement in creation of this Invoice" />
      <definition value="Describes the type of involvement (e.g. transcriptionist, creator etc.). If the invoice has been created automatically, the Participant may be a billing engine or another kind of device." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation.functionCode" />
      </mapping>
    </element>
    <element id="Invoice.participant.actor">
      <path value="Invoice.participant.actor" />
      <short value="Individual who was involved" />
      <definition value="The device, practitioner, etc. who performed or participated in the service." />
      <type>
        <code value="Reference" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="EVN.5 or by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".player" />
      </mapping>
    </element>
    <element id="Invoice.issuer">
      <path value="Invoice.issuer" />
      <short value="Issuing Organization of Invoice" />
      <definition value="The organizationissuing the Invoice." />
      <comment value="Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".scoper" />
      </mapping>
    </element>
    <element id="Invoice.account">
      <path value="Invoice.account" />
      <short value="Account that is being balanced" />
      <definition value="Account which is supposed to be balanced with this Invoice." />
      <comment value="Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Account" />
      </type>
      <isSummary value="false" />
    </element>
    <element id="Invoice.lineItem">
      <path value="Invoice.lineItem" />
      <short value="Line items of this Invoice" />
      <definition value="Each line item represents one charge for goods and services rendered. Details such as date, code and amount are found in the referenced ChargeItem resource." />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="EVN.5 or by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.sequence">
      <path value="Invoice.lineItem.sequence" />
      <short value="Sequence number of line item" />
      <definition value="Sequence in which the items appear on the invoice." />
      <max value="1" />
      <type>
        <code value="positiveInt" />
      </type>
      <isSummary value="false" />
    </element>
    <element id="Invoice.lineItem.chargeItem[x]">
      <path value="Invoice.lineItem.chargeItem[x]" />
      <short value="Reference to ChargeItem containing details of this line item or an inline billing code" />
      <definition value="The ChargeItem contains information such as the billing code, date, amount etc. If no further details are required for the lineItem, inline billing codes can be added using the CodeableConcept data type instead of the Reference." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.de/StructureDefinition/chargeItem-de-art-abrechnung" />
        <aggregation value="referenced" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="EVN.5 or by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".player" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent">
      <path value="Invoice.lineItem.priceComponent" />
      <short value="Components of total line item price" />
      <definition value="The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice as to how the prices have been calculated." />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="EVN.5 or by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent.type">
      <path value="Invoice.lineItem.priceComponent.type" />
      <short value="base | surcharge | deduction | discount | tax | informational" />
      <definition value="This code identifies the type of the component." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="false" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="InvoicePriceComponentType" />
        </extension>
        <strength value="required" />
        <description value="Codes indicating the kind of the price component." />
        <valueSet value="http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.0" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.code" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="FT1.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent.code">
      <path value="Invoice.lineItem.priceComponent.code" />
      <short value="Code identifying the specific component" />
      <definition value="A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc." />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.code" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="FT1.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <description value="BMAe&#xD;&#xA;E-GO&#xD;&#xA;EBM&#xD;&#xA;GOAe&#xD;&#xA;UV_GOAe&#xD;&#xA;SK&#xD;&#xA;IV" />
        <rules value="closed" />
      </slicing>
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="bmae" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.kbv.de/NamingSystem/KBV_NS_AW_BMAE" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae.version">
      <path value="Invoice.lineItem.priceComponent.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:bmae.userSelected">
      <path value="Invoice.lineItem.priceComponent.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="e-go" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.kbv.de/NamingSystem/KBV_NS_AW_E-GO" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go.version">
      <path value="Invoice.lineItem.priceComponent.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:e-go.userSelected">
      <path value="Invoice.lineItem.priceComponent.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="ebm" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.kbv.de/NamingSystem/KBV_NS_Base_EBM" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm.version">
      <path value="Invoice.lineItem.priceComponent.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <short value="Leistungsziffer" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:ebm.userSelected">
      <path value="Invoice.lineItem.priceComponent.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="goae" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.kbv.de/NamingSystem/KBV_NS_AW_GOAE" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae.version">
      <path value="Invoice.lineItem.priceComponent.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <short value="Leistungsziffer" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:goae.userSelected">
      <path value="Invoice.lineItem.priceComponent.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="uv-goae" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://fhir.kbv.de/NamingSystem/KBV_NS_AW_UV_GOAE" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae.version">
      <path value="Invoice.lineItem.priceComponent.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <short value="Leistungsziffer" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:uv-goae.userSelected">
      <path value="Invoice.lineItem.priceComponent.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:SK">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="SK" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:SK.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.de/StructureDefinition/ART-Sachkostenverzeichnis" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:SK.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:SK.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:IV">
      <path value="Invoice.lineItem.priceComponent.code.coding" />
      <sliceName value="IV" />
      <max value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:IV.system">
      <path value="Invoice.lineItem.priceComponent.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.de/StructureDefinition/ART-Vertragsverzeichnis" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:IV.code">
      <path value="Invoice.lineItem.priceComponent.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.code.coding:IV.display">
      <path value="Invoice.lineItem.priceComponent.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Invoice.lineItem.priceComponent.factor">
      <path value="Invoice.lineItem.priceComponent.factor" />
      <short value="Factor used for calculating this component" />
      <definition value="The factor that has been applied on the base price for calculating this component." />
      <comment value="There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden." />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="FT1.22" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent.amount">
      <path value="Invoice.lineItem.priceComponent.amount" />
      <short value="Monetary amount associated with this component" />
      <definition value="The amount calculated for this component." />
      <comment value="There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden." />
      <max value="1" />
      <type>
        <code value="Money" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="v2" />
        <map value="FT1.22" />
      </mapping>
    </element>
    <element id="Invoice.lineItem.priceComponent.amount.currency">
      <path value="Invoice.lineItem.priceComponent.amount.currency" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CurrencyCode" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/currencies" />
      </binding>
    </element>
    <element id="Invoice.totalNet">
      <path value="Invoice.totalNet" />
      <short value="Net total of this Invoice" />
      <definition value="Invoice total , taxes excluded." />
      <comment value="There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden." />
      <max value="1" />
      <type>
        <code value="Money" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="FT1.22" />
      </mapping>
    </element>
    <element id="Invoice.totalNet.currency">
      <path value="Invoice.totalNet.currency" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CurrencyCode" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/currencies" />
      </binding>
    </element>
    <element id="Invoice.totalGross">
      <path value="Invoice.totalGross" />
      <short value="Gross total of this Invoice" />
      <definition value="Invoice total, tax included." />
      <comment value="There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes  (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden." />
      <max value="1" />
      <type>
        <code value="Money" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="FT1.22" />
      </mapping>
    </element>
    <element id="Invoice.totalGross.currency">
      <path value="Invoice.totalGross.currency" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CurrencyCode" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/currencies" />
      </binding>
    </element>
    <element id="Invoice.paymentTerms">
      <path value="Invoice.paymentTerms" />
      <short value="Payment details" />
      <definition value="Payment details such as banking details, period of payment, deductibles, methods of payment." />
      <comment value="Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled." />
      <max value="1" />
      <type>
        <code value="markdown" />
      </type>
      <isSummary value="false" />
    </element>
    <element id="Invoice.note">
      <path value="Invoice.note" />
      <short value="Comments made about the invoice" />
      <definition value="Comments made about the invoice by the issuer, subject, or other participants." />
      <type>
        <code value="Annotation" />
      </type>
      <isSummary value="false" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.note" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NTE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>