{
  "resourceType": "StructureDefinition",
  "url": "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Laboratory",
  "name": "HD_Consolidation_DiagnosticReport_Laboratory",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-ServiceRequest"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn.type",
        "path": "DiagnosticReport.basedOn.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.display",
        "path": "DiagnosticReport.basedOn.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "short": "Category of Diagnostic Report",
        "definition": "Category of Diagnostic Report",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Category of Diagnostic Report",
          "valueSet": "https://nshealth.ca/fhir/ValueSet/ReportCategory"
        }
      },
      {
        "id": "DiagnosticReport.category.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.version",
        "path": "DiagnosticReport.category.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.code",
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.display",
        "path": "DiagnosticReport.category.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.userSelected",
        "path": "DiagnosticReport.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/Profile-HD-Consolidation-Patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.type",
        "path": "DiagnosticReport.subject.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.display",
        "path": "DiagnosticReport.subject.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Organization"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.type",
        "path": "DiagnosticReport.performer.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier",
        "path": "DiagnosticReport.performer.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.display",
        "path": "DiagnosticReport.performer.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Specimen"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen.type",
        "path": "DiagnosticReport.specimen.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen.identifier",
        "path": "DiagnosticReport.specimen.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen.display",
        "path": "DiagnosticReport.specimen.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-DiagnosticReport-Observation"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}