{
  "resourceType": "StructureDefinition",
  "id": "path-Request.Specimen",
  "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-Request.Specimen",
  "name": "PathRequestSpecimen",
  "title": "path Request.Specimen",
  "status": "draft",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Specimen that will be examined by a laboratory.",
  "purpose": "This Specimen resource represents the specimen-related concepts from the Request Clinical Information Model (CIM) for patient use cases in the context of Pathology.",
  "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"
    },
    {
      "identity": "medmij-core-dataset-120-20260923",
      "name": "Dataset MedMij R4 Core 1.2.0 20260923"
    },
    {
      "identity": "path-dataset-100-alpha3-20260923",
      "name": "Dataset Pathologie MedMij 1.0.0-alpha.3 20260923"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Specimen",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Specimen",
        "path": "Specimen",
        "short": "Specimen",
        "definition": "Specimen that will be examined by a laboratory.",
        "comment": "This resource is used to convey either the primary specimen or an individual sample taken from that specimen. In the latter case, the `.parent` refers to the Specimen resource corresponding to the primary specimen.",
        "alias": [
          "Monster"
        ],
        "mapping": [
          {
            "identity": "path-dataset-100-alpha3-20260923",
            "map": "path-dataelement-8",
            "comment": "Specimen"
          },
          {
            "identity": "path-dataset-100-alpha3-20260923",
            "map": "path-dataelement-15",
            "comment": "Sample"
          }
        ]
      },
      {
        "id": "Specimen.meta",
        "path": "Specimen.meta",
        "min": 1
      },
      {
        "id": "Specimen.meta.tag",
        "path": "Specimen.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Specimen.meta.tag:careType",
        "path": "Specimen.meta.tag",
        "sliceName": "careType",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "CareType",
        "definition": "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": "Note that the `careType` slice is a slice on `.meta.tag`, which might not be immediately clear based on the rendering.",
        "alias": [
          "Zorgtype"
        ],
        "min": 1,
        "max": "*",
        "binding": {
          "strength": "required",
          "valueSet": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.2.4--20200901000000"
        },
        "mapping": [
          {
            "identity": "medmij-core-dataset-120-20260923",
            "map": "medmij-core-dataelement-123",
            "comment": "CareType"
          }
        ]
      },
      {
        "id": "Specimen.meta.tag:careType/pathology",
        "path": "Specimen.meta.tag",
        "sliceName": "careType/pathology",
        "comment": "Note that the `pathology` slice is a reslice of the `careType` slice, which might not be immediately clear based on the rendering.",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "code": "0388",
          "system": "urn:oid:2.16.840.1.113883.2.4.6.7"
        }
      },
      {
        "id": "Specimen.identifier",
        "path": "Specimen.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Specimen.identifier:specimenIdentifier",
        "path": "Specimen.identifier",
        "sliceName": "specimenIdentifier",
        "short": "IdentificationNumber / SpecimenIdentifier / SampleIdentifier",
        "definition": "Identifier of the specimen.",
        "comment": "This element is used to convey the identifier of either the primary specimen or an individual sample taken from that specimen, based on which specimen this resource represents.\n\n  * In the former case, as the specimen is always directly linked to a request in Mercurius, this identifier's value equals the RequestIdentifier value, appended with _-0_. In particular, this identifier attains a `.value` of the form _[TCSB]YY-nnnnn-0_ or _[TCSB]YY-nnnnnn-0_ (based on the laboratory the report originates from), e.g. T26-012345-0.\n  * In the latter case, this identifier's value equals the RequestIdentifier value, appended with _-[SampleNumber]_. In particular, this identifier attains a `.value` of the form _[TCSB]YY-nnnnn-[SampleNumber]_ or _[TCSB]YY-nnnnnn-[SampleNumber]_ (based on the laboratory the report originates from), e.g. T26-012345-1.\n\nIn both cases, 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": [
          "Identificatienummer",
          "MonsterIdentificatienummer",
          "SampleIdentificatienummer"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "http://medmij.nl/fhir/StructureDefinition/path-Report.ReportIdentifier"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "path-dataset-100-alpha3-20260923",
            "map": "path-dataelement-14",
            "comment": "SpecimenIdentifier"
          },
          {
            "identity": "path-dataset-100-alpha3-20260923",
            "map": "path-dataelement-16",
            "comment": "SampleNumber (implicit)"
          }
        ]
      },
      {
        "id": "Specimen.type",
        "path": "Specimen.type",
        "short": "SpecimenMaterial",
        "definition": "Type of specimen.",
        "comment": "The (string) value of the SpecimenMaterial concept present in the source system SHALL be translated to a SNOMED CT code using the [Palga On-line Thesaurus](https://www.palga.nl/voor-pathologen/palga-on-line-thesaurus), if possible. In any case, the original value SHALL be conveyed via `.text`.",
        "alias": [
          "AardMateriaal"
        ],
        "min": 1,
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-76",
            "comment": "aardmateriaal"
          }
        ]
      },
      {
        "id": "Specimen.type.coding.system",
        "path": "Specimen.type.coding.system",
        "patternUri": "http://snomed.info/sct"
      },
      {
        "id": "Specimen.type.text",
        "path": "Specimen.type.text",
        "min": 1
      },
      {
        "id": "Specimen.subject",
        "path": "Specimen.subject",
        "short": "Patient",
        "definition": "The patient as subject of the information.",
        "alias": [
          "Patiënt"
        ],
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://medmij.nl/fhir/StructureDefinition/path-Patient"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "medmij-core-dataset-120-20260923",
            "map": "medmij-core-dataelement-116",
            "comment": "Patient"
          }
        ]
      },
      {
        "id": "Specimen.receivedTime",
        "path": "Specimen.receivedTime",
        "short": "ReceivedDate",
        "definition": "Date when specimen is received at the laboratory.",
        "alias": [
          "DatumOntvangst"
        ],
        "min": 1,
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-80",
            "comment": "datumontvangst"
          }
        ]
      },
      {
        "id": "Specimen.parent",
        "path": "Specimen.parent",
        "comment": "If this Specimen resource corresponds to a sample taken from the primary specimen, the latter is referenced here.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Specimen",
              "http://medmij.nl/fhir/StructureDefinition/path-Request.Specimen"
            ]
          }
        ]
      },
      {
        "id": "Specimen.collection.collected[x]",
        "path": "Specimen.collection.collected[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Specimen.collection.collected[x]:collectedDateTime",
        "path": "Specimen.collection.collected[x]",
        "sliceName": "collectedDateTime",
        "short": "CollectionDate",
        "definition": "Date when specimen is taken from patient.",
        "alias": [
          "DatumAfname"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-77",
            "comment": "datumafname"
          }
        ]
      },
      {
        "id": "Specimen.collection.method",
        "path": "Specimen.collection.method",
        "short": "CollectionMethod",
        "definition": "The way the specimen is collected (biopsy, resection, etc.).",
        "comment": "The (string) value of the CollectionMethod concept present in the source system SHALL be translated to a SNOMED CT code using the [Palga On-line Thesaurus](https://www.palga.nl/voor-pathologen/palga-on-line-thesaurus), if possible. In any case, the original value SHALL be conveyed via `.text`.",
        "alias": [
          "Verkrijgingswijze"
        ],
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-87",
            "comment": "verkrijgingswijze"
          }
        ]
      },
      {
        "id": "Specimen.collection.method.coding.system",
        "path": "Specimen.collection.method.coding.system",
        "patternUri": "http://snomed.info/sct"
      },
      {
        "id": "Specimen.collection.method.text",
        "path": "Specimen.collection.method.text",
        "min": 1
      }
    ]
  }
}