{
  "resourceType": "StructureDefinition",
  "url": "https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSIoptOut",
  "name": "ConsentSIoptOut",
  "status": "draft",
  "fhirVersion": "4.1.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSI",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "fixedUri": "urn:nijz:crpp:consentcategory"
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "fixedCode": "opt-out"
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "fixedString": "opt-out"
      },
      {
        "id": "Consent.source[x].contentType",
        "path": "Consent.source[x].contentType",
        "fixedCode": "application/pdf"
      },
      {
        "id": "Consent.source[x].language",
        "path": "Consent.source[x].language",
        "max": "0"
      },
      {
        "id": "Consent.source[x].data",
        "path": "Consent.source[x].data",
        "max": "0"
      },
      {
        "id": "Consent.source[x].size",
        "path": "Consent.source[x].size",
        "max": "0"
      },
      {
        "id": "Consent.source[x].hash",
        "path": "Consent.source[x].hash",
        "max": "0"
      },
      {
        "id": "Consent.source[x].title",
        "path": "Consent.source[x].title",
        "fixedString": "57016-8 Izjava o zasebnosti"
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "fixedCode": "deny"
      },
      {
        "id": "Consent.provision.action.coding.system",
        "path": "Consent.provision.action.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/consentaction"
      },
      {
        "id": "Consent.provision.action.coding.code",
        "path": "Consent.provision.action.coding.code",
        "fixedCode": "access"
      },
      {
        "id": "Consent.provision.action.coding.display",
        "path": "Consent.provision.action.coding.display",
        "fixedString": "Access"
      },
      {
        "id": "Consent.provision.purpose.system",
        "path": "Consent.provision.purpose.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActReason"
      },
      {
        "id": "Consent.provision.purpose.code",
        "path": "Consent.provision.purpose.code",
        "fixedCode": "TREAT"
      },
      {
        "id": "Consent.provision.purpose.display",
        "path": "Consent.provision.purpose.display",
        "fixedString": "treatment"
      },
      {
        "id": "Consent.provision.class",
        "path": "Consent.provision.class",
        "max": "0"
      }
    ]
  }
}