{
  "resourceType": "StructureDefinition",
  "id": "path-Report.ReportIdentifier",
  "text": {
    "status": "empty",
    "div": "<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>"
  },
  "url": "http://medmij.nl/fhir/StructureDefinition/path-Report.ReportIdentifier",
  "name": "PathReportReportIdentifier",
  "title": "path Report.ReportIdentifier",
  "status": "draft",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Identifier of the pathology report assigned by the laboratory doing the analysis.",
  "purpose": "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": "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": "4.0.1",
  "mapping": [
    {
      "identity": "mercurius-core-dataset-2-0",
      "name": "Mercurius Core Dataset 2.0"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Identifier",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Identifier",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Identifier",
        "path": "Identifier",
        "short": "ReportIdentifier",
        "definition": "Identifier of the pathology report assigned by the laboratory doing the analysis.",
        "comment": "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": [
          "VerslagIdentificatienummer"
        ],
        "condition": [
          "path-Report.ReportIdentifier-1"
        ],
        "constraint": [
          {
            "key": "path-Report.ReportIdentifier-1",
            "severity": "error",
            "human": "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": "system.startsWith('urn:oid:2.16.840.1.113883.2.4.3.23.3.') and system.endsWith('.1')",
            "source": "http://medmij.nl/fhir/StructureDefinition/path-Report.ReportIdentifier"
          }
        ],
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-3",
            "comment": "rapnaam"
          }
        ]
      },
      {
        "id": "Identifier.system",
        "path": "Identifier.system",
        "min": 1,
        "condition": [
          "path-Report.ReportIdentifier-1"
        ]
      },
      {
        "id": "Identifier.value",
        "path": "Identifier.value",
        "min": 1
      }
    ]
  }
}