{
  "resourceType": "StructureDefinition",
  "id": "path-Report.Macroscopy",
  "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.Macroscopy",
  "name": "PathReportMacroscopy",
  "title": "path Report.Macroscopy",
  "status": "draft",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Macroscopy-related results.",
  "purpose": "This Observation resource represents the Macroscopy 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"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.meta",
        "path": "Observation.meta",
        "min": 1
      },
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.meta.tag:careType",
        "path": "Observation.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": "Observation.meta.tag:careType/pathology",
        "path": "Observation.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": "Observation.text",
        "path": "Observation.text",
        "min": 1
      },
      {
        "id": "Observation.text.status",
        "path": "Observation.text.status",
        "patternCode": "additional"
      },
      {
        "id": "Observation.text.div",
        "path": "Observation.text.div",
        "short": "Macroscopy",
        "definition": "Macroscopy-related results.",
        "alias": [
          "Macroscopie"
        ],
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-184",
            "comment": "macroscopie"
          }
        ]
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "patternCode": "final"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "168126000",
              "system": "http://snomed.info/sct"
            }
          ]
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.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": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effective[x]",
        "sliceName": "effectiveDateTime",
        "short": "EffectiveDateTime / AuthorizationDate",
        "definition": "Date of authorization.",
        "alias": [
          "Tijdsindicatie",
          "DatumTijd",
          "DatumAutorisatie"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "mercurius-core-dataset-2-0",
            "map": "mercurius-core-rubriek-44",
            "comment": "datumautorisatie"
          }
        ]
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "short": "Specimen",
        "definition": "Specimen that will be examined by a laboratory.",
        "comment": "The primary specimen is referenced here, as the data in this Observation resource relates to both the primary specimen as well as the individual samples taken from that specimen.",
        "alias": [
          "Monster"
        ],
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Specimen",
              "http://medmij.nl/fhir/StructureDefinition/path-Request.Specimen"
            ]
          }
        ]
      }
    ]
  }
}