<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="path-Report.ProtocolDataItem" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://medmij.nl/fhir/StructureDefinition/path-Report.ProtocolDataItem" />
  <name value="PathReportProtocolDataItem" />
  <title value="path Report.ProtocolDataItem" />
  <status value="draft" />
  <publisher value="MedMij" />
  <contact>
    <name value="MedMij" />
    <telecom>
      <system value="email" />
      <value value="info@medmij.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Data item from National Palga Protocols, created in the Palga Protocol Module." />
  <purpose value="This Observation resource represents a single item within the ProtocolData concept from the Report Clinical Information Model (CIM) for patient use cases in the context of Pathology." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="mercurius-core-dataset-2-0" />
    <name value="Mercurius Core Dataset 2.0" />
  </mapping>
  <mapping>
    <identity value="medmij-core-dataset-120-20260923" />
    <name value="Dataset MedMij R4 Core 1.2.0 20260923" />
  </mapping>
  <mapping>
    <identity value="path-dataset-100-alpha3-20260923" />
    <name value="Dataset Pathologie MedMij 1.0.0-alpha.3 20260923" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.meta">
      <path value="Observation.meta" />
      <min value="1" />
    </element>
    <element id="Observation.meta.tag">
      <path value="Observation.meta.tag" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.meta.tag:careType">
      <path value="Observation.meta.tag" />
      <sliceName value="careType" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="CareType" />
      <definition value="The type of the healthcare provider responsible for the delivered care, or more specifically, the specialty of the department and/or health professional that delivered care. It enables patients and systems to interpret the origin and context of medical data." />
      <comment value="Note that the `careType` slice is a slice on `.meta.tag`, which might not be immediately clear based on the rendering." />
      <alias value="Zorgtype" />
      <min value="1" />
      <max value="*" />
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.2.4--20200901000000" />
      </binding>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-123" />
        <comment value="CareType" />
      </mapping>
    </element>
    <element id="Observation.meta.tag:careType/pathology">
      <path value="Observation.meta.tag" />
      <sliceName value="careType/pathology" />
      <comment value="Note that the `pathology` slice is a reslice of the `careType` slice, which might not be immediately clear based on the rendering." />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="urn:oid:2.16.840.1.113883.2.4.6.7" />
        <code value="0388" />
      </patternCoding>
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <patternCode value="final" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="ProtocolItemName" />
      <definition value="Name of the protocol item, expressed by a SNOMED CT code." />
      <alias value="ProtocolitemNaam" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
        </coding>
      </patternCodeableConcept>
      <mapping>
        <identity value="path-dataset-100-alpha3-20260923" />
        <map value="path-dataelement-11" />
        <comment value="ProtocolItemName" />
      </mapping>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Patient" />
      <definition value="The patient as subject of the information." />
      <alias value="Patiënt" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/path-Patient" />
      </type>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-116" />
        <comment value="Patient" />
      </mapping>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effective[x]" />
      <sliceName value="effectiveDateTime" />
      <short value="EffectiveDateTime / AuthorizationDate" />
      <definition value="Date of authorization." />
      <alias value="Tijdsindicatie" />
      <alias value="DatumTijd" />
      <alias value="DatumAutorisatie" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-44" />
        <comment value="datumautorisatie" />
      </mapping>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <short value="ProtocolItemResult" />
      <definition value="Result of the protocol item." />
      <alias value="ProtocolitemResultaat" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="path-dataset-100-alpha3-20260923" />
        <map value="path-dataelement-12" />
        <comment value="ProtocolItemResult[x]" />
      </mapping>
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <short value="Specimen" />
      <definition value="Specimen that will be examined by a laboratory." />
      <comment value="Either the primary specimen or an individual sample taken from that specimen is referenced here, based on which the data in this Observation relates to. This can be derived from the SampleNumber concept: if SampleNumber (path-dataelement-13) is populated, the data in this Observation relates to the sample with the same SampleNumber (path-dataelement-16); otherwise, it relates to the primary specimen." />
      <alias value="Monster" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/path-Request.Specimen" />
      </type>
      <mapping>
        <identity value="path-dataset-100-alpha3-20260923" />
        <map value="path-dataelement-13" />
        <comment value="SampleNumber (implicit)" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>