{
  "resourceType": "StructureDefinition",
  "id": "corhealth-diagnosticreport-procedure",
  "url": "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-diagnosticreport-procedure",
  "name": "CorHealthDiagnosticReportProcedure",
  "title": "CorHealth DiagnosticReport Procedure",
  "status": "active",
  "description": "CorHealth DiagnosticReport Procedure",
  "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",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier.system",
        "path": "DiagnosticReport.identifier.system",
        "min": 1,
        "patternUri": "https://corhealth-ontario.ca/fhir/NamingSystem/diagnostic-report-order-id"
      },
      {
        "id": "DiagnosticReport.identifier.value",
        "path": "DiagnosticReport.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "patternCode": "final"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "85938-9",
              "system": "http://loinc.org",
              "display": "Cardiology Postoperative evaluation and management note"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open",
          "description": "Slice based on $this pattern"
        },
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs117",
        "path": "DiagnosticReport.result",
        "sliceName": "obs117",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-117"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs118",
        "path": "DiagnosticReport.result",
        "sliceName": "obs118",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-118"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs119",
        "path": "DiagnosticReport.result",
        "sliceName": "obs119",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-119"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs120",
        "path": "DiagnosticReport.result",
        "sliceName": "obs120",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-120"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs121",
        "path": "DiagnosticReport.result",
        "sliceName": "obs121",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-121"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs122",
        "path": "DiagnosticReport.result",
        "sliceName": "obs122",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-122"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs123",
        "path": "DiagnosticReport.result",
        "sliceName": "obs123",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-123"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs124",
        "path": "DiagnosticReport.result",
        "sliceName": "obs124",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-124"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs125",
        "path": "DiagnosticReport.result",
        "sliceName": "obs125",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-125"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs126",
        "path": "DiagnosticReport.result",
        "sliceName": "obs126",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-126"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs127",
        "path": "DiagnosticReport.result",
        "sliceName": "obs127",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-127"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs134",
        "path": "DiagnosticReport.result",
        "sliceName": "obs134",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-134"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs135",
        "path": "DiagnosticReport.result",
        "sliceName": "obs135",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-135"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs136",
        "path": "DiagnosticReport.result",
        "sliceName": "obs136",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-136"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs137",
        "path": "DiagnosticReport.result",
        "sliceName": "obs137",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-137"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs138",
        "path": "DiagnosticReport.result",
        "sliceName": "obs138",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-138"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs139",
        "path": "DiagnosticReport.result",
        "sliceName": "obs139",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-139"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs140",
        "path": "DiagnosticReport.result",
        "sliceName": "obs140",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-140"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs141",
        "path": "DiagnosticReport.result",
        "sliceName": "obs141",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-141"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs142",
        "path": "DiagnosticReport.result",
        "sliceName": "obs142",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-142"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs143",
        "path": "DiagnosticReport.result",
        "sliceName": "obs143",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-143"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs144",
        "path": "DiagnosticReport.result",
        "sliceName": "obs144",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-144"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs145",
        "path": "DiagnosticReport.result",
        "sliceName": "obs145",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-145"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:obs146",
        "path": "DiagnosticReport.result",
        "sliceName": "obs146",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://corhealth-ontario.ca/fhir/StructureDefinition/corhealth-observation-146"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}