{
  "resourceType": "StructureDefinition",
  "id": "MaiaLaborbefund",
  "url": "https://tiplu.de/fhir/maia/StructureDefinition/MaiaLaborbefund",
  "version": "1.0.0",
  "name": "MaiaLaborbefund",
  "title": "Maia Laborbefund",
  "status": "active",
  "experimental": false,
  "date": "2023-02-27",
  "publisher": "Tiplu GmbH",
  "description": "Das vorliegende DiagnosticReport-Profil im Use Case eines Laborbefundes beschreibt alle verpflichtenden und optionalen Informationen, die ein Datenlieferant für Maia liefern muss.",
  "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",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer",
        "path": "DiagnosticReport.identifier",
        "sliceName": "Befundnummer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.type",
        "path": "DiagnosticReport.identifier.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "FILL",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.type.coding:fillerV2",
        "path": "DiagnosticReport.identifier.type.coding",
        "sliceName": "fillerV2",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.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:Befundnummer.type.coding:fillerV2.code",
        "path": "DiagnosticReport.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "FILL",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.system",
        "path": "DiagnosticReport.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier:Befundnummer.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://tiplu.de/fhir/StructureDefinition/DiagnosticReport-BasedOn-PlacerNumberReference"
            ],
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "11502-2",
              "system": "http://loinc.org"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/maia/StructureDefinition/MaiaPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/maia/StructureDefinition/MaiaKontaktGesundheitseinrichtung"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]:effectiveDateTime",
        "path": "DiagnosticReport.effective[x]",
        "sliceName": "effectiveDateTime",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://tiplu.de/fhir/maia/StructureDefinition/MaiaLaboruntersuchung"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}