{
  "resourceType": "StructureDefinition",
  "id": "ProfileDiagnosticReportLab",
  "url": "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/DiagnosticReportLab",
  "version": "1.0",
  "name": "ProfileDiagnosticReportLaborbefund",
  "title": "Profile - DiagnosticReport - Laborbefund",
  "status": "active",
  "experimental": false,
  "publisher": "https://www.Medizininformatik-Initiative.de",
  "description": "Dieses Profil beschreibt einen Laborbefund in der Medizininformatik-Initiative.",
  "purpose": "Dieses Profil beschreibt einen Laborbefund in der Medizininformatik-Initiative.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.id",
        "path": "DiagnosticReport.id",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.meta",
        "path": "DiagnosticReport.meta",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.meta.source",
        "path": "DiagnosticReport.meta.source",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.meta.profile",
        "path": "DiagnosticReport.meta.profile",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund",
        "path": "DiagnosticReport.identifier",
        "sliceName": "befund",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.identifier:befund.type",
        "path": "DiagnosticReport.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
              "code": "FILL"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.type.coding:fillerV2",
        "path": "DiagnosticReport.identifier.type.coding",
        "sliceName": "fillerV2",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.type.coding:fillerV2.system",
        "path": "DiagnosticReport.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0203",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.type.coding:fillerV2.code",
        "path": "DiagnosticReport.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "FILL",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.system",
        "path": "DiagnosticReport.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:befund.assigner",
        "path": "DiagnosticReport.identifier.assigner",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category.coding:loinc-lab",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "loinc-lab",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://loinc.org",
          "code": "26436-6"
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category.coding:diagnostic-service-sections",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "diagnostic-service-sections",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
          "code": "LAB"
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code.coding:loinc-labReport",
        "path": "DiagnosticReport.code.coding",
        "sliceName": "loinc-labReport",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://loinc.org",
          "code": "11502-2"
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "definition": "Zeitpunkt, zu dem die gemessene Eigenschaft im Probenmaterial (e.g. Analytkonzentration) mutmaßlich der Eigenschaft im Patienten entsprach. Wenn der Zeitpunkt der Probenentnahme angegeben ist, wird meist dieser Zeitpunkt verwendet. Andernfalls wird zumeist behelfsmäßig der Probeneingang im Labor gewählt. Dieses Element ist wichtig um verschiedene Analysen im Zeitverlauf sortieren zu können.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.reference",
        "path": "DiagnosticReport.performer.reference",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.identifier",
        "path": "DiagnosticReport.performer.identifier",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.specimen.reference",
        "path": "DiagnosticReport.specimen.reference",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.specimen.identifier",
        "path": "DiagnosticReport.specimen.identifier",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://www.medizininformatik-initiative.de/fhir/core/StructureDefinition/MII-Reference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "mustSupport": true
      }
    ]
  }
}