<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="path-Report.ReportIdentifier" />
  <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.ReportIdentifier" />
  <name value="PathReportReportIdentifier" />
  <title value="path Report.ReportIdentifier" />
  <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="Identifier of the pathology report assigned by the laboratory doing the analysis." />
  <purpose value="This Identifier data type represents the ReportIdentifier concept from the Report building block for patient use cases in the context of the information standard Pathology (Pathologie)." />
  <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>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Identifier" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier" />
  <derivation value="constraint" />
  <differential>
    <element id="Identifier">
      <path value="Identifier" />
      <short value="ReportIdentifier" />
      <definition value="Identifier of the pathology report assigned by the laboratory doing the analysis." />
      <comment value="This identifier attains a `.value` of the form _[TCSB]YY-nnnnn_ or _[TCSB]YY-nnnnnn_ (based on the laboratory the report originates from), e.g. T26-012345. The `.system` SHALL be of the form _urn:oid:2.16.840.1.113883.2.4.3.23.3.N.1_ where _N_ is the lab number (i.e. _labid_)." />
      <alias value="VerslagIdentificatienummer" />
      <condition value="path-Report.ReportIdentifier-1" />
      <constraint>
        <key value="path-Report.ReportIdentifier-1" />
        <severity value="error" />
        <human value="The identifier system of a report is of the form 'urn:oid:2.16.840.1.113883.2.4.3.23.3.N.1' where N is the lab number." />
        <expression value="system.startsWith('urn:oid:2.16.840.1.113883.2.4.3.23.3.') and system.endsWith('.1')" />
        <source value="http://medmij.nl/fhir/StructureDefinition/path-Report.ReportIdentifier" />
      </constraint>
      <mapping>
        <identity value="mercurius-core-dataset-2-0" />
        <map value="mercurius-core-rubriek-3" />
        <comment value="rapnaam" />
      </mapping>
    </element>
    <element id="Identifier.system">
      <path value="Identifier.system" />
      <min value="1" />
      <condition value="path-Report.ReportIdentifier-1" />
    </element>
    <element id="Identifier.value">
      <path value="Identifier.value" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>