<?xml version=“1.0” encoding=“UTF-8”?> <ChargeItemDefinition xmlns=“hl7.org/fhir”>

      <id value="device"/>
      <meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>
<url value="http://sap.org/ChargeItemDefinition/device-123"/>
      <status value="active"/> 
      <description value="Financial details for  custom made device"/>
      <instance>
              <reference value="Device/12345"/>
      </instance>
      <!--   definition only applicable if the ChargeItem pertains to the device this    -->  
      <applicability>
              <description value="Verify ChargeItem pertains to Device 12345"/>
              <language value="text/fhirpath"/>
              <!--   syntax of expression may be incorrect, but you get the idea  -->
              <expression value="%context.service.suppliedItem='Device/12345'"/>
      </applicability>
      <!--   the base price for this device is constant, so no additional rules apply  -->
      <propertyGroup>
              <priceComponent>
                      <type value="base"/>
                      <code>
                              <coding>
                                      <system value="http://fhir.de/CodeSystem/billing-attributes"/>
                                      <code value="VK"/>
                                      <display value="Verkaufspreis (netto)"/>
                              </coding>
                      </code>
                      <amount>
                              <value value="67.44"/>
                              <currency value="EUR"/>
                      </amount>
              </priceComponent>
      </propertyGroup>
      <!--   the tax applicable to this device changes after 2018-04-01  -->
      <propertyGroup>
              <applicability>
                      <description value="Gültigkeit Steuersatz"/>
                      <language value="text/fhirpath"/>
                      <!--   syntax of expression may be incorrect, but you get the idea  -->
                      <expression value="%context.occurenceDateTime &gt; '2018-04-01'"/>
              </applicability>
              <priceComponent>
                      <type value="tax"/>
                      <code>
                              <coding>
                                      <system value="http://fhir.de/CodeSystem/billing-attributes"/>
                                      <code value="MWST"/>
                                      <display value="Mehrwersteuersatz"/>
                              </coding>
                      </code>
                      <factor value="1.19"/>
              </priceComponent>
      </propertyGroup>
      <propertyGroup>
              <applicability>
                      <description value="Gültigkeit Steuersatz"/>
                      <language value="text/fhirpath"/>
                      <!--   syntax of expression may be incorrect, but you get the idea  -->
                      <expression value="%context.occurenceDateTime &lt;= '2018-04-01'"/>
              </applicability>
              <priceComponent>
                      <type value="tax"/>
                      <code>
                              <coding>
                                      <system value="http://fhir.de/CodeSystem/billing-attributes"/>
                                      <code value="MWST"/>
                                      <display value="Mehrwersteuersatz"/>
                              </coding>
                      </code>
                      <factor value="1.07"/>
              </priceComponent>
      </propertyGroup>

</ChargeItemDefinition>