{
  "resourceType": "StructureDefinition",
  "id": "SenaiteDiagnosticReport",
  "url": "https://senaite.com/modeling/fhir/StructureDefinition/SenaiteDiagnosticReport",
  "name": "SenaiteDiagnosticReport",
  "status": "draft",
  "description": "This is the results for the lab test requested by the ServiceRequest - as such it requires a basedOn link to the Service Request.\r\nIt may contain either the pdf file in presentedForm or the quanititative results as Observations in results.",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.extension",
        "path": "DiagnosticReport.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.modifierExtension",
        "path": "DiagnosticReport.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.basedOn.extension",
        "path": "DiagnosticReport.basedOn.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.reference",
        "path": "DiagnosticReport.basedOn.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn.display",
        "path": "DiagnosticReport.basedOn.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "definition": "The status of the diagnostic report.\r\nAccepts: registered | partial | preliminary | final | entered-in-error"
      },
      {
        "id": "DiagnosticReport.code.extension",
        "path": "DiagnosticReport.code.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.extension",
        "path": "DiagnosticReport.code.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://loinc.org"
        }
      },
      {
        "id": "DiagnosticReport.code.coding.version",
        "path": "DiagnosticReport.code.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.userSelected",
        "path": "DiagnosticReport.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.extension",
        "path": "DiagnosticReport.subject.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject.type",
        "path": "DiagnosticReport.subject.type",
        "fixedUri": "Patient"
      },
      {
        "id": "DiagnosticReport.subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.type",
        "path": "DiagnosticReport.result.type",
        "fixedUri": "Observation"
      },
      {
        "id": "DiagnosticReport.result.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "1"
      },
      {
        "id": "DiagnosticReport.presentedForm.extension",
        "path": "DiagnosticReport.presentedForm.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.contentType",
        "path": "DiagnosticReport.presentedForm.contentType",
        "fixedCode": "application/pdf"
      },
      {
        "id": "DiagnosticReport.presentedForm.data",
        "path": "DiagnosticReport.presentedForm.data",
        "min": 1
      },
      {
        "id": "DiagnosticReport.presentedForm.url",
        "path": "DiagnosticReport.presentedForm.url",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.size",
        "path": "DiagnosticReport.presentedForm.size",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm.hash",
        "path": "DiagnosticReport.presentedForm.hash",
        "max": "0"
      }
    ]
  }
}