<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark1910" />
  <meta>
    <versionId value="spark2610" />
    <lastUpdated value="2016-02-03T16:53:48.238+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <url value="http://premierinc.com/fhir/StructureDefinition/tdaf-claim" />
  <name value="Theradoc Data Access Framework (TDAF) Claim Profile" />
  <status value="draft" />
  <date value="2015-09-22T20:02:49+10:00" />
  <description value="Base StructureDefinition for Claim Resource" />
  <fhirVersion value="1.0.1" />
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM" />
  </mapping>
  <kind value="resource" />
  <constrainedType value="Claim" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Claim" />
  <differential>
    <element>
      <path value="Claim" />
      <short value="Claim, Pre-determination or Pre-authorization" />
      <definition value="A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Claim" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="financial.billing" />
      </mapping>
    </element>
    <element>
      <path value="Claim.type" />
      <short value="institutional | oral | pharmacy | professional | vision" />
      <definition value="The category of claim this is." />
      <comments value="Affects which fields and value sets are used." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <fixedCode value="institutional " />
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="The type or discipline-style of the claim." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-type-link" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Diagnosis" />
      </extension>
      <path value="Claim.diagnosis" />
      <short value="Diagnosis" />
      <definition value="Ordered list of patient diagnosis for which care is sought." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
    </element>
    <element>
      <path value="Claim.diagnosis.sequence" />
      <short value="Sequence of diagnosis" />
      <definition value="Sequence of diagnosis which serves to order and provide a link." />
      <requirements value="Required to maintain order of the diagnoses." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="positiveInt" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
    </element>
    <element>
      <path value="Claim.diagnosis.diagnosis" />
      <short value="Patient's list of diagnosis" />
      <definition value="The diagnosis." />
      <requirements value="Required to adjudicate services rendered to condition presented." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <binding>
        <strength value="example" />
        <description value="ICD10 diagnostic codes." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/icd-10" />
        </valueSetReference>
      </binding>
    </element>
    <element>
      <path value="Claim.diagnosis.diagnosis.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comments value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element>
      <path value="Claim.diagnosis.diagnosis.code" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element>
      <path value="Claim.diagnosis.diagnosis.display" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system." />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element>
      <path value="Claim.patient" />
      <short value="The subject of the Products and Services" />
      <definition value="Patient Resource." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
    </element>
    <element>
      <path value="Claim.patient.reference" />
      <short value="Relative, internal or absolute URL reference" />
      <definition value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." />
      <comments value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure &quot;/[type]/[id]&quot; then it should be assumed that the reference is to a FHIR RESTful server." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <condition value="ref-1" />
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Claim.patient.display" />
      <short value="Text alternative for the resource" />
      <definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
      <comments value="This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>