<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="il-core-claim-response" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="0" />
  </extension>
  <url value="http://fhir.health.gov.il/StructureDefinition/il-core-claim-response" />
  <version value="0.21.0" />
  <name value="ILCoreClaimResponse" />
  <title value="ILCore ClaimResponse Profile" />
  <status value="active" />
  <date value="2026-03-23" />
  <publisher value="Israel Core Team" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="tal.primak@moh.gov.il" />
    </telecom>
  </contact>
  <description value="Israel Core proposed constraints and extensions on the ClaimResponse Resource" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ClaimResponse" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ClaimResponse" />
  <derivation value="constraint" />
  <differential>
    <element id="ClaimResponse">
      <path value="ClaimResponse" />
      <short value="ILCore ClaimResponse Profile" />
      <definition value="Israel Core proposed constraints and extensions on the ClaimResponse resource profile." />
    </element>
    <element id="ClaimResponse.identifier">
      <path value="ClaimResponse.identifier" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.health.gov.il/StructureDefinition/il-core-identifier" />
      </type>
    </element>
    <element id="ClaimResponse.patient">
      <path value="ClaimResponse.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-patient" />
      </type>
    </element>
    <element id="ClaimResponse.insurer">
      <path value="ClaimResponse.insurer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-organization" />
      </type>
    </element>
    <element id="ClaimResponse.requestor">
      <path value="ClaimResponse.requestor" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-organization" />
      </type>
    </element>
    <element id="ClaimResponse.addItem.provider">
      <path value="ClaimResponse.addItem.provider" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-organization" />
      </type>
    </element>
    <element id="ClaimResponse.addItem.location[x]">
      <path value="ClaimResponse.addItem.location[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="ClaimResponse.addItem.location[x]:locationReference">
      <path value="ClaimResponse.addItem.location[x]" />
      <sliceName value="locationReference" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-location" />
      </type>
    </element>
    <element id="ClaimResponse.communicationRequest">
      <path value="ClaimResponse.communicationRequest" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-communication-request" />
      </type>
    </element>
    <element id="ClaimResponse.insurance.coverage">
      <path value="ClaimResponse.insurance.coverage" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-coverage" />
      </type>
    </element>
    <element id="ClaimResponse.insurance.claimResponse">
      <path value="ClaimResponse.insurance.claimResponse" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.health.gov.il/StructureDefinition/il-core-claim-response" />
      </type>
    </element>
  </differential>
</StructureDefinition>