{
  "resourceType": "StructureDefinition",
  "url": "http://medico-emr.net/stu3/sd/Coverage-Base-1",
  "name": "Coverage-Base-1",
  "status": "draft",
  "description": "Base definition for coverage resources in medico",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Coverage",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage.id",
        "path": "Coverage.id",
        "min": 1
      },
      {
        "id": "Coverage.meta",
        "path": "Coverage.meta",
        "min": 1
      },
      {
        "id": "Coverage.meta.id",
        "path": "Coverage.meta.id",
        "max": "0"
      },
      {
        "id": "Coverage.meta.versionId",
        "path": "Coverage.meta.versionId",
        "max": "0"
      },
      {
        "id": "Coverage.meta.lastUpdated",
        "path": "Coverage.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Coverage.meta.profile",
        "path": "Coverage.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.meta.security",
        "path": "Coverage.meta.security",
        "max": "0"
      },
      {
        "id": "Coverage.meta.tag",
        "path": "Coverage.meta.tag",
        "max": "0"
      },
      {
        "id": "Coverage.implicitRules",
        "path": "Coverage.implicitRules",
        "max": "0"
      },
      {
        "id": "Coverage.language",
        "path": "Coverage.language",
        "max": "0"
      },
      {
        "id": "Coverage.text",
        "path": "Coverage.text",
        "max": "0"
      },
      {
        "id": "Coverage.contained",
        "path": "Coverage.contained",
        "max": "0"
      },
      {
        "id": "Coverage.identifier",
        "path": "Coverage.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "value"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.identifier:medicoResourceId",
        "path": "Coverage.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Coverage.status",
        "path": "Coverage.status",
        "max": "0"
      },
      {
        "id": "Coverage.type",
        "path": "Coverage.type",
        "min": 1
      },
      {
        "id": "Coverage.type.id",
        "path": "Coverage.type.id",
        "max": "0"
      },
      {
        "id": "Coverage.type.coding",
        "path": "Coverage.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.type.coding.id",
        "path": "Coverage.type.coding.id",
        "max": "0"
      },
      {
        "id": "Coverage.type.coding.system",
        "path": "Coverage.type.coding.system",
        "min": 1
      },
      {
        "id": "Coverage.type.coding.version",
        "path": "Coverage.type.coding.version",
        "max": "0"
      },
      {
        "id": "Coverage.type.coding.code",
        "path": "Coverage.type.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.type.coding.display",
        "max": "0"
      },
      {
        "id": "Coverage.type.coding.userSelected",
        "path": "Coverage.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Coverage.type.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.type.text",
        "max": "0"
      },
      {
        "id": "Coverage.policyHolder",
        "path": "Coverage.policyHolder",
        "max": "0"
      },
      {
        "id": "Coverage.subscriber",
        "path": "Coverage.subscriber",
        "max": "0"
      },
      {
        "id": "Coverage.beneficiary",
        "path": "Coverage.beneficiary",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Patient-Patient-1"
          }
        ]
      },
      {
        "id": "Coverage.beneficiary.reference",
        "path": "Coverage.beneficiary.reference",
        "min": 1
      },
      {
        "id": "Coverage.relationship",
        "path": "Coverage.relationship",
        "min": 1
      },
      {
        "id": "Coverage.relationship.id",
        "path": "Coverage.relationship.id",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.coding",
        "path": "Coverage.relationship.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Coverage.relationship.coding.id",
        "path": "Coverage.relationship.coding.id",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.coding.system",
        "path": "Coverage.relationship.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/policyholder-relationship"
      },
      {
        "id": "Coverage.relationship.coding.version",
        "path": "Coverage.relationship.coding.version",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.coding.code",
        "path": "Coverage.relationship.coding.code",
        "min": 1
      },
      {
        "id": "Coverage.relationship.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.relationship.coding.display",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.coding.userSelected",
        "path": "Coverage.relationship.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.relationship.text",
        "max": "0"
      },
      {
        "id": "Coverage.period",
        "path": "Coverage.period",
        "definition": "Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.\r\nmedico: x1150cog.datf, datt",
        "min": 1
      },
      {
        "id": "Coverage.period.id",
        "path": "Coverage.period.id",
        "max": "0"
      },
      {
        "id": "Coverage.period.start",
        "path": "Coverage.period.start",
        "min": 1
      },
      {
        "id": "Coverage.payor",
        "path": "Coverage.payor",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/sd/Organization-Insurance-1"
          },
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Patient-Patient-1"
          }
        ]
      },
      {
        "id": "Coverage.payor.id",
        "path": "Coverage.payor.id",
        "max": "0"
      },
      {
        "id": "Coverage.payor.reference",
        "path": "Coverage.payor.reference",
        "min": 1
      },
      {
        "id": "Coverage.payor.identifier",
        "path": "Coverage.payor.identifier",
        "max": "0"
      },
      {
        "id": "Coverage.payor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Coverage.payor.display",
        "max": "0"
      },
      {
        "id": "Coverage.grouping",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Group"
          }
        ],
        "path": "Coverage.grouping",
        "max": "0"
      },
      {
        "id": "Coverage.dependent",
        "path": "Coverage.dependent",
        "max": "0"
      },
      {
        "id": "Coverage.sequence",
        "path": "Coverage.sequence",
        "max": "0"
      },
      {
        "id": "Coverage.order",
        "path": "Coverage.order",
        "max": "0"
      },
      {
        "id": "Coverage.network",
        "path": "Coverage.network",
        "max": "0"
      },
      {
        "id": "Coverage.contract",
        "path": "Coverage.contract",
        "max": "0"
      }
    ]
  }
}