{
  "resourceType": "StructureDefinition",
  "id": "coverage-extended-coverage",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Financial.Support"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://fhir.health.gov.il/StructureDefinition/coverage-extended-coverage",
  "version": "0.3.0",
  "name": "CoverageExtendedCoverage",
  "title": "Coverage Extended Coverage",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "cdanetv4",
      "uri": "http://www.cda-adc.ca/en/services/cdanet/",
      "name": "Canadian Dental Association eclaims standard"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "cpha3pharm",
      "uri": "http://www.pharmacists.ca/",
      "name": "Canadian Pharmacy Associaiton eclaims standard"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Coverage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage.status",
        "path": "Coverage.status",
        "fixedCode": "active"
      },
      {
        "id": "Coverage.type",
        "path": "Coverage.type",
        "min": 1
      },
      {
        "id": "Coverage.type.coding",
        "path": "Coverage.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Coverage.type.coding:shaban",
        "path": "Coverage.type.coding",
        "sliceName": "shaban",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.type.coding:shaban.system",
        "path": "Coverage.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Coverage.type.coding:shaban.code",
        "path": "Coverage.type.coding.code",
        "fixedCode": "EHCPOL"
      },
      {
        "id": "Coverage.type.coding:shaban.display",
        "path": "Coverage.type.coding.display",
        "patternString": "extended healthcare"
      },
      {
        "id": "Coverage.type.coding:covCode",
        "path": "Coverage.type.coding",
        "sliceName": "covCode",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.outburn.co.il/ValueSet/coverage-extended-value"
        }
      },
      {
        "id": "Coverage.type.coding:covCode.system",
        "path": "Coverage.type.coding.system",
        "min": 1
      },
      {
        "id": "Coverage.type.coding:covCode.code",
        "path": "Coverage.type.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.type.coding:covCode.display",
        "path": "Coverage.type.coding.display",
        "min": 1
      },
      {
        "id": "Coverage.beneficiary",
        "path": "Coverage.beneficiary",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/patient-hmo-member"
            ]
          }
        ]
      },
      {
        "id": "Coverage.period",
        "path": "Coverage.period",
        "min": 1
      },
      {
        "id": "Coverage.period.start",
        "path": "Coverage.period.start",
        "min": 1
      },
      {
        "id": "Coverage.payor",
        "path": "Coverage.payor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-organization"
            ]
          }
        ]
      },
      {
        "id": "Coverage.costToBeneficiary.type",
        "path": "Coverage.costToBeneficiary.type",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.health.gov.il/ValueSet/coverage-copay-type-codes"
        }
      },
      {
        "id": "Coverage.costToBeneficiary.type.coding",
        "path": "Coverage.costToBeneficiary.type.coding",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.type.coding.system",
        "path": "Coverage.costToBeneficiary.type.coding.system",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.type.coding.code",
        "path": "Coverage.costToBeneficiary.type.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.type.coding.display",
        "path": "Coverage.costToBeneficiary.type.coding.display",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.type.text",
        "path": "Coverage.costToBeneficiary.type.text",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.value[x]",
        "path": "Coverage.costToBeneficiary.value[x]",
        "type": [
          {
            "code": "Money"
          }
        ]
      },
      {
        "id": "Coverage.costToBeneficiary.value[x].value",
        "path": "Coverage.costToBeneficiary.value[x].value",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.value[x].currency",
        "path": "Coverage.costToBeneficiary.value[x].currency",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.exception.type",
        "path": "Coverage.costToBeneficiary.exception.type",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.health.gov.il/ValueSet/coverage-copay-exception"
        }
      },
      {
        "id": "Coverage.costToBeneficiary.exception.type.coding",
        "path": "Coverage.costToBeneficiary.exception.type.coding",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.exception.type.coding.system",
        "path": "Coverage.costToBeneficiary.exception.type.coding.system",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.exception.type.coding.code",
        "path": "Coverage.costToBeneficiary.exception.type.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.costToBeneficiary.exception.type.coding.display",
        "path": "Coverage.costToBeneficiary.exception.type.coding.display",
        "min": 1
      }
    ]
  }
}