PackagesCanonicalsLogsProblems
    Packages
    cezih.hr.condition-management@0.2.1
    http://ent.hr/fhir/StructureDefinition/ehe-hi-management-audit-event
{
  "description": "Specifikacija strukture revizijskog zapisa usluge upravljanja zdravstvenim slučajevima pacijenta",
  "_filename": "StructureDefinition-ehe-hi-management-audit-event.json",
  "package_name": "cezih.hr.condition-management",
  "date": null,
  "derivation": "constraint",
  "meta": {
    "source": "#l75sfFphrVnbXuQo",
    "security": [ {
      "code": "everyone^read",
      "system": "https://trifolia-fhir.lantanagroup.com/security"
    }, {
      "code": "everyone^write",
      "system": "https://trifolia-fhir.lantanagroup.com/security"
    } ],
    "versionId": "48",
    "lastUpdated": "2023-01-04T08:05:44.730+00:00"
  },
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "EHEHealthIssueManagementAuditEvent",
  "abstract": false,
  "type": "AuditEvent",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "Health Issue Management service Audit Event",
  "package_version": "0.2.1",
  "status": "active",
  "id": "4056c361-1000-419f-b499-7207c4df4e4e",
  "kind": "resource",
  "url": "http://ent.hr/fhir/StructureDefinition/ehe-hi-management-audit-event",
  "version": "0.1",
  "differential": {
    "element": [ {
      "id": "AuditEvent",
      "path": "AuditEvent",
      "constraint": [ {
        "key": "hi-1",
        "human": "Vrsta revizijskog zapisa mora odgovarati podvrsti",
        "severity": "error",
        "expression": "iif(subtype.code='2.3' or subtype.code='2.4' or subtype.code='2.5' or subtype.code='2.6'  or subtype.code='2.8'  or subtype.code='2.9', type.code='amend', true) and iif(subtype.code='2.1' or subtype.code='2.2', type.code='originate', true) and iif(subtype.code='2.7', type.code='destroy', true)"
      } ]
    }, {
      "id": "AuditEvent.type",
      "path": "AuditEvent.type",
      "short": "Vrsta revizijskog zapisa",
      "binding": {
        "strength": "required"
      }
    }, {
      "id": "AuditEvent.subtype",
      "max": "1",
      "min": 1,
      "path": "AuditEvent.subtype",
      "short": "Podvrsta revizijskog zapisa",
      "binding": {
        "strength": "required",
        "valueSet": "http://ent.hr/fhir/ValueSet/health-issue-management-message-types"
      },
      "definition": "Podvrsta revizijskog zapisa odgovara vrsti poruke zahtjeva koji je poslan usluzi za upravljanje slučajevima"
    }, {
      "id": "AuditEvent.action",
      "min": 1,
      "path": "AuditEvent.action",
      "binding": {
        "strength": "required"
      }
    }, {
      "id": "AuditEvent.outcome",
      "min": 1,
      "path": "AuditEvent.outcome"
    }, {
      "id": "AuditEvent.agent",
      "max": "*",
      "path": "AuditEvent.agent",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "type",
          "type": "value"
        } ]
      }
    }, {
      "id": "AuditEvent.agent:source",
      "max": "1",
      "path": "AuditEvent.agent",
      "sliceName": "source"
    }, {
      "id": "AuditEvent.agent:source.type",
      "min": 1,
      "path": "AuditEvent.agent.type",
      "fixedCodeableConcept": {
        "coding": [ {
          "code": "110153",
          "system": "http://dicom.nema.org/resources/ontology/DCM",
          "display": "Source Role ID"
        } ]
      }
    }, {
      "id": "AuditEvent.agent:source.who",
      "min": 1,
      "path": "AuditEvent.agent.who",
      "short": "Identifikator autenticiranog korisnika (JWT token). Može biti krajnji korisnik (Zdravstveni djelatnik) ili Informacijski sustav"
    }, {
      "id": "AuditEvent.agent:source.who.type",
      "min": 0,
      "path": "AuditEvent.agent.who.type",
      "short": "Upisuje se samo u slučaju krajnjeg korisnika (zdravstveni djelatnik ili pacijent) u slučaju informacijskog sustava se ne upisuje",
      "constraint": [ {
        "key": "hi-2",
        "human": "Tip može biti samo zdravstveni djelatnik (Practitioner) ili pacijent (Patient)",
        "severity": "error",
        "expression": "iif($this='Patient' or $this='Practitioner', true, false)"
      } ]
    }, {
      "id": "AuditEvent.agent:source.who.identifier",
      "min": 1,
      "path": "AuditEvent.agent.who.identifier"
    }, {
      "id": "AuditEvent.agent:source.requestor",
      "path": "AuditEvent.agent.requestor",
      "fixedBoolean": true
    }, {
      "id": "AuditEvent.agent:source.network",
      "min": 1,
      "path": "AuditEvent.agent.network"
    }, {
      "id": "AuditEvent.agent:source.network.address",
      "min": 1,
      "path": "AuditEvent.agent.network.address",
      "short": "Identifikator aplikacije/servisa ili IP adresa vanjskog sustava"
    }, {
      "id": "AuditEvent.agent:source.network.type",
      "min": 1,
      "path": "AuditEvent.agent.network.type",
      "short": "“5\" (URI) or \"2\" (IP address)"
    }, {
      "id": "AuditEvent.agent:destination",
      "max": "1",
      "path": "AuditEvent.agent",
      "sliceName": "destination"
    }, {
      "id": "AuditEvent.agent:destination.type",
      "path": "AuditEvent.agent.type",
      "fixedCodeableConcept": {
        "coding": [ {
          "code": "110152",
          "system": "http://dicom.nema.org/resources/ontology/DCM",
          "display": "Destination Role ID"
        } ]
      }
    }, {
      "id": "AuditEvent.agent:destination.who",
      "min": 1,
      "path": "AuditEvent.agent.who",
      "short": "ID usluge Upravljanje slučajevima"
    }, {
      "id": "AuditEvent.agent:destination.who.type",
      "max": "0",
      "min": 0,
      "path": "AuditEvent.agent.who.type"
    }, {
      "id": "AuditEvent.agent:destination.who.identifier",
      "min": 1,
      "path": "AuditEvent.agent.who.identifier"
    }, {
      "id": "AuditEvent.agent:destination.requestor",
      "path": "AuditEvent.agent.requestor"
    }, {
      "id": "AuditEvent.agent:destination.network",
      "min": 1,
      "path": "AuditEvent.agent.network"
    }, {
      "id": "AuditEvent.agent:destination.network.address",
      "min": 1,
      "path": "AuditEvent.agent.network.address",
      "short": "ID usluge Upravljanje slučajevima"
    }, {
      "id": "AuditEvent.agent:destination.network.type",
      "min": 1,
      "path": "AuditEvent.agent.network.type",
      "fixedCode": "5"
    }, {
      "id": "AuditEvent.source",
      "path": "AuditEvent.source",
      "short": "Aplikacija koja je izradila revizijski zapis"
    }, {
      "id": "AuditEvent.source.observer",
      "path": "AuditEvent.source.observer",
      "short": "Identifikator aplikacije upravljanja slučajevima"
    }, {
      "id": "AuditEvent.source.observer.type",
      "max": "0",
      "path": "AuditEvent.source.observer.type"
    }, {
      "id": "AuditEvent.source.observer.identifier",
      "min": 1,
      "path": "AuditEvent.source.observer.identifier"
    }, {
      "id": "AuditEvent.entity",
      "path": "AuditEvent.entity",
      "short": "Informacije o slučaju na koji se odnosi revizijski zapis"
    }, {
      "id": "AuditEvent.entity.what",
      "min": 1,
      "path": "AuditEvent.entity.what",
      "short": "Jedinstveni identifikator slučaja (ID kojeg dodjeljuje usluga)"
    }, {
      "id": "AuditEvent.entity.what.type",
      "min": 1,
      "path": "AuditEvent.entity.what.type",
      "fixedUri": "Condition"
    }, {
      "id": "AuditEvent.entity.what.identifier",
      "min": 1,
      "path": "AuditEvent.entity.what.identifier"
    }, {
      "id": "AuditEvent.entity.type",
      "min": 1,
      "path": "AuditEvent.entity.type",
      "fixedCoding": {
        "code": "Condition",
        "system": "http://hl7.org/fhir/resource-types",
        "display": "Condition"
      }
    }, {
      "id": "AuditEvent.entity.role",
      "min": 1,
      "path": "AuditEvent.entity.role",
      "fixedCoding": {
        "code": "4",
        "system": "http://terminology.hl7.org/CodeSystem/object-role",
        "display": "Domain Resource"
      }
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AuditEvent"
}