{
  "resourceType": "StructureDefinition",
  "url": "https://nijz.si/rdsp/fhir/StructureDefinition/ConsentSItreatment",
  "name": "ConsentSItreatment",
  "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": "treatment"
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "fixedString": "treatment"
      },
      {
        "id": "Consent.performer",
        "path": "Consent.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/CareTeam"
            ]
          }
        ]
      },
      {
        "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": "TREAT"
      },
      {
        "id": "Consent.provision.purpose.display",
        "path": "Consent.provision.purpose.display",
        "fixedString": "treatment"
      }
    ]
  }
}