{
  "resourceType": "StructureDefinition",
  "id": "il-core-imaging-study",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    }
  ],
  "url": "http://fhir.health.gov.il/StructureDefinition/il-core-imaging-study",
  "version": "0.21.0",
  "name": "ILCoreImagingStudy",
  "title": "ILCore ImagingStudy Profile",
  "status": "draft",
  "date": "2026-03-23",
  "publisher": "Israel Core Team",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "tal.primak@moh.gov.il"
        }
      ]
    }
  ],
  "description": "Israel Core proposed constraints and extensions on the ImagingStudy Resource",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ImagingStudy",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ImagingStudy",
        "path": "ImagingStudy",
        "short": "Israel Core ImagingStudy Profile",
        "definition": "Israel Core proposed constraints and extensions on the ImagingStudy resource profile."
      },
      {
        "id": "ImagingStudy.extension",
        "path": "ImagingStudy.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "ImagingStudy.extension:accession-num",
        "path": "ImagingStudy.extension",
        "sliceName": "accession-num",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/ext-accession-number"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.identifier",
        "path": "ImagingStudy.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-identifier"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.identifier:uid",
        "path": "ImagingStudy.identifier",
        "sliceName": "uid",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.identifier:uid.system",
        "path": "ImagingStudy.identifier.system",
        "min": 1,
        "fixedUri": "urn:dicom:uid"
      },
      {
        "id": "ImagingStudy.status",
        "path": "ImagingStudy.status",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.modality",
        "path": "ImagingStudy.modality",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.subject",
        "path": "ImagingStudy.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient",
              "http://fhir.health.gov.il/StructureDefinition/il-core-device",
              "http://fhir.health.gov.il/StructureDefinition/il-core-group"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.encounter",
        "path": "ImagingStudy.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.basedOn",
        "path": "ImagingStudy.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-care-plan",
              "http://fhir.health.gov.il/StructureDefinition/il-core-service-request",
              "http://hl7.org/fhir/StructureDefinition/Appointment",
              "http://hl7.org/fhir/StructureDefinition/AppointmentResponse",
              "http://fhir.health.gov.il/StructureDefinition/il-core-task"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.referrer",
        "path": "ImagingStudy.referrer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.interpreter",
        "path": "ImagingStudy.interpreter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.procedureReference",
        "path": "ImagingStudy.procedureReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-procedure"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.procedureCode",
        "path": "ImagingStudy.procedureCode",
        "comment": "Accessing this valueset requires Loinc userName and password. Thus, it is presented here. The original value-set can be found [here](http://loinc.org/vs/loinc-rsna-radiology-playbook)",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://loinc.org/vs/loinc-rsna-radiology-playbook"
        }
      },
      {
        "id": "ImagingStudy.location",
        "path": "ImagingStudy.location",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-location"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.reasonCode",
        "path": "ImagingStudy.reasonCode",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.health.gov.il/ValueSet/il-core-procedure-reason"
        }
      },
      {
        "id": "ImagingStudy.reasonReference",
        "path": "ImagingStudy.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-condition",
              "http://fhir.health.gov.il/StructureDefinition/il-core-observation",
              "http://fhir.health.gov.il/StructureDefinition/il-core-media",
              "http://fhir.health.gov.il/StructureDefinition/il-core-diagnostic-report",
              "http://fhir.health.gov.il/StructureDefinition/il-core-document-reference"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.series.uid",
        "path": "ImagingStudy.series.uid",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.series.modality",
        "path": "ImagingStudy.series.modality",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.series.bodySite",
        "path": "ImagingStudy.series.bodySite",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
        }
      },
      {
        "id": "ImagingStudy.series.laterality",
        "path": "ImagingStudy.series.laterality",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/bodysite-laterality"
        }
      },
      {
        "id": "ImagingStudy.series.specimen",
        "path": "ImagingStudy.series.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-specimen"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.series.performer.actor",
        "path": "ImagingStudy.series.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner",
              "http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role",
              "http://fhir.health.gov.il/StructureDefinition/il-core-organization",
              "http://fhir.health.gov.il/StructureDefinition/il-core-care-team",
              "http://fhir.health.gov.il/StructureDefinition/il-core-patient",
              "http://fhir.health.gov.il/StructureDefinition/il-core-device",
              "http://fhir.health.gov.il/StructureDefinition/il-core-related-person"
            ]
          }
        ]
      },
      {
        "id": "ImagingStudy.series.instance.uid",
        "path": "ImagingStudy.series.instance.uid",
        "mustSupport": true
      },
      {
        "id": "ImagingStudy.series.instance.sopClass",
        "path": "ImagingStudy.series.instance.sopClass",
        "mustSupport": true
      }
    ]
  }
}