{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/HRCancelDocumentBundle",
  "name": "HRCancelDocumentBundle",
  "status": "draft",
  "description": "HRCancelDocumentBundle definira strukturu FHIR poruke tipa transaction kojom se stornira dokument ranije registriran u CEZIH.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://fhir.cezih.hr/specifikacije/StructureDefinition/HRMinimalProvideDocumentBundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "max": "0"
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "min": 2,
        "max": "2"
      },
      {
        "id": "Bundle.entry:SubmissionSet",
        "path": "Bundle.entry",
        "sliceName": "SubmissionSet"
      },
      {
        "id": "Bundle.entry:SubmissionSet.resource.entry",
        "path": "Bundle.entry.resource.entry",
        "short": "Entries u listi.",
        "definition": "Referenca na DocumentReference resurs koji se nalazi u Bundlu."
      },
      {
        "id": "Bundle.entry:SubmissionSet.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:SubmissionSet.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DocumentRefs",
        "path": "Bundle.entry",
        "sliceName": "DocumentRefs"
      },
      {
        "id": "Bundle.entry:DocumentRefs.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DocumentRefs.resource.masterIdentifier",
        "path": "Bundle.entry.resource.masterIdentifier",
        "definition": "Glavni identifikator dokumenta. Identifikator mora imati jednaku vrijednost kao kod dokumenta koji se stornira."
      },
      {
        "id": "Bundle.entry:DocumentRefs.resource.status",
        "path": "Bundle.entry.resource.status",
        "fixedCode": "entered-in-error"
      },
      {
        "id": "Bundle.entry:DocumentRefs.resource.type",
        "path": "Bundle.entry.resource.type",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentRefs.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DocumentRefs.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Documents",
        "path": "Bundle.entry",
        "sliceName": "Documents",
        "max": "0"
      },
      {
        "id": "Bundle.entry:FhirDocuments",
        "path": "Bundle.entry",
        "sliceName": "FhirDocuments",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Folders",
        "path": "Bundle.entry",
        "sliceName": "Folders",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "max": "0"
      }
    ]
  }
}