{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-cr-diagnosticreport",
  "name": "DiagnosticReport",
  "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.modifierExtension",
        "path": "DiagnosticReport.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier.system",
        "path": "DiagnosticReport.identifier.system",
        "fixedUri": "https://fhir.synapxe.sg/NamingSystem/sequence-no"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "DiagnosticReport.category.extension",
        "path": "DiagnosticReport.category.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v2-0074"
      },
      {
        "id": "DiagnosticReport.category.coding.version",
        "path": "DiagnosticReport.category.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.code",
        "path": "DiagnosticReport.category.coding.code",
        "patternCode": "LAB"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.code.extension",
        "path": "DiagnosticReport.code.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.version",
        "path": "DiagnosticReport.code.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-encounter"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-encounter"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "short": "A reference from one resource to another",
        "definition": "A reference from one resource to another.",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.id",
        "path": "DiagnosticReport.resultsInterpreter.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.extension",
        "path": "DiagnosticReport.resultsInterpreter.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.reference",
        "path": "DiagnosticReport.resultsInterpreter.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.type",
        "path": "DiagnosticReport.resultsInterpreter.type",
        "fixedUri": "Practitioner"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier",
        "path": "DiagnosticReport.resultsInterpreter.identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.id",
        "path": "DiagnosticReport.resultsInterpreter.identifier.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.extension",
        "path": "DiagnosticReport.resultsInterpreter.identifier.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.use",
        "path": "DiagnosticReport.resultsInterpreter.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.type",
        "path": "DiagnosticReport.resultsInterpreter.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.system",
        "path": "DiagnosticReport.resultsInterpreter.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.synapxe.sg/NamingSystem/mcr"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.value",
        "path": "DiagnosticReport.resultsInterpreter.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.period",
        "path": "DiagnosticReport.resultsInterpreter.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.assigner",
        "path": "DiagnosticReport.resultsInterpreter.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.display",
        "path": "DiagnosticReport.resultsInterpreter.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-specimen"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-cr-observation"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.note",
        "path": "DiagnosticReport.note",
        "max": "0",
        "type": [
          {
            "code": "Annotation",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-annotation"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.study",
        "path": "DiagnosticReport.study",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo",
        "path": "DiagnosticReport.supportingInfo",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.id",
        "path": "DiagnosticReport.supportingInfo.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.extension",
        "path": "DiagnosticReport.supportingInfo.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.modifierExtension",
        "path": "DiagnosticReport.supportingInfo.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.id",
        "path": "DiagnosticReport.supportingInfo.type.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.extension",
        "path": "DiagnosticReport.supportingInfo.type.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding",
        "path": "DiagnosticReport.supportingInfo.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.id",
        "path": "DiagnosticReport.supportingInfo.type.coding.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.extension",
        "path": "DiagnosticReport.supportingInfo.type.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.system",
        "path": "DiagnosticReport.supportingInfo.type.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.code",
        "path": "DiagnosticReport.supportingInfo.type.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.display",
        "path": "DiagnosticReport.supportingInfo.type.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.userSelected",
        "path": "DiagnosticReport.supportingInfo.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.text",
        "path": "DiagnosticReport.supportingInfo.type.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference",
        "path": "DiagnosticReport.supportingInfo.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-specimen"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.id",
        "path": "DiagnosticReport.media.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.extension",
        "path": "DiagnosticReport.media.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.modifierExtension",
        "path": "DiagnosticReport.media.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.comment",
        "path": "DiagnosticReport.media.comment",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.link",
        "path": "DiagnosticReport.media.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-documentreference"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.composition",
        "path": "DiagnosticReport.composition",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/abnormal-flag"
        }
      },
      {
        "id": "DiagnosticReport.conclusionCode.extension",
        "path": "DiagnosticReport.conclusionCode.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding.system",
        "path": "DiagnosticReport.conclusionCode.coding.system",
        "fixedUri": "https://fhir.synapxe.sg/CodeSystem/abnormal-flag"
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding.version",
        "path": "DiagnosticReport.conclusionCode.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "type": [
          {
            "code": "Attachment",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-attachment"
            ]
          }
        ]
      }
    ]
  }
}