{
  "resourceType": "StructureDefinition",
  "id": "hr-reactivate-allergy-message",
  "url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-reactivate-allergy-message",
  "version": "0.1",
  "name": "HRReactivateAllergyMessage",
  "title": "Poruka zahtjeva za ponovnom aktivacijom zapisa o alergiji/intoleranciji",
  "status": "draft",
  "date": "2026-08-26",
  "publisher": "Ericsson Nikola Tesla d.d.",
  "description": "Ovaj profil definira sadržaj poruke zahtjeva za ponovnom aktivacijom zapisa o alergiji/intoleranciji. Koristi se za ponovnu aktivaciju zapisa koji je prethodno bio postavljen u status \"entered-in-error\" (verificationStatus).",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "HR",
          "display": "Croatia"
        }
      ],
      "text": "Croatia"
    }
  ],
  "copyright": "Ericsson Nikola Tesla d.d.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-request-message",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "ordered": false,
          "rules": "closed"
        },
        "min": 2,
        "max": "2"
      },
      {
        "id": "Bundle.entry:MessageHeader",
        "path": "Bundle.entry",
        "sliceName": "MessageHeader",
        "short": "Zaglavlje poruke",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:MessageHeader.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "MessageHeader",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-allergy-management-message-header"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.event[x]",
        "path": "Bundle.entry.resource.event[x]",
        "fixedCoding": {
          "system": "http://fhir.cezih.hr/specifikacije/CodeSystem/message-types",
          "code": "5.5",
          "display": "Ponovna aktivacija alergije"
        }
      },
      {
        "id": "Bundle.entry:MessageHeader.resource.author",
        "path": "Bundle.entry.resource.author",
        "min": 1
      },
      {
        "id": "Bundle.entry:AllergyIntolerance",
        "path": "Bundle.entry",
        "sliceName": "AllergyIntolerance",
        "short": "Podatci o alergiji",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "AllergyIntolerance",
            "profile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/HRAllergyIntolerance"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.identifier",
        "path": "Bundle.entry.resource.identifier",
        "slicing": {
          "description": "Discriminator je definiran u profilu HRAllergyIntolerance",
          "rules": "closed"
        }
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.identifier:jedinstveni-identifikator",
        "path": "Bundle.entry.resource.identifier",
        "sliceName": "jedinstveni-identifikator",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.clinicalStatus",
        "path": "Bundle.entry.resource.clinicalStatus",
        "max": "0"
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.type",
        "path": "Bundle.entry.resource.type",
        "short": "Tip - alergija ili intolerancija"
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.onset[x]",
        "path": "Bundle.entry.resource.onset[x]",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.recorder",
        "path": "Bundle.entry.resource.recorder",
        "short": "Zdravstveni djelatnik",
        "definition": "Zdravstveni djelatnik koji je zabilježio alergiju/intoleranciju",
        "min": 1
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.asserter",
        "path": "Bundle.entry.resource.asserter",
        "short": "Izvor informacije o alergiji",
        "definition": "Ukoliko je potrebno moguće je zabilježiti izvor informacije o alergiji (liječnik, pacijent). Preduvjet je da zapis o izvoru informacije (Patient, Practitioner) postoji u FHIR serveru Podsustava 1.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.reaction.manifestation.coding",
        "path": "Bundle.entry.resource.reaction.manifestation.coding",
        "short": "Kodirana vrijednost",
        "definition": "Kodirana vrijednost manifestacije/reakcije alergije."
      },
      {
        "id": "Bundle.entry:AllergyIntolerance.resource.reaction.manifestation.text",
        "path": "Bundle.entry.resource.reaction.manifestation.text",
        "short": "Tekstualni opis koncepta.",
        "definition": "Prikaz koncepta na ljudskom jeziku kako ga vidi/odabire/izgovara korisnik koji je unio podatke i/ili koji predstavlja namjeravano značenje korisnika."
      }
    ]
  }
}