{
  "resourceType": "StructureDefinition",
  "id": "ncr-procedure-bundle",
  "url": "http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-procedure-bundle",
  "name": "NcrProcedureBundle",
  "status": "draft",
  "date": "2024-03-21T16:14:45.1264842+00:00",
  "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",
        "constraint": [
          {
            "key": "ncrproc-1",
            "severity": "error",
            "human": "A Procedure in this bundle conforms to NcrEhrProcedureEvent",
            "expression": "entry.resource.ofType(Procedure).conformsTo('http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-procedure-bundle').allTrue()"
          }
        ]
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.meta.tag:processing-target",
        "path": "Bundle.meta.tag",
        "sliceName": "processing-target",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/NamingSystem/processing-target",
          "code": "NKR_CHIR"
        }
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:procedure",
        "path": "Bundle.entry",
        "sliceName": "procedure",
        "min": 1
      },
      {
        "id": "Bundle.entry:procedure.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/Procedure"
            ]
          }
        ]
      }
    ]
  }
}