{
  "resourceType": "StructureDefinition",
  "id": "6fe380e3-4657-47d1-9352-e06cdb080347",
  "meta": {
    "lastUpdated": "2021-10-26T16:36:17.809+00:00"
  },
  "url": "https://simplifier.net/omd-cdss/diagnosticreportprofile",
  "version": "0.0.2",
  "name": "DiagnosticReportProfile",
  "title": "Diagnostic Report Profile",
  "status": "draft",
  "date": "2021-10-26T16:11:23.170438+00:00",
  "publisher": "OMD",
  "description": "Proposed constraints on the DiagnosticReport resource for the minimal set of data to query and retrieve diagnostic reports associated with laboratory and other results",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CA",
          "display": "Canada"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "CDSS5.1",
      "uri": "www.ontariomd.com",
      "name": "CDS-S 5.1"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "short": "DiagnosticReport Profile",
        "definition": "Diagnostic Report Profile is based upon the core FHIR DiagnosticReport resource and created to meet the Laboratory test(s) and Laboratory value(s)/result(s) requirements."
      },
      {
        "id": "DiagnosticReport.identifier.value",
        "path": "DiagnosticReport.identifier.value",
        "definition": "BASE RESOURCE DEFINITION:\r\nThe portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\n\r\nCDS-S PROFILE DEFINITION (Laboratory Test Results - Accession Number): \r\nThe unique number assigned by the source to one test or a group of tests to be performed. \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Source Facility Report Number):\r\nUnique ID for a report as provided by the sending facility. This discrete data element is specific to reports downloaded from \"HRM system\".",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.007",
            "comment": "Source Facility Report Number"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE10.005",
            "comment": "Accession Number"
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "definition": "BASE RESOURCE DEFINITION:\r\nDetails concerning a service requested.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe date & time that the lab test was ordered within the EMR.",
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.018",
            "comment": "Lab Requisition Date/Time"
          }
        ]
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "definition": "BASE RESOURCE DEFINITION:\r\nThe status of the diagnostic report.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe status of the report as received from the source. This discrete data element is specific to the reports downloaded from \"HRM system\".",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.015",
            "comment": "Report Status"
          }
        ]
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "definition": "BASE RESOURCE DEFINITION:\r\nA code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nClassification of the external reports received by the practice.",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.009",
            "comment": "Report Class"
          }
        ]
      },
      {
        "id": "DiagnosticReport.category:LabResult",
        "path": "DiagnosticReport.category",
        "sliceName": "LabResult",
        "definition": "A code that classifies the Laboratory test(s) and Laboratory result(s). This is used for searching, sorting and display purposes.",
        "comment": "Multiple categories are allowed using various categorization schemes but at least one SHALL come from the FHIR defined value set that includes codes from HL7v2 Table 0074",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.category:LabResult.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0074"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "definition": "BASE RESOURCE DEFINITION:\r\nA code or name that describes this diagnostic report.\r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Report Sub-Class):\r\nSub-classification of the external reports. \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Accompanying Sub-Class):\r\nThe sub-classification of the Diagnostic Imaging (DI) and Cardio Respiratory Therapy (CRT) reports as provided by the sending facility (source facility). This discrete data element is specific to DI and CRT reports downloaded from \"HRM system\". \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Accompanying Mnemonic): \r\nThe abbreviated term used by the sending facility to describe procedures/studies as provided by the sending facility. This discrete data element is specific to DI and CRT reports downloaded from \"HRM system\". \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Accompanying Description): \r\nThe description of a procedure/study corresponding to the Accompanying Mnemonic data element as provided by the sending facility. This Discrete data element is specific to DI and CRT reports downloaded from \"HRM system\".",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.010",
            "comment": "Report Sub-Class"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.011",
            "comment": "Accompanying Sub-Class"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.012",
            "comment": "Accompanying Mnemonic"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.013",
            "comment": "Accompanying Description"
          }
        ]
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "definition": "BASE RESOURCE DEFINITION:\r\nA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).\r\n\r\nCDS-S PROFILE DEFINITION (Laboratory Test Results - Laboratory Test Code):\r\n(DiagnosticReport.code.coding.code[0]) The proprietaty code that uniquely identifies a test within a laboratory as provided by the source. \r\n\r\nCDS-S PROFILE DEFINITION (Laboratory Test Results - EMR Test Name):\r\n(DiagnosticReport.code.coding.code[1]) The EMR's proprietary name of a laboratory test for the purpose of uniquely representing and cross-referencing the same text received from different laboratory sources.",
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.002",
            "comment": "Laboratory Test Code"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE10.004",
            "comment": "EMR Test Name"
          }
        ]
      },
      {
        "id": "DiagnosticReport.code.coding.display",
        "path": "DiagnosticReport.code.coding.display",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.003",
            "comment": "Laboratory Test Name"
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/omd-cdss/patientprofile",
              "https://simplifier.net/omd-cdss/locationprofile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "short": "Time of the report or note",
        "definition": "This is the Datetime or Period when the report or note was written.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "definition": "BASE RESOURCE DEFINITION:\r\nThe date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe date and time that the medical and non medical report was created by the source provider (author) or souce facility.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.004",
            "comment": "Creation Date"
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "definition": "BASE RESOURCE DEFINITION:\r\nThe diagnostic service that is responsible for issuing the report.\r\n\r\nCDS-S PROFILE DEFINITION (Laboratory Test Results):\r\nThe name of the laboratory (source) responsible for sending the test results to the EMR. \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Source Facility):\r\nThe name of the facility (clinic, hospital) where the report originated (e.g., Trillium Hospital, Sick Kids Hospital). \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Source Facility ID):\r\nUnique ID of the facility that sends HRM reports. This discrete data element is specific to reports downloaded from \"HRM system\".",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/omd-cdss/practitionerprofile",
              "https://simplifier.net/omd-cdss/organizationprofile"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.001",
            "comment": "Laboratory Name"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.001",
            "comment": "Source Facility"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.002",
            "comment": "Source Facility ID"
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "definition": "BASE RESOURCE DEFINITION:\r\nThe practitioner or organization that is responsible for the report's conclusions and interpretations.\r\n\r\nCDS-S PROFILE DEFINITION (Laboratory Test Results - Reviewer Identity):\r\nThe identity of the authorized provider who signed-off (reviewed) the lab result(s). \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Responsible Provider): \r\nThe EMR user that is responsible for reviewing the report. \r\n\r\nCDS-S PROFILE DEFINITION (Reports Received - Reviewer Identity):\r\nThe authorized provider who signed off (reviewed) the report.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/omd-cdss/practitionerprofile",
              "https://simplifier.net/omd-cdss/organizationprofile"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.020",
            "comment": "Reviewer Identity"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.016",
            "comment": "Responsible Provider"
          },
          {
            "identity": "CDSS5.1",
            "map": "DE14.017",
            "comment": "Reviewer Identity"
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "definition": "BASE RESOURCE DEFINITION:\r\nDetails about the specimens on which this diagnostic report is based.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nDate time the specimen was collected",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE10.006",
            "comment": "Collection Date/Time"
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen:LabResult",
        "path": "DiagnosticReport.specimen",
        "sliceName": "LabResult",
        "comment": "Details about the specimen(s) on which this laboratory report is based on.",
        "min": 1
      },
      {
        "id": "DiagnosticReport.specimen:@default",
        "path": "DiagnosticReport.specimen",
        "sliceName": "@default",
        "comment": "Details about specimen(s) on which this report is based on."
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "definition": "BASE RESOURCE DEFINITION:\r\n[Observations](observation.html)  that are part of this diagnostic report.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nThe date and time that the observation/service was performed for each Diagnostic Imaging (DI) and Cardio Respiratory Therapy (CRT) report as provided by the sending facility (source facility). This discrete data element is specific to DI and CRT reports downloaded from \"HRM system\".",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.014",
            "comment": "Observation Date/Time"
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:LabResult",
        "path": "DiagnosticReport.result",
        "sliceName": "LabResult",
        "comment": "Observations that represent results produced by laboratory tests or panels/studies",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-observation-results"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:@default",
        "path": "DiagnosticReport.result",
        "sliceName": "@default",
        "comment": "Observations that represent results produced for report",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-observation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "definition": "BASE RESOURCE DEFINITION:\r\nConcise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.\r\n\r\nCDS-S PROFILE DEFINITION:\r\nAdditional notes/annotations about the report (attached file) as typed in by the provider.",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "CDSS5.1",
            "map": "DE14.008",
            "comment": "Notes"
          }
        ]
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "short": "CHI identification of the condition, problem or diagnosis",
        "definition": "The code that represents relevant clinical problems, conditions, diagnoses, symptoms, findings and complaints taken from [CHI Health Concern Code](https://fhir.infoway-inforoute.ca/ValueSet/healthconcerncode)",
        "comment": "The binding strength of this element is [Example](https://www.hl7.org/fhir/terminologies.html#strength), meaning that the Canada Health Infoway Health Concern Code value set provides examples of the types of concepts intended to be included",
        "binding": {
          "strength": "example",
          "description": "Represents the patient's relevant clinical problems, conditions, diagnoses, symptoms, findings and complaints, as interpreted by the provider.",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/healthconcerncode"
        }
      }
    ]
  }
}