{
  "resourceType": "StructureDefinition",
  "id": "ext-ExplanationOfBenefit-Claim",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-ExplanationOfBenefit-Claim",
  "name": "ExplanationOfBenefitClaim",
  "title": "Explanation of Benefit Claim",
  "status": "active",
  "experimental": false,
  "description": "Indicates the Claim this receipt is extracted from",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "ExplanationOfBenefit.item"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Application ID / ODB Number; Latest Received Date; Batch Sequence Number",
        "definition": "Indicates when the unique receipt associated with the Claim item",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://bpcs.exchange/fhir/StructureDefinition/ext-ExplanationOfBenefit-Claim"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "comment": "The claim id is the concatenation of either the odbNum or the applicationNum with '-' lastReceivedDate '-' seqNo. If 'lastReceivedDate' and 'seqNo' are missing then the hyphenation(s) will be kept.",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "ReceiptDTO.receivedDate, ReceiptDTO.seqNo, ReceiptRecordDTO.batchSeqNo"
          }
        ]
      }
    ]
  }
}