{
  "resourceType": "StructureDefinition",
  "id": "profile-genomicsreport",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-genomicsreport",
  "title": "Genomics Report Profile",
  "name": "GenomicsReport",
  "publisher": "Synapxe",
  "status": "active",
  "description": "Genomics report profile constrained from DiagnosticReport.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.extension:recommendedAction",
        "path": "DiagnosticReport.extension",
        "sliceName": "recommendedAction",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-recommended-action"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-genomics-servicerequest"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "patternUri": "http://loinc.org"
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "fixedCode": "51969-4"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-genomics-patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "min": 1
      },
      {
        "id": "DiagnosticReport.issued.extension:addendumCreationDate",
        "path": "DiagnosticReport.issued.extension",
        "sliceName": "addendumCreationDate",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/ext-addendum-creation-date"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        },
        "min": 1,
        "max": "2"
      },
      {
        "id": "DiagnosticReport.performer:Organization",
        "path": "DiagnosticReport.performer",
        "sliceName": "Organization",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer:Practitioner",
        "path": "DiagnosticReport.performer",
        "sliceName": "Practitioner",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-practitioner"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitioner"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.display",
        "path": "DiagnosticReport.resultsInterpreter.display",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-genomics-specimen"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this.resolve()"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "DiagnosticReport.result:molecular-biomarker",
        "path": "DiagnosticReport.result",
        "sliceName": "molecular-biomarker",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-molecularbiomarker"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result:variant",
        "path": "DiagnosticReport.result",
        "sliceName": "variant",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-variant"
            ]
          }
        ]
      },
      {
        "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",
        "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"
      }
    ]
  }
}