{
  "resourceType": "StructureDefinition",
  "url": "https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSIoptIn",
  "name": "ConsentSIoptIn",
  "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.identifier.system",
        "path": "Consent.identifier.system",
        "fixedUri": "urn:nijz:crpp:consentId"
      },
      {
        "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-in"
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "fixedString": "opt-in"
      },
      {
        "id": "Consent.category.text",
        "path": "Consent.category.text",
        "fixedString": "opt-in"
      },
      {
        "id": "Consent.organization.display",
        "path": "Consent.organization.display",
        "example": [
          {
            "label": "RepositoryUniqueID",
            "valueString": "2.16.840.1.113883.3.711.2.1.4.5.04201"
          }
        ]
      },
      {
        "id": "Consent.source[x].contentType",
        "path": "Consent.source[x].contentType",
        "max": "0"
      },
      {
        "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].url",
        "path": "Consent.source[x].url",
        "example": [
          {
            "label": "example",
            "valueUrl": "urn:uuid:50b54268-464c-4f78-82ee-90e76bae0a16"
          }
        ]
      },
      {
        "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": "64292-6 Dovoljenje za dostop do dokumentacije"
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "fixedCode": "permit"
      },
      {
        "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"
      }
    ]
  }
}