{
  "resourceType": "StructureDefinition",
  "id": "ext-Claim-ReceiptPatient",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Claim-ReceiptPatient",
  "name": "ClaimReceiptPatient",
  "title": "Claim Receipt Patient",
  "status": "active",
  "experimental": false,
  "description": "The patient associated with a specific receipt in the scope of a claim",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Claim.item"
    },
    {
      "type": "element",
      "expression": "ExplanationOfBenefit.item"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "The patient associated with a specific receipt in the scope of a claim",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://bpcs.exchange/fhir/StructureDefinition/ext-Claim-ReceiptPatient"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Reference-rest"
            ],
            "targetProfile": [
              "https://bpcs.exchange/fhir/StructureDefinition/profile-Patient-create"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "BPCS",
            "map": "ReceiptDTO.odbNum"
          }
        ]
      }
    ]
  }
}