{
  "resourceType": "StructureDefinition",
  "id": "sgp-nalaz",
  "meta": {
    "versionId": "16",
    "lastUpdated": "2023-06-06T15:15:56.228+00:00",
    "source": "#gigXBwZb7w52wzy1"
  },
  "url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/sgp-nalaz",
  "version": "0.2.4",
  "name": "SGPNalaz",
  "title": "Struktura dokumenta SGP nalaz",
  "status": "active",
  "date": "2024-03-26T10:17:48+00:00",
  "publisher": "Ericsson Nikola Tesla d.d.",
  "description": "Dokument sadrži SGP nalaz.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "HR",
          "display": "Croatia"
        }
      ],
      "text": "Croatia"
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "fhirdocumentreference",
      "uri": "http://hl7.org/fhir/documentreference",
      "name": "FHIR DocumentReference"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition"
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "short": "Vrsta kliničkog dokumenta",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://fhir.cezih.hr/specifikacije/CodeSystem/document-type",
              "code": "002",
              "display": "SGP Nalaz"
            }
          ]
        }
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "short": "Pacijent",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-pacijent"
            ]
          }
        ],
        "constraint": [
          {
            "key": "pat-1",
            "severity": "error",
            "human": "Podatci o pacijentu moraju sadržavati spol pacijenta",
            "expression": "$this.resolve().gender.exists()"
          },
          {
            "key": "pat-2",
            "severity": "error",
            "human": "Podatci o pacijentu moraju sadržavati datum rođenja pacijenta",
            "expression": "$this.resolve().birthDate.exists()"
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-document-encounter-base"
            ]
          }
        ]
      },
      {
        "id": "Composition.date",
        "path": "Composition.date",
        "short": "Datum i vrijeme generiranja dokumenta"
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Composition.author:organizacija",
        "path": "Composition.author",
        "sliceName": "organizacija",
        "short": "Ustanova autora",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-organizacija"
            ]
          }
        ]
      },
      {
        "id": "Composition.author:djelatnik",
        "path": "Composition.author",
        "sliceName": "djelatnik",
        "short": "Autor dokumenta",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Composition.title",
        "path": "Composition.title"
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Composition.section.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "SGP podaci"
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://fhir.cezih.hr/specifikacije/CodeSystem/document-section",
              "code": "13",
              "display": "SGP podaci"
            }
          ]
        }
      },
      {
        "id": "Composition.section.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Composition.section.entry:FMINalaz",
        "path": "Composition.section.entry",
        "sliceName": "FMINalaz",
        "short": "FMI Nalaz",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/fmi-nalaz"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry:FMINarudzba",
        "path": "Composition.section.entry",
        "sliceName": "FMINarudzba",
        "short": "Narudžba na FMI",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/FMI-narudzba"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry:LijecnikNarucitelj",
        "path": "Composition.section.entry",
        "sliceName": "LijecnikNarucitelj",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/lijecnik-narucitelj"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry:UstanovaNarucitelj",
        "path": "Composition.section.entry",
        "sliceName": "UstanovaNarucitelj",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/ustanova-narucitelj"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry:Uzorak",
        "path": "Composition.section.entry",
        "sliceName": "Uzorak",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/fmi-uzorak"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry:Rezultat",
        "path": "Composition.section.entry",
        "sliceName": "Rezultat",
        "short": "Stavke FMI nalaza",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.cezih.hr/specifikacije/StructureDefinition/fmi-rezultat"
            ]
          }
        ]
      }
    ]
  }
}