<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="PalgaComposition" />
  <url value="http://mrdm.nl/profiles/fhir/r4/palga/StructureDefinition/composition" />
  <name value="PalgaComposition" />
  <status value="draft" />
  <date value="2023-11-28T08:53:54.0362159+00:00" />
  <fhirVersion value="4.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">
      <path value="Composition" />
      <short value="First entry of the Palga document" />
      <definition value="The first FHIR resource as entry within the FHIR Bundle will be the Composition Resource. This resource will contain the other FHIR Resources that are included for data exchange" />
    </element>
    <element id="Composition.id">
      <path value="Composition.id" />
      <short value="ID will be a GUID" />
      <min value="1" />
    </element>
    <element id="Composition.identifier">
      <path value="Composition.identifier" />
      <short value="Identifier Composition" />
      <definition value="The identifier should include a value for the variable reglabrap. This variable consist of  the name of the clinical registry, labid and number of the report, concatenated with dashes. For example: “DICADGEA-10-T17-99999””." />
      <min value="1" />
    </element>
    <element id="Composition.status">
      <path value="Composition.status" />
      <definition value="The status has been set as a fixed value, final." />
      <fixedCode value="final" />
    </element>
    <element id="Composition.type.coding">
      <path value="Composition.type.coding" />
      <short value="Composition Type" />
      <definition value="The type of composition is a fixed LOINC value which represents type Pathology Study" />
      <min value="1" />
      <max value="1" />
      <fixedCoding>
        <system value="http://loinc.org" />
        <code value="11526-1" />
      </fixedCoding>
    </element>
    <element id="Composition.type.text">
      <path value="Composition.type.text" />
      <min value="1" />
      <fixedString value="Pathology study" />
    </element>
    <element id="Composition.subject">
      <path value="Composition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://logex.com/profiles/fhir/r4/palga/StructureDefinition/patient" />
      </type>
    </element>
    <element id="Composition.author">
      <path value="Composition.author" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://logex.com/profiles/fhir/r4/palga/StructureDefinition/practitioner-role" />
      </type>
    </element>
    <element id="Composition.title">
      <path value="Composition.title" />
      <fixedString value="Pathology study report" />
    </element>
    <element id="Composition.section.entry">
      <path value="Composition.section.entry" />
      <short value="A reference to the related Diagnostic Report" />
    </element>
  </differential>
</StructureDefinition>