<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.nhs.wales/StructureDefinition/CDR-Organization" />
  <name value="CDROrganization" />
  <status value="draft" />
  <description value="Defines the CDR Organization profile for representing an organization included within CDR FHIR messages. This profile mandates the presence of an ODS code so that the submitted organization can be matched to an existing Organization resource in the CDR. Organization resources submitted using this profile are intended to support referencing and linkage within CDR messages and are not used to create new organization records." />
  <purpose value="The purpose of this profile is to ensure that organizations included in CDR messages can be reliably linked to existing organization records held in the CDR using their ODS code. Organization records are created and maintained within the CDR from the Welsh Reference Data Service and must not be created directly by submitting applications. This profile supports CDR messages where an Organization resource is included to provide organizational context for another submitted resource, such as the organization responsible for a clinician role, encounter, service, or other patient record item." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Organization" />
  <baseDefinition value="https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization" />
  <derivation value="constraint" />
  <differential>
    <element id="Organization.identifier">
      <path value="Organization.identifier" />
      <slicing>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Organization.identifier:odsOrganisationCode">
      <path value="Organization.identifier" />
      <sliceName value="odsOrganisationCode" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>