<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-05-04T09:54:22.262+01:00" />
  </meta>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Composition-1" />
  <version value="1.1.0" />
  <name value="CareConnect-GPC-Composition-1" />
  <status value="draft" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="INTEROPen" />
    <telecom>
      <system value="email" />
      <value value="admin@interopen.org" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement." />
  <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/" />
  <copyright value="Copyright © 2019 HL7 UK&#xD;&#xA;&#xD;&#xA;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition.id">
      <path value="Composition.id" />
      <min value="1" />
    </element>
    <element id="Composition.meta.profile">
      <path value="Composition.meta.profile" />
      <min value="1" />
    </element>
    <element id="Composition.extension">
      <path value="Composition.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.extension:careSettingTypeExtension">
      <path value="Composition.extension" />
      <sliceName value="careSettingTypeExtension" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1" />
      </type>
    </element>
    <element id="Composition.extension:careSettingTypeExtension.url">
      <path value="Composition.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1" />
    </element>
    <element id="Composition.identifier">
      <path value="Composition.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.identifier.system">
      <path value="Composition.identifier.system" />
      <min value="1" />
    </element>
    <element id="Composition.identifier.value">
      <path value="Composition.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.identifier.assigner">
      <path value="Composition.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="Composition.identifier:crossCareSettingIdentifier">
      <path value="Composition.identifier" />
      <sliceName value="crossCareSettingIdentifier" />
      <min value="1" />
    </element>
    <element id="Composition.identifier:crossCareSettingIdentifier.system">
      <path value="Composition.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.nhs.uk/Id/cross-care-setting-identifier" />
    </element>
    <element id="Composition.identifier:crossCareSettingIdentifier.value">
      <path value="Composition.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.identifier:crossCareSettingIdentifier.assigner">
      <path value="Composition.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" />
      </type>
    </element>
    <element id="Composition.identifier:identifier">
      <path value="Composition.identifier" />
      <sliceName value="identifier" />
    </element>
    <element id="Composition.identifier:identifier.assigner">
      <path value="Composition.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" />
      </type>
    </element>
    <element id="Composition.status">
      <path value="Composition.status" />
      <fixedCode value="final" />
    </element>
    <element id="Composition.type">
      <path value="Composition.type" />
      <short value="Kind of composition (SNOMED CT)" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DocumentType" />
        </extension>
        <strength value="preferred" />
        <description value="SNOMED CT Document Type" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-DocumentType-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Composition.type.coding">
      <path value="Composition.type.coding" />
      <min value="1" />
    </element>
    <element id="Composition.type.coding.system">
      <path value="Composition.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Composition.type.coding.version">
      <path value="Composition.type.coding.version" />
      <max value="0" />
    </element>
    <element id="Composition.type.coding.code">
      <path value="Composition.type.coding.code" />
      <min value="1" />
      <fixedCode value="325851000000107" />
    </element>
    <element id="Composition.type.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Composition.type.coding.display" />
      <min value="1" />
      <fixedString value="Consultation" />
    </element>
    <element id="Composition.type.coding.userSelected">
      <path value="Composition.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Composition.subject">
      <path value="Composition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1" />
      </type>
    </element>
    <element id="Composition.encounter">
      <path value="Composition.encounter" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1" />
      </type>
    </element>
    <element id="Composition.author">
      <path value="Composition.author" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
    </element>
    <element id="Composition.confidentiality">
      <path value="Composition.confidentiality" />
      <max value="0" />
    </element>
    <element id="Composition.attester">
      <path value="Composition.attester" />
      <max value="0" />
    </element>
    <element id="Composition.attester.party">
      <path value="Composition.attester.party" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
    </element>
    <element id="Composition.custodian">
      <path value="Composition.custodian" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="Composition.relatesTo">
      <path value="Composition.relatesTo" />
      <max value="0" />
    </element>
    <element id="Composition.relatesTo.target[x]">
      <path value="Composition.relatesTo.target[x]" />
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Composition-1" />
      </type>
    </element>
    <element id="Composition.event">
      <path value="Composition.event" />
      <max value="0" />
    </element>
    <element id="Composition.section">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Section" />
      </extension>
      <path value="Composition.section" />
      <min value="1" />
    </element>
    <element id="Composition.section.extension">
      <path value="Composition.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section.extension:problemReference">
      <path value="Composition.section.extension" />
      <sliceName value="problemReference" />
      <short value="An extension to allow resolution of problem link to composition section." />
      <definition value="An extension to allow resolution of the problem link to composition section - will be back reference to problem id … nb this is in the 1st instance intended to be used to resolve the problem reference e.g. problem references composition and consumer must then look for the section with the id that corresponds to the problem to make the linkage" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/STU3/extension-valueset-reference.html" />
      </type>
    </element>
    <element id="Composition.section.extension:problemReference.url">
      <path value="Composition.section.extension.url" />
      <fixedUri value="http://hl7.org/fhir/STU3/extension-valueset-reference.html" />
    </element>
    <element id="Composition.section.code">
      <path value="Composition.section.code" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CompositionSectionType" />
        </extension>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-CompositionSectionCode-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Composition.section.code.coding">
      <path value="Composition.section.code.coding" />
      <min value="1" />
    </element>
    <element id="Composition.section.code.coding.system">
      <path value="Composition.section.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Composition.section.code.coding.version">
      <path value="Composition.section.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Composition.section.code.coding.code">
      <path value="Composition.section.code.coding.code" />
      <min value="1" />
      <fixedCode value="25851000000105" />
    </element>
    <element id="Composition.section.code.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Composition.section.code.coding.display" />
      <min value="1" />
      <fixedString value="Topic (EHR)" />
    </element>
    <element id="Composition.section.code.coding.userSelected">
      <path value="Composition.section.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Composition.section.mode">
      <path value="Composition.section.mode" />
      <min value="1" />
      <fixedCode value="snapshot" />
    </element>
    <element id="Composition.section.orderedBy">
      <path value="Composition.section.orderedBy" />
      <min value="1" />
    </element>
    <element id="Composition.section.orderedBy.coding.system">
      <path value="Composition.section.orderedBy.coding.system" />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/ValueSet/list-order" />
    </element>
    <element id="Composition.section.orderedBy.coding.version">
      <path value="Composition.section.orderedBy.coding.version" />
      <max value="0" />
    </element>
    <element id="Composition.section.orderedBy.coding.userSelected">
      <path value="Composition.section.orderedBy.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Composition.section.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ReferralRequest" />
      </type>
    </element>
    <element id="Composition.section.emptyReason">
      <path value="Composition.section.emptyReason" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>