{
  "resourceType": "StructureDefinition",
  "url": "https://lab.vvis.gov.lv/fhir/StructureDefinition/Coverage/HealthServiceCoverage-v1",
  "name": "HealthServiceCoverage",
  "status": "active",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Coverage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage.identifier",
        "path": "Coverage.identifier",
        "max": "0"
      },
      {
        "id": "Coverage.type",
        "path": "Coverage.type",
        "max": "0"
      },
      {
        "id": "Coverage.policyHolder",
        "path": "Coverage.policyHolder",
        "min": 1
      },
      {
        "id": "Coverage.policyHolder.reference",
        "path": "Coverage.policyHolder.reference",
        "min": 1
      },
      {
        "id": "Coverage.policyHolder.type",
        "path": "Coverage.policyHolder.type",
        "min": 1
      },
      {
        "id": "Coverage.policyHolder.identifier",
        "path": "Coverage.policyHolder.identifier",
        "max": "0"
      },
      {
        "id": "Coverage.policyHolder.display",
        "path": "Coverage.policyHolder.display",
        "max": "0"
      },
      {
        "id": "Coverage.subscriber",
        "path": "Coverage.subscriber",
        "max": "0"
      },
      {
        "id": "Coverage.subscriberId",
        "path": "Coverage.subscriberId",
        "max": "0"
      },
      {
        "id": "Coverage.beneficiary.reference",
        "path": "Coverage.beneficiary.reference",
        "min": 1
      },
      {
        "id": "Coverage.beneficiary.type",
        "path": "Coverage.beneficiary.type",
        "min": 1,
        "fixedUri": "Patient"
      },
      {
        "id": "Coverage.beneficiary.identifier",
        "path": "Coverage.beneficiary.identifier",
        "max": "0"
      },
      {
        "id": "Coverage.beneficiary.display",
        "path": "Coverage.beneficiary.display",
        "max": "0"
      },
      {
        "id": "Coverage.dependent",
        "path": "Coverage.dependent",
        "max": "0"
      },
      {
        "id": "Coverage.relationship",
        "path": "Coverage.relationship",
        "max": "0"
      },
      {
        "id": "Coverage.period.start",
        "path": "Coverage.period.start",
        "min": 1
      },
      {
        "id": "Coverage.period.end",
        "path": "Coverage.period.end",
        "min": 1
      },
      {
        "id": "Coverage.payor.reference",
        "path": "Coverage.payor.reference",
        "min": 1
      },
      {
        "id": "Coverage.payor.type",
        "path": "Coverage.payor.type",
        "min": 1
      },
      {
        "id": "Coverage.payor.identifier",
        "path": "Coverage.payor.identifier",
        "max": "0"
      },
      {
        "id": "Coverage.payor.display",
        "path": "Coverage.payor.display",
        "max": "0"
      },
      {
        "id": "Coverage.class",
        "path": "Coverage.class",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Coverage.class:insurerCoverage",
        "path": "Coverage.class",
        "sliceName": "insurerCoverage"
      },
      {
        "id": "Coverage.class:insurerCoverage.type.coding",
        "path": "Coverage.class.type.coding",
        "max": "0"
      },
      {
        "id": "Coverage.class:insurerCoverage.type.text",
        "path": "Coverage.class.type.text",
        "fixedString": "InsuranceCompany"
      },
      {
        "id": "Coverage.class:insurerCoverage.value",
        "path": "Coverage.class.value",
        "definition": "The alphanumeric string value associated with the insurer issued label. //Policy number"
      },
      {
        "id": "Coverage.class:insurerCoverage.name",
        "path": "Coverage.class.name",
        "definition": "A short description for the class. //Policy name"
      },
      {
        "id": "Coverage.class:nhsCoverage",
        "path": "Coverage.class",
        "sliceName": "nhsCoverage"
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding",
        "path": "Coverage.class.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding.system",
        "path": "Coverage.class.type.coding.system",
        "min": 1,
        "fixedUri": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.163"
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding.version",
        "path": "Coverage.class.type.coding.version",
        "max": "0"
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding.code",
        "path": "Coverage.class.type.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding.display",
        "path": "Coverage.class.type.coding.display",
        "min": 1
      },
      {
        "id": "Coverage.class:nhsCoverage.type.coding.userSelected",
        "path": "Coverage.class.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Coverage.class:nhsCoverage.type.text",
        "path": "Coverage.class.type.text",
        "max": "0"
      },
      {
        "id": "Coverage.class:nhsCoverage.value",
        "path": "Coverage.class.value",
        "definition": "The alphanumeric string value associated with the insurer issued label. //Manipulation code"
      },
      {
        "id": "Coverage.class:nhsCoverage.name",
        "path": "Coverage.class.name",
        "definition": "A short description for the class. //Manipulation name",
        "min": 1
      },
      {
        "id": "Coverage.order",
        "path": "Coverage.order",
        "max": "0"
      },
      {
        "id": "Coverage.network",
        "path": "Coverage.network",
        "max": "0"
      },
      {
        "id": "Coverage.costToBeneficiary",
        "path": "Coverage.costToBeneficiary",
        "max": "0"
      },
      {
        "id": "Coverage.subrogation",
        "path": "Coverage.subrogation",
        "max": "0"
      },
      {
        "id": "Coverage.contract",
        "path": "Coverage.contract",
        "max": "0"
      }
    ]
  }
}