{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-05-04T08:54:22.262+00:00"
  },
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Composition-1",
  "version": "1.1.0",
  "name": "CareConnect-GPC-Composition-1",
  "status": "draft",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "INTEROPen",
      "telecom": [
        {
          "system": "email",
          "value": "admin@interopen.org",
          "use": "work"
        }
      ]
    }
  ],
  "description": "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": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/",
  "copyright": "Copyright © 2019 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" 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.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.id",
        "path": "Composition.id",
        "min": 1
      },
      {
        "id": "Composition.meta.profile",
        "path": "Composition.meta.profile",
        "min": 1
      },
      {
        "id": "Composition.extension",
        "path": "Composition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.extension:careSettingTypeExtension",
        "path": "Composition.extension",
        "sliceName": "careSettingTypeExtension",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1"
          }
        ]
      },
      {
        "id": "Composition.extension:careSettingTypeExtension.url",
        "path": "Composition.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-CareSettingType-1"
      },
      {
        "id": "Composition.identifier",
        "path": "Composition.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.identifier.system",
        "path": "Composition.identifier.system",
        "min": 1
      },
      {
        "id": "Composition.identifier.value",
        "path": "Composition.identifier.value",
        "min": 1
      },
      {
        "id": "Composition.identifier.assigner",
        "path": "Composition.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "Composition.identifier:crossCareSettingIdentifier",
        "path": "Composition.identifier",
        "sliceName": "crossCareSettingIdentifier",
        "min": 1
      },
      {
        "id": "Composition.identifier:crossCareSettingIdentifier.system",
        "path": "Composition.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.nhs.uk/Id/cross-care-setting-identifier"
      },
      {
        "id": "Composition.identifier:crossCareSettingIdentifier.value",
        "path": "Composition.identifier.value",
        "min": 1
      },
      {
        "id": "Composition.identifier:crossCareSettingIdentifier.assigner",
        "path": "Composition.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Composition.identifier:identifier",
        "path": "Composition.identifier",
        "sliceName": "identifier"
      },
      {
        "id": "Composition.identifier:identifier.assigner",
        "path": "Composition.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Composition.status",
        "path": "Composition.status",
        "fixedCode": "final"
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "short": "Kind of composition (SNOMED CT)",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentType"
            }
          ],
          "strength": "preferred",
          "description": "SNOMED CT Document Type",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-DocumentType-1"
          }
        }
      },
      {
        "id": "Composition.type.coding",
        "path": "Composition.type.coding",
        "min": 1
      },
      {
        "id": "Composition.type.coding.system",
        "path": "Composition.type.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Composition.type.coding.version",
        "path": "Composition.type.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.type.coding.code",
        "path": "Composition.type.coding.code",
        "min": 1,
        "fixedCode": "325851000000107"
      },
      {
        "id": "Composition.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Composition.type.coding.display",
        "min": 1,
        "fixedString": "Consultation"
      },
      {
        "id": "Composition.type.coding.userSelected",
        "path": "Composition.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "Composition.confidentiality",
        "path": "Composition.confidentiality",
        "max": "0"
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "max": "0"
      },
      {
        "id": "Composition.attester.party",
        "path": "Composition.attester.party",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo",
        "max": "0"
      },
      {
        "id": "Composition.relatesTo.target[x]",
        "path": "Composition.relatesTo.target[x]",
        "type": [
          {
            "code": "Identifier"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Composition-1"
          }
        ]
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "min": 1
      },
      {
        "id": "Composition.section.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.section.extension:problemReference",
        "path": "Composition.section.extension",
        "sliceName": "problemReference",
        "short": "An extension to allow resolution of problem link to composition section.",
        "definition": "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": "Extension",
            "profile": "http://hl7.org/fhir/STU3/extension-valueset-reference.html"
          }
        ]
      },
      {
        "id": "Composition.section.extension:problemReference.url",
        "path": "Composition.section.extension.url",
        "fixedUri": "http://hl7.org/fhir/STU3/extension-valueset-reference.html"
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "preferred",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-CompositionSectionCode-1"
          }
        }
      },
      {
        "id": "Composition.section.code.coding",
        "path": "Composition.section.code.coding",
        "min": 1
      },
      {
        "id": "Composition.section.code.coding.system",
        "path": "Composition.section.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Composition.section.code.coding.version",
        "path": "Composition.section.code.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.section.code.coding.code",
        "path": "Composition.section.code.coding.code",
        "min": 1,
        "fixedCode": "25851000000105"
      },
      {
        "id": "Composition.section.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Composition.section.code.coding.display",
        "min": 1,
        "fixedString": "Topic (EHR)"
      },
      {
        "id": "Composition.section.code.coding.userSelected",
        "path": "Composition.section.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.section.mode",
        "path": "Composition.section.mode",
        "min": 1,
        "fixedCode": "snapshot"
      },
      {
        "id": "Composition.section.orderedBy",
        "path": "Composition.section.orderedBy",
        "min": 1
      },
      {
        "id": "Composition.section.orderedBy.coding.system",
        "path": "Composition.section.orderedBy.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/ValueSet/list-order"
      },
      {
        "id": "Composition.section.orderedBy.coding.version",
        "path": "Composition.section.orderedBy.coding.version",
        "max": "0"
      },
      {
        "id": "Composition.section.orderedBy.coding.userSelected",
        "path": "Composition.section.orderedBy.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Composition.section.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          }
        ]
      },
      {
        "id": "Composition.section.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      }
    ]
  }
}