{
  "resourceType": "StructureDefinition",
  "id": "mitz-consent-migrate",
  "language": "nl-NL",
  "url": "http://vzvz.nl/fhir/otv/StructureDefinition/mitz-consent-migrate",
  "version": "4.0.0-beta.1",
  "name": "MitzConsentMigrate",
  "status": "draft",
  "publisher": "VZVZ",
  "contact": [
    {
      "name": "VZVZ",
      "telecom": [
        {
          "system": "email",
          "value": "standaardisatie@vzvz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile is used to migrate local consents to the Mitz registry",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "NL",
          "system": "urn:iso:std:iso:3166",
          "display": "Netherlands"
        }
      ]
    }
  ],
  "copyright": "VZVZ",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://vzvz.nl/fhir/otv/StructureDefinition/mitz-base-consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "fixedCode": "active"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "comment": "PolicyRule is required therefore a fixed value to indicate the Mitz connector as provider of these consents",
        "fixedCodeableConcept": {
          "coding": [
            {
              "code": "MC",
              "system": "http://vzvz.nl/fhir/otv/CodeSystem/toestemmingbron"
            }
          ]
        }
      },
      {
        "id": "Consent.provision.actor:raadplegend",
        "path": "Consent.provision.actor",
        "sliceName": "raadplegend",
        "definition": "Consulting providers. Only applicable in migrations where consent is explicitly limited to a specific group of providers.",
        "comment": "Add a contained organization with a type set to the category of providers that is allowed"
      },
      {
        "id": "Consent.provision.purpose",
        "path": "Consent.provision.purpose",
        "short": "Kind of treatment",
        "comment": "Fixed value TREAT, because a migration is never in case of emergency",
        "fixedCoding": {
          "code": "TREAT",
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason"
        }
      },
      {
        "id": "Consent.provision.code",
        "path": "Consent.provision.code",
        "binding": {
          "strength": "required",
          "valueSet": "http://vzvz.nl/fhir/otv/ValueSet/gegevenscategorie"
        }
      }
    ]
  }
}