{
  "resourceType": "StructureDefinition",
  "id": "zd-coverage",
  "url": "http://zorgdomein.nl/fhir/StructureDefinition/zd-coverage",
  "version": "1",
  "name": "ZD Coverage",
  "status": "draft",
  "date": "2017-03-01T11:00:00+00:00",
  "publisher": "ZorgDomein",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://zorgdomein.nl"
        },
        {
          "system": "email",
          "value": "io@zorgdomein.nl"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Coverage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage",
        "path": "Coverage",
        "mustSupport": true
      },
      {
        "id": "Coverage.identifier",
        "path": "Coverage.identifier",
        "short": "The policy number of the insurance of the patient (fallback)"
      },
      {
        "id": "Coverage.subscriber",
        "path": "Coverage.subscriber",
        "short": "The insured person",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Coverage.subscriberId",
        "path": "Coverage.subscriberId",
        "short": "The policy number of the insurance of the patient",
        "mustSupport": true
      },
      {
        "id": "Coverage.payor",
        "path": "Coverage.payor",
        "short": "The insurance company issuing the policy",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ],
        "constraint": [
          {
            "key": "zd-cov-1",
            "severity": "error",
            "human": "At least an identifier or a display value for the insurance company must be present",
            "expression": "identifier.exists() or display.exists()"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Coverage.payor.identifier",
        "path": "Coverage.payor.identifier",
        "short": "UZOVI-code of insurance company"
      },
      {
        "id": "Coverage.payor.identifier.system",
        "path": "Coverage.payor.identifier.system",
        "min": 1,
        "fixedUri": "http://nictiz.nl/fhir/NamingSystem/uzovi"
      },
      {
        "id": "Coverage.payor.identifier.value",
        "path": "Coverage.payor.identifier.value",
        "min": 1
      },
      {
        "id": "Coverage.payor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.payor.display",
        "short": "Name of insurance company"
      }
    ]
  }
}