{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-diagnosticreport-bs",
  "name": "BreastScreeningReport",
  "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.meta",
        "path": "DiagnosticReport.meta",
        "type": [
          {
            "code": "Meta",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-meta"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-identifier"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.id",
        "path": "DiagnosticReport.category.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.extension",
        "path": "DiagnosticReport.category.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.category.coding.id",
        "path": "DiagnosticReport.category.coding.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.extension",
        "path": "DiagnosticReport.category.coding.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.synapxe.sg/CodeSystem/screen-type"
      },
      {
        "id": "DiagnosticReport.category.coding.code",
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.display",
        "path": "DiagnosticReport.category.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.userSelected",
        "path": "DiagnosticReport.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.text",
        "path": "DiagnosticReport.category.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Screening Types for Diagnostic Reports",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/screen-type"
        }
      },
      {
        "id": "DiagnosticReport.code.extension",
        "path": "DiagnosticReport.code.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "fixedUri": "https://fhir.synapxe.sg/CodeSystem/screen-type"
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "patternCode": "breast-screen"
      },
      {
        "id": "DiagnosticReport.code.coding.display",
        "path": "DiagnosticReport.code.coding.display",
        "fixedString": "Breast Screening Report"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.display",
        "path": "DiagnosticReport.subject.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-encounter-screening"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter.id",
        "path": "DiagnosticReport.encounter.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter.extension",
        "path": "DiagnosticReport.encounter.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter.reference",
        "path": "DiagnosticReport.encounter.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.encounter.type",
        "path": "DiagnosticReport.encounter.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter.identifier",
        "path": "DiagnosticReport.encounter.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter.display",
        "path": "DiagnosticReport.encounter.display",
        "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",
        "path": "DiagnosticReport.result",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "display"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-observation",
              "https://fhir.synapxe.sg/StructureDefinition/profile-assessment-results",
              "https://fhir.synapxe.sg/StructureDefinition/profile-pathology-results"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "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",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:assessmentResult",
        "path": "DiagnosticReport.result",
        "sliceName": "assessmentResult",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-assessment-results"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:assessmentResult.display",
        "path": "DiagnosticReport.result.display",
        "min": 1,
        "fixedString": "Assessment"
      },
      {
        "id": "DiagnosticReport.result:screeningResult",
        "path": "DiagnosticReport.result",
        "sliceName": "screeningResult",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-observation"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:screeningResult.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:screeningResult.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:screeningResult.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:screeningResult.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:screeningResult.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:screeningResult.display",
        "path": "DiagnosticReport.result.display",
        "min": 1,
        "fixedString": "Screening"
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult",
        "path": "DiagnosticReport.result",
        "sliceName": "histopathologyResult",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-pathology-results"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:histopathologyResult.display",
        "path": "DiagnosticReport.result.display",
        "min": 1,
        "fixedString": "Histopathology"
      },
      {
        "id": "DiagnosticReport.result:cytologyResult",
        "path": "DiagnosticReport.result",
        "sliceName": "cytologyResult",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-pathology-results"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:cytologyResult.display",
        "path": "DiagnosticReport.result.display",
        "min": 1,
        "fixedString": "Cytology"
      },
      {
        "id": "DiagnosticReport.result:biopsyResult",
        "path": "DiagnosticReport.result",
        "sliceName": "biopsyResult",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-pathology-results"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.id",
        "path": "DiagnosticReport.result.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.extension",
        "path": "DiagnosticReport.result.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result:biopsyResult.display",
        "path": "DiagnosticReport.result.display",
        "min": 1,
        "fixedString": "Biopsy"
      },
      {
        "id": "DiagnosticReport.note",
        "path": "DiagnosticReport.note",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.study",
        "path": "DiagnosticReport.study",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.id",
        "path": "DiagnosticReport.supportingInfo.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.modifierExtension",
        "path": "DiagnosticReport.supportingInfo.modifierExtension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type",
        "path": "DiagnosticReport.supportingInfo.type",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.synapxe.sg/ValueSet/supportinginfo-type"
        }
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.extension",
        "path": "DiagnosticReport.supportingInfo.type.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.system",
        "path": "DiagnosticReport.supportingInfo.type.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "DiagnosticReport.supportingInfo.type.coding.code",
        "path": "DiagnosticReport.supportingInfo.type.coding.code",
        "patternCode": "11329-0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference",
        "path": "DiagnosticReport.supportingInfo.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-observation"
            ],
            "aggregation": [
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.id",
        "path": "DiagnosticReport.supportingInfo.reference.id",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.extension",
        "path": "DiagnosticReport.supportingInfo.reference.extension",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.reference",
        "path": "DiagnosticReport.supportingInfo.reference.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.type",
        "path": "DiagnosticReport.supportingInfo.reference.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.identifier",
        "path": "DiagnosticReport.supportingInfo.reference.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.supportingInfo.reference.display",
        "path": "DiagnosticReport.supportingInfo.reference.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.composition",
        "path": "DiagnosticReport.composition",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}