{
  "resourceType": "StructureDefinition",
  "url": "https://lab.vvis.gov.lv/fhir/StructureDefinition/Bundle/LaboratoryBundleEU",
  "name": "BundleCompleteLaboratory",
  "status": "draft",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "max": "0"
      },
      {
        "id": "Bundle.implicitRules",
        "path": "Bundle.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.language",
        "path": "Bundle.language",
        "max": "0"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "short": "Business identifier for this Laboratory Report"
      },
      {
        "id": "Bundle.identifier.id",
        "path": "Bundle.identifier.id",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.use",
        "path": "Bundle.identifier.use",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.type",
        "path": "Bundle.identifier.type",
        "min": 1
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "min": 1
      },
      {
        "id": "Bundle.identifier.period",
        "path": "Bundle.identifier.period",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.assigner",
        "path": "Bundle.identifier.assigner",
        "min": 1
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "comment": "It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types.\r\n\r\n//Document"
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "max": "0"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "max": "0"
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource.id"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Composition",
        "path": "Bundle.entry",
        "sliceName": "Composition",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Composition.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Composition.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://lab.vvis.gov.lv/fhir/StructureDefinition/Composition/LaboratoryComposition"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Composition.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Composition.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Composition.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DiagnosticReport",
        "path": "Bundle.entry",
        "sliceName": "DiagnosticReport",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:DiagnosticReport.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DiagnosticReport.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://lab.vvis.gov.lv/fhir/StructureDefinition/ServiceRequest/LaboratoryReferral-v2"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:DiagnosticReport.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DiagnosticReport.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:DiagnosticReport.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Patient.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://vvis.gov.lv/fhir/StructureDefinition/Patient/LVPatient-v1"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Patient.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Observation",
        "path": "Bundle.entry",
        "sliceName": "Observation"
      },
      {
        "id": "Bundle.entry:Observation.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Observation.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://lab.vvis.gov.lv/fhir/StructureDefinition/Observation/LaboratoryObservation-v1"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Observation.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Observation.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Observation.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Specimen",
        "path": "Bundle.entry",
        "sliceName": "Specimen"
      },
      {
        "id": "Bundle.entry:Specimen.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Specimen.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://lab.vvis.gov.lv/fhir/StructureDefinition/Specimen/LaboratorySpecimen-v1"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Specimen.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Specimen.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Specimen.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:serviceRequest",
        "path": "Bundle.entry",
        "sliceName": "serviceRequest"
      },
      {
        "id": "Bundle.entry:serviceRequest.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:serviceRequest.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://lab.vvis.gov.lv/fhir/StructureDefinition/ServiceRequest/LaboratoryServiceRequest-v1"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:serviceRequest.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:serviceRequest.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:serviceRequest.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Organization",
        "path": "Bundle.entry",
        "sliceName": "Organization"
      },
      {
        "id": "Bundle.entry:Organization.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Organization.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://vvis.gov.lv/fhir/StructureDefinition/Organization/MedicalInstitution"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Organization.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Organization.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Organization.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PractitionerRole",
        "path": "Bundle.entry",
        "sliceName": "PractitionerRole"
      },
      {
        "id": "Bundle.entry:PractitionerRole.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PractitionerRole.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/MedicalPersonRole"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:PractitionerRole.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PractitionerRole.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PractitionerRole.response",
        "path": "Bundle.entry.response",
        "max": "0"
      }
    ]
  }
}