{
  "resourceType": "StructureDefinition",
  "id": "profile-ot-diagnosticreport",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-ot-diagnosticreport",
  "title": "Operating Theatre Diagnostic Report Profile",
  "description": "Diagnostic report profile for documenting pathology and diagnostic findings during or related to surgical procedures.",
  "name": "DiagnosticReport",
  "publisher": "Synapxe",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "definition": "Findings and interpretations of tests performed on the patient."
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "definition": "Sequence number assigned to the report.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier-sequence-no"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "definition": "Carries these NEHR XML elements of putOTNotes:\n\n- `content/Composition/section/entry/DiagnosticReport/status`: Information related to the status of the report.\n- `content/Composition/section/entry/Procedure/report/status`: Status of the report."
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "definition": "Category of the report.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "definition": "Name of the report.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "definition": "Carries these NEHR XML elements of putOTNotes:\n\n- `content/Composition/section/entry/DiagnosticReport/effective/effectiveDateTime`: Effective date and time of the report.\n- `content/Composition/section/entry/DiagnosticReport/effective/effectivePeriod/start`: Start of the effective period.\n- `content/Composition/section/entry/DiagnosticReport/effective/effectivePeriod/end`: End of the effective period.\n- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/start`: The start of the period. The boundary is inclusive.\n- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/end`: The end of the period."
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "definition": "Carries these NEHR XML elements of putOTNotes:\n\n- `content/Composition/section/entry/DiagnosticReport/issued`: Date and time this version of the report was released from the source diagnostic service.\n- `content/Composition/section/entry/Procedure/report/issued`: Date and time the report was released."
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "definition": "The reporting practitioner and their role: a contained PractitionerRole (\"#performer\").",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.id",
        "path": "DiagnosticReport.performer.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.extension",
        "path": "DiagnosticReport.performer.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.reference",
        "path": "DiagnosticReport.performer.reference",
        "min": 1
      },
      {
        "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": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-ot-observation"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.display",
        "path": "DiagnosticReport.result.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.note",
        "path": "DiagnosticReport.note",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.study",
        "path": "DiagnosticReport.study",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo",
        "path": "DiagnosticReport.supportingInfo",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "definition": "The report's presented forms (files), each a DocumentReference entry (profile-fileattachment) with its comments as description."
      },
      {
        "id": "DiagnosticReport.media.link",
        "path": "DiagnosticReport.media.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-fileattachment"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.composition",
        "path": "DiagnosticReport.composition",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "definition": "Concise and clinically contextualized narrative interpretation of the report."
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "definition": "Final diagnosis of the investigation.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}