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