<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="PaymentNotice" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Financial.Payment" />
  </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="2" />
  </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>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".status = entered-in-error" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/PaymentNotice" />
  <version value="4.6.0" />
  <name value="PaymentNotice" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (Financial Management)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/fm/index.cfm" />
    </telecom>
  </contact>
  <description value="This resource provides the status of the payment for goods and services rendered, and the request and response resource references." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </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="cdanetv4" />
    <uri value="http://www.cda-adc.ca/en/services/cdanet/" />
    <name value="Canadian Dental Association eclaims standard" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="PaymentNotice" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="PaymentNotice">
      <path value="PaymentNotice" />
      <short value="PaymentNotice request" />
      <definition value="This resource provides the status of the payment for goods and services rendered, and the request and response resource references." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="workflow" />
        <map value="Event" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="financial.payment" />
      </mapping>
    </element>
    <element id="PaymentNotice.identifier">
      <path value="PaymentNotice.identifier" />
      <short value="Business Identifier for the payment noctice" />
      <definition value="A unique identifier assigned to this payment notice." />
      <requirements value="Allows payment notices to be distinguished and referenced." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="PaymentNotice.status">
      <path value="PaymentNotice.status" />
      <short value="active | cancelled | draft | entered-in-error" />
      <definition value="The status of the resource instance." />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
      <requirements value="Need to track the status of the resource as 'draft' resources may undergo further edits while 'active' resources are immutable and may only have their status changed to 'cancelled'." />
      <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="PaymentNoticeStatus" />
        </extension>
        <strength value="required" />
        <description value="A code specifying the state of the resource instance." />
        <valueSet value="http://hl7.org/fhir/ValueSet/fm-status" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="PaymentNotice.request">
      <path value="PaymentNotice.request" />
      <short value="Request reference" />
      <definition value="Reference of resource for which payment is being made." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.basedOn" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="PaymentNotice.response">
      <path value="PaymentNotice.response" />
      <short value="Response reference" />
      <definition value="Reference of response to resource for which payment is being made." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="PaymentNotice.created">
      <path value="PaymentNotice.created" />
      <short value="Creation date" />
      <definition value="The date when this resource was created." />
      <requirements value="Need to record a timestamp for use by both the recipient and the issuer." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.occurrence[x]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.recorded" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="PaymentNotice.provider">
      <path value="PaymentNotice.provider" />
      <short value="Responsible practitioner" />
      <definition value="The practitioner who is responsible for the services rendered to the patient." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.performer" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.source" />
      </mapping>
      <mapping>
        <identity value="cdanetv4" />
        <map value="B01" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="B01" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="PaymentNotice.payment">
      <path value="PaymentNotice.payment" />
      <short value="Payment reference" />
      <definition value="A reference to the payment which is the subject of this notice." />
      <requirements value="Need to identify the actual payment." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PaymentReconciliation" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="PaymentNotice.paymentDate">
      <path value="PaymentNotice.paymentDate" />
      <short value="Payment or clearing date" />
      <definition value="The date when the above payment action occurred." />
      <requirements value="Need to convey the date when the action being notified occurred." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
    </element>
    <element id="PaymentNotice.payee">
      <path value="PaymentNotice.payee" />
      <short value="Party being paid" />
      <definition value="The party who will receive or has received payment that is the subject of this notification." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
    </element>
    <element id="PaymentNotice.recipient">
      <path value="PaymentNotice.recipient" />
      <short value="Party being notified" />
      <definition value="The party who is notified of the payment status." />
      <requirements value="Need to identified the recipient of the notification." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="PaymentNotice.amount">
      <path value="PaymentNotice.amount" />
      <short value="Monetary amount of the payment" />
      <definition value="The amount sent to the payee." />
      <requirements value="Provided for validation purposes." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Money" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="PaymentNotice.paymentStatus">
      <path value="PaymentNotice.paymentStatus" />
      <short value="Issued or cleared Status of the payment" />
      <definition value="A code indicating whether payment has been sent or cleared." />
      <comment value="Typically paid: payment sent, cleared: payment received." />
      <requirements value="The purpose of the notification." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PaymentStatus" />
        </extension>
        <strength value="example" />
        <description value="The payment conveyance status codes." />
        <valueSet value="http://hl7.org/fhir/ValueSet/payment-status" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>