{
  "resourceType": "StructureDefinition",
  "id": "ie-core-diagnosticreport-lab",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-diagnosticreport-lab",
  "name": "IECoreDiagnosticReportLab",
  "title": "IE Core DiagnosticReport for Laboratory Results",
  "status": "draft",
  "description": "The IE Core DiagnosticReport for Laboratory Results profile sets minimum expectations for the DiagnosticReport resource to record, search, and fetch laboratory diagnostic reports associated with a patient, based on Irish requirements.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category:laboratory",
        "path": "DiagnosticReport.category",
        "sliceName": "laboratory",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "LAB",
              "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
              "display": "Laboratory"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-laboratory-test-codes"
        }
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-laboratory-result-observation"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}