{
  "resourceType": "StructureDefinition",
  "id": "mz-lm-ParafunctionalActivity",
  "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/mz-lm-ParafunctionalActivity",
  "identifier": [
    {
      "use": "official",
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.528.1.1023.3.1.6"
    }
  ],
  "name": "MzLmParafunctionalActivity",
  "title": "ParafunctionalActivity",
  "status": "draft",
  "publisher": "MedMij",
  "contact": [
    {
      "name": "MedMij",
      "telecom": [
        {
          "system": "email",
          "value": "info@medmij.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Parafunctional activity.",
  "purpose": "This LogicalModel represents the ParafunctionalActivity Clinical Information Model (CIM) for patient use cases in the context of Dental Care.",
  "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": "mz-dataset-100-beta2-20260401",
      "name": "Dataset Mondzorg MedMij 1.0.0-beta.2 20260401"
    },
    {
      "identity": "SNOMED",
      "uri": "http://snomed.info/sct",
      "name": "SNOMED CT"
    },
    {
      "identity": "LOINC",
      "uri": "http://loinc.org",
      "name": "LOINC"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://medmij.nl/fhir/StructureDefinition/mz-lm-ParafunctionalActivity",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "mz-lm-ParafunctionalActivity",
        "path": "mz-lm-ParafunctionalActivity",
        "short": "ParafunctionalActivity",
        "definition": "Parafunctional activity.",
        "alias": [
          "ParafunctioneleActiviteit"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "mz-lm-ParafunctionalActivity",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-16",
            "comment": "ParafunctionalActivity"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.id",
        "path": "mz-lm-ParafunctionalActivity.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.extension",
        "path": "mz-lm-ParafunctionalActivity.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.ParafunctionalActivityDateTime",
        "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityDateTime",
        "short": "Parafunctional activity date/time",
        "definition": "The date and time at which the parafunctional activity was determined.",
        "alias": [
          "ParafunctioneleActiviteitDatumTijd"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityDateTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-17",
            "comment": "ParafunctionalActivityDateTime"
          },
          {
            "identity": "SNOMED",
            "map": "439771001",
            "comment": "datum van gebeurtenis"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.ParafunctionalActivityValue",
        "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityValue",
        "short": "Parafunctional activity value",
        "definition": "The parafunctional activity.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "alias": [
          "ParafunctioneleActiviteitWaarde"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityValue",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-18",
            "comment": "ParafunctionalActivityValue"
          },
          {
            "identity": "SNOMED",
            "map": "110353005",
            "comment": "parafunctionele gewoonte"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.Performer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "mz-lm-ParafunctionalActivity.Performer",
        "short": "Performer",
        "definition": "The health professional who determined the parafunctional activity.",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "alias": [
          "Uitvoerder"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "mz-lm-ParafunctionalActivity.Performer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ref-1",
            "severity": "error",
            "human": "SHALL have a contained resource if a local reference is provided",
            "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
            "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          },
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-19",
            "comment": "Performer"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.Comment",
        "path": "mz-lm-ParafunctionalActivity.Comment",
        "short": "Comment",
        "definition": "Comment on the parafunctional activity, including comments on for example the circumstances and/or disruptive factors that may influence the result.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "alias": [
          "Toelichting"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "mz-lm-ParafunctionalActivity.Comment",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-20",
            "comment": "Comment"
          },
          {
            "identity": "LOINC",
            "map": "48767-8",
            "comment": "Verklarend commentaar"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "mz-lm-ParafunctionalActivity",
        "path": "mz-lm-ParafunctionalActivity",
        "short": "ParafunctionalActivity",
        "definition": "Parafunctional activity.",
        "alias": [
          "ParafunctioneleActiviteit"
        ],
        "mapping": [
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-16",
            "comment": "ParafunctionalActivity"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.ParafunctionalActivityDateTime",
        "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityDateTime",
        "short": "Parafunctional activity date/time",
        "definition": "The date and time at which the parafunctional activity was determined.",
        "alias": [
          "ParafunctioneleActiviteitDatumTijd"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-17",
            "comment": "ParafunctionalActivityDateTime"
          },
          {
            "identity": "SNOMED",
            "map": "439771001",
            "comment": "datum van gebeurtenis"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.ParafunctionalActivityValue",
        "path": "mz-lm-ParafunctionalActivity.ParafunctionalActivityValue",
        "short": "Parafunctional activity value",
        "definition": "The parafunctional activity.",
        "alias": [
          "ParafunctioneleActiviteitWaarde"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-18",
            "comment": "ParafunctionalActivityValue"
          },
          {
            "identity": "SNOMED",
            "map": "110353005",
            "comment": "parafunctionele gewoonte"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.Performer",
        "path": "mz-lm-ParafunctionalActivity.Performer",
        "short": "Performer",
        "definition": "The health professional who determined the parafunctional activity.",
        "alias": [
          "Uitvoerder"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthProfessional"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-19",
            "comment": "Performer"
          }
        ]
      },
      {
        "id": "mz-lm-ParafunctionalActivity.Comment",
        "path": "mz-lm-ParafunctionalActivity.Comment",
        "short": "Comment",
        "definition": "Comment on the parafunctional activity, including comments on for example the circumstances and/or disruptive factors that may influence the result.",
        "alias": [
          "Toelichting"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "mz-dataset-100-beta2-20260401",
            "map": "mz-dataelement-20",
            "comment": "Comment"
          },
          {
            "identity": "LOINC",
            "map": "48767-8",
            "comment": "Verklarend commentaar"
          }
        ]
      }
    ]
  }
}