{
"description": "Osnovni podatci svih FHIR dokumenata. Svi FHIR dokumenti moraju zadovoljavati sve zahtjeve ove specifikacije",
"_filename": "StructureDefinition-hr-document.json",
"package_name": "cezih.hr.cezih-osnova",
"date": "2022-09-28",
"derivation": "constraint",
"meta": {
"source": "#NSJ8M5Kz0Q0jyTyB",
"versionId": "36",
"lastUpdated": "2025-05-07T15:04:50.0630684+00:00"
},
"publisher": null,
"fhirVersion": "4.0.1",
"jurisdiction": [ {
"text": "Croatia",
"coding": [ {
"code": "HR",
"system": "urn:iso:std:iso:3166",
"display": "Croatia"
} ]
} ],
"name": "HRDocument",
"mapping": [ {
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping",
"identity": "v2"
}, {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
}, {
"uri": "http://hl7.org/v3/cda",
"name": "CDA (R2)",
"identity": "cda"
}, {
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping",
"identity": "w5"
} ],
"abstract": false,
"type": "Bundle",
"experimental": "false",
"resourceType": "StructureDefinition",
"title": "Osnovni podatci FHIR Dokumenata",
"package_version": "0.2.9",
"status": "active",
"id": "ffced632-d798-4bff-856d-1ba64982c5fe",
"kind": "resource",
"url": "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-document",
"version": "0.2.3",
"differential": {
"element": [ {
"id": "Bundle",
"path": "Bundle",
"constraint": [ {
"key": "DOC-1",
"human": "Document must be signed by author of document",
"severity": "error",
"expression": "iif(Bundle.entry.resource.ofType(Composition).type.coding.code.subsetOf('001'|'002'|'003'|'009'|'010'), Bundle.entry.resource.ofType(Composition).author.resolve().ofType(Practitioner) = Bundle.signature.who.resolve(), true)"
}, {
"key": "DOC-4",
"human": "Document must be signed by the attester of the document",
"severity": "error",
"expression": "iif(Bundle.entry.resource.ofType(Composition).type.coding.code.subsetOf('004'|'005'|'006'|'007'|'011'|'012'|'013'), Bundle.entry.resource.ofType(Composition).attester.party.resolve().ofType(Practitioner) = Bundle.signature.who.resolve(), true)"
} ]
}, {
"id": "Bundle.language",
"path": "Bundle.language",
"short": "Jezik dokumenta"
}, {
"id": "Bundle.identifier",
"min": 1,
"path": "Bundle.identifier",
"short": "Jedinstveni identifikator dokumenta",
"constraint": [ {
"key": "DOC-2",
"human": "Document identifier must be in OID format ad begin with urn:oid:([1-9][0-9]{0,3}|0){1,4}(\\\\.([1-9][0-9]{0,32}|0)){5,13}$",
"severity": "error",
"expression": "value.matches(\"^urn:oid:.*\")"
} ],
"definition": "Ovaj identifikator jedinstveno definira dokument i njegovu verziju. Ukoliko je potrebno kreirati novu verziju dokumenta novoj verziji dokumenta se dodjeljuje novi identifikator i u zaglavlju dokumenta (Composition) se definira koju verziju dokumenta zamjenjuje ova verzija). Format identifikatora je OID.\nKorištenjem ovog idewntifikatora moguće je dohvatiti dokument iz repozitorija dokumenata"
}, {
"id": "Bundle.identifier.system",
"min": 1,
"path": "Bundle.identifier.system",
"fixedUri": "urn:ietf:rfc:3986"
}, {
"id": "Bundle.identifier.value",
"min": 1,
"path": "Bundle.identifier.value"
}, {
"id": "Bundle.type",
"path": "Bundle.type",
"short": "Vrsta Bundle resursa",
"fixedCode": "document",
"definition": "Definira što predstavlja resurs Bundle. U ovom slučaju predstavlja FHIR dokument"
}, {
"id": "Bundle.timestamp",
"min": 1,
"path": "Bundle.timestamp",
"short": "Vrijeme kreiranja dokumenta"
}, {
"id": "Bundle.signature",
"min": 1,
"path": "Bundle.signature",
"short": "Digitalni potpis dokumenta"
}, {
"id": "Bundle.signature.type",
"max": "1",
"path": "Bundle.signature.type",
"short": "Definira vrstu digitalnog potpisa",
"definition": "Definira da je potpisnik poruke autor",
"fixedCoding": {
"code": "1.2.840.10065.1.12.1.1",
"system": "urn:iso-astm:E1762-95:2013"
}
}, {
"id": "Bundle.signature.when",
"path": "Bundle.signature.when",
"short": "Vrijeme kreiranja digitalnog potpisa dokumenta"
}, {
"id": "Bundle.signature.who",
"path": "Bundle.signature.who",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://fhir.cezih.hr/specifikacije/StructureDefinition/hr-practitioner" ]
} ],
"short": "Referenca na potpisnika dokumenta",
"constraint": [ {
"key": "DOC-3",
"human": "Local reference must be used to specify signer of document",
"severity": "error",
"expression": "reference.matches(\"^urn:uuid:.*\")"
} ],
"definition": "Potpisnik dokumenta je jednak autoru poruke navedenom u Composition.author atributu. Koristi se logička referenca (identifikator-MBO)"
}, {
"id": "Bundle.signature.who.reference",
"min": 1,
"path": "Bundle.signature.who.reference"
}, {
"id": "Bundle.signature.who.type",
"max": "0",
"path": "Bundle.signature.who.type"
}, {
"id": "Bundle.signature.who.identifier",
"max": "0",
"path": "Bundle.signature.who.identifier"
}, {
"id": "Bundle.signature.onBehalfOf",
"max": "0",
"path": "Bundle.signature.onBehalfOf"
}, {
"id": "Bundle.signature.targetFormat",
"max": "0",
"path": "Bundle.signature.targetFormat"
}, {
"id": "Bundle.signature.sigFormat",
"max": "0",
"path": "Bundle.signature.sigFormat"
}, {
"id": "Bundle.signature.data",
"min": 1,
"path": "Bundle.signature.data",
"short": "Digitalni potpis"
} ]
},
"contact": [ {
"name": "Krešimir Kerš",
"telecom": [ {
"value": "kresimir.kers@ericsson.com",
"system": "email"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle"
}