{
  "resourceType": "StructureDefinition",
  "url": "https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSIbtg",
  "name": "ConsentSIbtg",
  "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": "break-the-glass"
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "fixedString": "break-the-glass"
      },
      {
        "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": "CRPP_Emergency_Access Urgentni dostop"
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "fixedCode": "permit"
      },
      {
        "id": "Consent.provision.actor.role.coding.code",
        "path": "Consent.provision.actor.role.coding.code",
        "fixedCode": "PROV"
      },
      {
        "id": "Consent.provision.actor.role.coding.display",
        "path": "Consent.provision.actor.role.coding.display",
        "fixedString": "healthcare provider"
      },
      {
        "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/ValueSet/v3-PurposeOfUse"
      },
      {
        "id": "Consent.provision.purpose.code",
        "path": "Consent.provision.purpose.code",
        "fixedCode": "BTG"
      },
      {
        "id": "Consent.provision.purpose.display",
        "path": "Consent.provision.purpose.display",
        "fixedString": "Break the Glass"
      },
      {
        "id": "Consent.provision.class",
        "path": "Consent.provision.class",
        "max": "0"
      }
    ]
  }
}