{
  "resourceType": "StructureDefinition",
  "id": "TR02-TR06-request",
  "meta": {
    "versionId": "24",
    "lastUpdated": "2022-11-25T12:48:33.359+00:00"
  },
  "url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/TR02-TR06-request",
  "version": "0.1",
  "name": "TR02TR06Request",
  "title": "Poruka zahtjeva odobravanja uputnice (tranzicije TR02, TR06)",
  "status": "active",
  "description": "Ovaj profil definira izgled poruke za tranzicije TR02/TR06 - Uputnica je odobrena",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle"
      },
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "short": "Jedinstveni identifikator poruke.",
        "definition": "Identifikator definira pošiljatelj poruke u UUID formatu.",
        "min": 1
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "message",
        "mustSupport": true
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "rules": "closed"
        },
        "min": 3
      },
      {
        "id": "Bundle.entry:MessageHeader",
        "path": "Bundle.entry",
        "sliceName": "MessageHeader",
        "short": "Zaglavlje poruke",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:MessageHeader.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Jedinstveni identifikator zapisa u poruci",
        "definition": "Identifikator definira pošiljatelj poruke u UUID formatu. Ovaj identifikator mora biti jednak identifikatoru resursa (atribut id) koji se nalazi u zapisu (entry)",
        "min": 1
      },
      {
        "id": "Bundle.entry:MessageHeader.resource",
        "path": "Bundle.entry.resource",
        "short": "Zaglavlje poruke",
        "min": 1,
        "type": [
          {
            "code": "MessageHeader",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/specijalisticka-uputnica-message-header"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.event[x]",
        "path": "Bundle.entry.resource.event[x]",
        "short": "Kod poruke",
        "definition": "Kod poruke definira koja se tranzicija inicira porukom.",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.cezih.hr/specifikacije/ValueSet/odobravanje-uputnice"
        }
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.sender",
        "path": "Bundle.entry.resource.sender",
        "short": "Pošiljatelj poruke",
        "definition": "Referenca na organizaciju koja je pošiljatelj poruke. Za referenciranje organizacije koristi se logička referenca (identifikator - HZZO šifra zdravstvene ustanove).",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-organizacija"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.author",
        "path": "Bundle.entry.resource.author",
        "short": "Pošiljatelj poruke",
        "definition": "Referenca na zdravstvenog djelatnika koji je autor poruke. Za referenciranje zdravstvenog djelatnika koristi se logička referenca (identifikator - HZJZ šifra zdravstvenog djelatnika ili MBO)",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.source",
        "path": "Bundle.entry.resource.source"
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.focus",
        "path": "Bundle.entry.resource.focus",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resolve()"
            }
          ],
          "ordered": false,
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.focus:PorukaOdobrenja",
        "path": "Bundle.entry.resource.focus",
        "sliceName": "PorukaOdobrenja",
        "short": "Reference na zapis o odobrenju u sadržaju poruke",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/odobrenje-uputnice"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.focus:Dokument",
        "path": "Bundle.entry.resource.focus",
        "sliceName": "Dokument",
        "short": "Reference na dokumente u sadržaju poruke",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/prilozeni-dokument"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.focus:Uputnica",
        "path": "Bundle.entry.resource.focus",
        "sliceName": "Uputnica",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/specijalisticka-uputnica"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja",
        "path": "Bundle.entry",
        "sliceName": "PorukaOdobrenja",
        "short": "Poruka o odobrenju",
        "definition": "Informacije o odobrenju SGP uputnice šalju se u Communication resursu.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Jedinstveni identifikator zapisa u poruci",
        "definition": "Identifikator definira pošiljatelj poruke u UUID formatu. Ovaj identifikator mora biti jednak identifikatoru resursa (atribut id) koji se nalazi u zapisu (entry)",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja.resource",
        "path": "Bundle.entry.resource",
        "short": "Poruka odobravanja SGP uputnice",
        "min": 1,
        "type": [
          {
            "code": "Communication",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/odobrenje-uputnice"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PorukaOdobrenja.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Dokument",
        "path": "Bundle.entry",
        "sliceName": "Dokument",
        "short": "Priloženi dokument",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Dokument.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Jedinstveni identifikator zapisa u poruci",
        "definition": "Identifikator definira pošiljatelj poruke u UUID formatu. Ovaj identifikator mora biti jednak identifikatoru resursa (atribut id) koji se nalazi u zapisu (entry)",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Dokument.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "DocumentReference",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/prilozeni-dokument"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Dokument.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Dokument.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Dokument.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Uputnica",
        "path": "Bundle.entry",
        "sliceName": "Uputnica",
        "short": "Uputnica",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Uputnica.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "short": "Jedinstveni identifikator zapisa u poruci",
        "definition": "Ovaj identifikator mora biti jednak identifikatoru resursa (atribut id) koji se nalazi u zapisu (entry)",
        "min": 1
      },
      {
        "id": "Bundle.entry:Uputnica.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "ServiceRequest",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/specijalisticka-uputnica"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Uputnica.resource.identifier",
        "path": "Bundle.entry.resource.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "closed"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "Bundle.entry:Uputnica.resource.identifier:identifikatorUputnice",
        "path": "Bundle.entry.resource.identifier",
        "sliceName": "identifikatorUputnice",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Uputnica.resource.identifier:CustomerOrderNumber",
        "path": "Bundle.entry.resource.identifier",
        "sliceName": "CustomerOrderNumber",
        "max": "1"
      },
      {
        "id": "Bundle.entry:Uputnica.resource.status",
        "path": "Bundle.entry.resource.status",
        "fixedCode": "completed"
      },
      {
        "id": "Bundle.entry:Uputnica.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Uputnica.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Uputnica.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.signature.type",
        "path": "Bundle.signature.type"
      },
      {
        "id": "Bundle.signature.when",
        "path": "Bundle.signature.when"
      },
      {
        "id": "Bundle.signature.who",
        "path": "Bundle.signature.who"
      },
      {
        "id": "Bundle.signature.data",
        "path": "Bundle.signature.data",
        "min": 1
      }
    ]
  }
}