{
  "resourceType": "StructureDefinition",
  "id": "e06e20a2-6299-44ae-8a50-1744746ead2d",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2024-06-05T03:23:15.1673966+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/DiagnosticReportRadiology",
  "version": "1.0.0",
  "name": "DiagnosticReportRadiology",
  "title": "DiagnosticReportRadiology",
  "status": "active",
  "date": "2024-03-06T12:21:08.448818+00:00",
  "description": "FHIR profile for Radiology resource related information",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "https://fhir.cambio.se/StructureDefinition/DiagnosticReportCore",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.id",
        "path": "DiagnosticReport.id",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier.use",
        "path": "DiagnosticReport.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.type",
        "path": "DiagnosticReport.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.period",
        "path": "DiagnosticReport.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.identifier.assigner",
        "path": "DiagnosticReport.identifier.assigner",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/ServiceRequestRadiology"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "example": [
          {
            "label": "CO",
            "valueCode": "Completed"
          }
        ]
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.text",
        "path": "DiagnosticReport.category.text",
        "fixedString": "RAD"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "definition": "If the patient has a temperory ID and the system URI's for personnummer and samordningsnummer can not be applied, then use element MUST be fixed to temp"
      },
      {
        "id": "DiagnosticReport.subject.identifier:personnummer",
        "path": "DiagnosticReport.subject.identifier",
        "sliceName": "personnummer",
        "definition": "Swedish social security number published by Skatteverket (Personnummer)"
      },
      {
        "id": "DiagnosticReport.subject.identifier:personnummer.system",
        "path": "DiagnosticReport.subject.identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.1"
      },
      {
        "id": "DiagnosticReport.subject.identifier:personnummer.value",
        "path": "DiagnosticReport.subject.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject.identifier:samordningsnummer",
        "path": "DiagnosticReport.subject.identifier",
        "sliceName": "samordningsnummer"
      },
      {
        "id": "DiagnosticReport.subject.identifier:samordningsnummer.system",
        "path": "DiagnosticReport.subject.identifier.system",
        "fixedUri": "urn:oid:1.2.752.129.2.1.3.3"
      },
      {
        "id": "DiagnosticReport.encounter.identifier.type.coding",
        "path": "DiagnosticReport.encounter.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.encounter.identifier.system",
        "path": "DiagnosticReport.encounter.identifier.system",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://commonprofiles.care/StructureDefinition/OrganizationSEVendorLite/v1"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.identifier.use",
        "path": "DiagnosticReport.performer.identifier.use",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier.type",
        "path": "DiagnosticReport.performer.identifier.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer.identifier.period",
        "path": "DiagnosticReport.performer.identifier.period",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/ObservationRadiology"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.type",
        "path": "DiagnosticReport.result.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "max": "0"
      }
    ]
  }
}