PackagesCanonicalsLogsProblems
    Packages
    de.medizininformatikinitiative.kerndatensatz.dokument@2027.0.0-ballot.rc1
    https://www.medizininformatik-initiative.de/fhir/ext/modul-dokument/StructureDefinition/mii-lm-dokument
{
  "description": "MII Logical Model KDS-Modul Dokument",
  "_filename": "StructureDefinition-mii-lm-dokument.json",
  "package_name": "de.medizininformatikinitiative.kerndatensatz.dokument",
  "date": null,
  "derivation": "specialization",
  "publisher": "Medizininformatik Initiative",
  "fhirVersion": "4.0.1",
  "name": "MII_LM_Dokument",
  "mapping": [ {
    "name": "MII MAP Dokument",
    "comment": "MII Mappings KDS-Modul Dokument",
    "identity": "mii-map-dokument"
  } ],
  "abstract": false,
  "type": "https://www.medizininformatik-initiative.de/fhir/ext/modul-dokument/StructureDefinition/mii-lm-dokument",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "MII LM Dokument",
  "package_version": "2027.0.0-ballot.rc1",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument",
      "min": 0,
      "definition": "MII Logical Model KDS-Modul Dokument",
      "short": "MII LM Dokument",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "mii-lm-dokument",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument"
      }
    }, {
      "path": "mii-lm-dokument.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "mii-lm-dokument.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.extension",
      "min": 0,
      "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.",
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "mii-lm-dokument.extension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument",
      "min": 1,
      "definition": "Klinisches Dokument inkl. Metadaten, Inhalt, Erzeugungskontext und Beziehungen",
      "short": "Dokument",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 1,
        "path": "mii-lm-dokument.Dokument"
      }
    }, {
      "path": "mii-lm-dokument.Dokument.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.extension",
      "min": 0,
      "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.",
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.extension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.modifierExtension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Masteridentifikator",
      "min": 0,
      "definition": "Versionsspezifische eindeutige Kennung, die dem Dokument durch die Dokumentenquelle zugewiesen wurde",
      "short": "Versionsspezifische Kennung",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "DocumentReference.masterIdentifier",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Masteridentifikator",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Masteridentifikator"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Businessidentifikator",
      "min": 0,
      "definition": "Andere versionsunabhängige Kennung, die dem Dokument (z.B. durch weitere dokumentenverarbeitende Systeme) zugewiesen wurde",
      "short": "Versionsunabhängige Kennung",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "DocumentReference.identifier",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Businessidentifikator",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Businessidentifikator"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenreferenzstatus",
      "min": 1,
      "definition": "Status dieser Dokumentenreferenz (aktuell, überholt oder irrtümlich eingegeben)",
      "short": "Status der Dokumentenreferenz",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.status",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumentenreferenzstatus",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 1,
        "path": "mii-lm-dokument.Dokument.Dokumentenreferenzstatus"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenstatus",
      "min": 0,
      "definition": "Status des zugrunde liegenden Dokuments (vorläufig, final, geändert oder irrtümlich eingegeben)",
      "short": "Status des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.docStatus",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumentenstatus",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Dokumentenstatus"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumententyp",
      "min": 0,
      "definition": "Art des Dokuments auf das verwiesen wird (z.B. Anamnese und Untersuchung, Entlassungsbericht, Verlaufsbericht)",
      "short": "Art des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.type",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumententyp",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Dokumententyp"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenkategorie",
      "min": 0,
      "definition": "Übergeordnete Kategorie des Dokuments auf das verwiesen wird (z.B. Arztberichte oder Arztdokumentation)",
      "short": "Kategorien des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.category",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Dokumentenkategorie",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Dokumentenkategorie"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Patient",
      "min": 0,
      "definition": "Patient auf den sich das verwiesene Dokument bezieht",
      "short": "Verweis auf Patient",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "DocumentReference.subject",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Patient",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Patient"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Beschreibung",
      "min": 0,
      "definition": "Menschenlesbare Beschreibung zum verwiesenen Dokuments",
      "short": "Beschreibung des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.description",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Beschreibung",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Beschreibung"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Sicherheitsstufe",
      "min": 0,
      "definition": "Grad der Vertraulichkeit/Sicherheit des verwiesenen Dokuments (z. B. uneingeschränkt, gering, mittel, normal oder eingeschränkt)",
      "short": "Vertraulichkeit des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.securityLabel",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Sicherheitsstufe",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Sicherheitsstufe"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung",
      "min": 0,
      "definition": "Beziehungen des verwiesenen Dokuments zu anderen Dokumenten",
      "short": "Beziehung des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.relatesTo",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "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"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung"
      }
    }, {
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.extension",
      "min": 0,
      "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.",
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.extension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.modifierExtension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungstyp",
      "min": 1,
      "definition": "Beziehung zu anderen Dokumenten",
      "short": "Art der Beziehung",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.relatesTo.code",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungstyp",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 1,
        "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungstyp"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungsreferenz",
      "min": 1,
      "definition": "Ziel der Dokumentenbeziehung",
      "short": "Verweis auf Dokument",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "DocumentReference.relatesTo.target",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungsreferenz",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 1,
        "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungsreferenz"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang",
      "min": 1,
      "definition": "Dokument (Base64-kodierte Daten) oder Verweis (URL) mit relevanten Metadaten zum Anhang",
      "short": "Inhalt des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.content",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "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"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Anhang",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 1,
        "path": "mii-lm-dokument.Dokument.Anhang"
      }
    }, {
      "path": "mii-lm-dokument.Dokument.Anhang.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.extension",
      "min": 0,
      "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.",
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Anhang.extension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Anhang.modifierExtension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.Sprache",
      "min": 0,
      "definition": "Verwendete Sprache in dem Dokument",
      "short": "Verfassungssprache des Inhalts",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.attachment.language",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.Sprache",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Anhang.Sprache"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.Erstellungsdatum",
      "min": 0,
      "definition": "Datum der Erstellung des Dokumentes",
      "short": "Erstellungsdatum des Inhalts",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.attachment.creation",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.Erstellungsdatum",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Anhang.Erstellungsdatum"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.Daten",
      "min": 0,
      "definition": "Dokument als Binärdaten",
      "short": "Binärdaten zum Inhalt",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.attachment.data",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "base64Binary"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.Daten",
      "condition": [ "ele-1" ],
      "comment": "A stream of bytes, base64 encoded",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Anhang.Daten"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.DokumentenUrl",
      "min": 0,
      "definition": "Verweis auf den (lokalen) Ablageort des Dokuments",
      "short": "URL zum Inhalt",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.attachment.url",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.DokumentenUrl",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Anhang.DokumentenUrl"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Anhang.Dokumentenformat",
      "min": 0,
      "definition": "MIME-Typ des Dokumenteninhalts",
      "short": "MIME-Typ zum Inhalt",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.attachment.contentType",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Anhang.Dokumentenformat",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Anhang.Dokumentenformat"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext",
      "min": 0,
      "definition": "Klinischer Kontext, in welchem das Dokument erzeugt wurde",
      "short": "Erzeugungskontext des Dokuments",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.context",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Kontext",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext"
      }
    }, {
      "path": "mii-lm-dokument.Dokument.Kontext.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Kontext.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.extension",
      "min": 0,
      "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.",
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Kontext.extension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Kontext.modifierExtension",
      "condition": [ "ele-1" ],
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.Gesundheitseinrichtungskontakt",
      "min": 0,
      "definition": "Kontakt zur Gesundheitseinrichtung oder die Art der Versorgung, die mit dem Dokumenteninhalt assoziiert ist",
      "short": "Verweis auf Einrichtungskontakt",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "DocumentReference.context.encounter",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "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"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Kontext.Gesundheitseinrichtungskontakt",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext.Gesundheitseinrichtungskontakt"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.Vorgang",
      "min": 0,
      "definition": "Handlungen oder Prozeduren, die im Kontext dokumentiert wurden",
      "short": "Dokumentierter Vorgang",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.context.event",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "*",
      "id": "mii-lm-dokument.Dokument.Kontext.Vorgang",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "*",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext.Vorgang"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.Fachgebiet",
      "min": 0,
      "definition": "Klinisches Fachgebiet, in dem Dokumenteninhalt erstellt wurde",
      "short": "Klinisches Fachgebiet zum Vorgang",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.context.practiceSetting",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Kontext.Fachgebiet",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext.Fachgebiet"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "per-1",
        "human": "If present, start SHALL have a lower value than end",
        "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
        "source": "http://hl7.org/fhir/StructureDefinition/Period",
        "severity": "error",
        "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.Dokumentationszeitraum",
      "min": 0,
      "definition": "Zeitraum, in dem die in dem Dokument beschriebene Handlung oder Prozedur durchgeführt wurde",
      "short": "Durchführungszeitraum zum Vorgang",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR",
        "identity": "v2"
      }, {
        "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]",
        "identity": "rim"
      }, {
        "map": "DocumentReference.context.period",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "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"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Kontext.Dokumentationszeitraum",
      "condition": [ "ele-1" ],
      "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext.Dokumentationszeitraum"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "mii-lm-dokument.Dokument.Kontext.Einrichtungsart",
      "min": 0,
      "definition": "Art der Einrichtung, in der die Handlung oder Prozedur am Patienten erfolgte",
      "short": "Art der Einrichtung zum Vorgang",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DocumentReference.context.facilityType",
        "identity": "mii-map-dokument"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "mii-lm-dokument.Dokument.Kontext.Einrichtungsart",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 0,
        "path": "mii-lm-dokument.Dokument.Kontext.Einrichtungsart"
      }
    } ]
  },
  "status": "active",
  "id": "3b06abae-f2a4-45e3-a76b-5403dbf9c0a5",
  "kind": "logical",
  "url": "https://www.medizininformatik-initiative.de/fhir/ext/modul-dokument/StructureDefinition/mii-lm-dokument",
  "version": "2027.0.0-ballot.rc1",
  "differential": {
    "element": [ {
      "id": "mii-lm-dokument",
      "path": "mii-lm-dokument",
      "short": "MII LM Dokument",
      "definition": "MII Logical Model KDS-Modul Dokument"
    }, {
      "id": "mii-lm-dokument.Dokument",
      "max": "1",
      "min": 1,
      "path": "mii-lm-dokument.Dokument",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Dokument",
      "mapping": [ {
        "map": "DocumentReference",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Klinisches Dokument inkl. Metadaten, Inhalt, Erzeugungskontext und Beziehungen"
    }, {
      "id": "mii-lm-dokument.Dokument.Masteridentifikator",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Masteridentifikator",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Versionsspezifische Kennung",
      "mapping": [ {
        "map": "DocumentReference.masterIdentifier",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Versionsspezifische eindeutige Kennung, die dem Dokument durch die Dokumentenquelle zugewiesen wurde"
    }, {
      "id": "mii-lm-dokument.Dokument.Businessidentifikator",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Businessidentifikator",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Versionsunabhängige Kennung",
      "mapping": [ {
        "map": "DocumentReference.identifier",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Andere versionsunabhängige Kennung, die dem Dokument (z.B. durch weitere dokumentenverarbeitende Systeme) zugewiesen wurde"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenreferenzstatus",
      "max": "1",
      "min": 1,
      "path": "mii-lm-dokument.Dokument.Dokumentenreferenzstatus",
      "type": [ {
        "code": "code"
      } ],
      "short": "Status der Dokumentenreferenz",
      "mapping": [ {
        "map": "DocumentReference.status",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Status dieser Dokumentenreferenz (aktuell, überholt oder irrtümlich eingegeben)"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenstatus",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Dokumentenstatus",
      "type": [ {
        "code": "code"
      } ],
      "short": "Status des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.docStatus",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Status des zugrunde liegenden Dokuments (vorläufig, final, geändert oder irrtümlich eingegeben)"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumententyp",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Dokumententyp",
      "type": [ {
        "code": "code"
      } ],
      "short": "Art des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.type",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Art des Dokuments auf das verwiesen wird (z.B. Anamnese und Untersuchung, Entlassungsbericht, Verlaufsbericht)"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenkategorie",
      "max": "*",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Dokumentenkategorie",
      "type": [ {
        "code": "code"
      } ],
      "short": "Kategorien des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.category",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Übergeordnete Kategorie des Dokuments auf das verwiesen wird (z.B. Arztberichte oder Arztdokumentation)"
    }, {
      "id": "mii-lm-dokument.Dokument.Patient",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Patient",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Verweis auf Patient",
      "mapping": [ {
        "map": "DocumentReference.subject",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Patient auf den sich das verwiesene Dokument bezieht"
    }, {
      "id": "mii-lm-dokument.Dokument.Beschreibung",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Beschreibung",
      "type": [ {
        "code": "string"
      } ],
      "short": "Beschreibung des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.description",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Menschenlesbare Beschreibung zum verwiesenen Dokuments"
    }, {
      "id": "mii-lm-dokument.Dokument.Sicherheitsstufe",
      "max": "*",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Sicherheitsstufe",
      "type": [ {
        "code": "code"
      } ],
      "short": "Vertraulichkeit des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.securityLabel",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Grad der Vertraulichkeit/Sicherheit des verwiesenen Dokuments (z. B. uneingeschränkt, gering, mittel, normal oder eingeschränkt)"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung",
      "max": "*",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Beziehung des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.relatesTo",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Beziehungen des verwiesenen Dokuments zu anderen Dokumenten"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungstyp",
      "max": "1",
      "min": 1,
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungstyp",
      "type": [ {
        "code": "code"
      } ],
      "short": "Art der Beziehung",
      "mapping": [ {
        "map": "DocumentReference.relatesTo.code",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Beziehung zu anderen Dokumenten"
    }, {
      "id": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungsreferenz",
      "max": "1",
      "min": 1,
      "path": "mii-lm-dokument.Dokument.Dokumentenbeziehung.Beziehungsreferenz",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Verweis auf Dokument",
      "mapping": [ {
        "map": "DocumentReference.relatesTo.target",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Ziel der Dokumentenbeziehung"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang",
      "max": "*",
      "min": 1,
      "path": "mii-lm-dokument.Dokument.Anhang",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Inhalt des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.content",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Dokument (Base64-kodierte Daten) oder Verweis (URL) mit relevanten Metadaten zum Anhang"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang.Sprache",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Anhang.Sprache",
      "type": [ {
        "code": "code"
      } ],
      "short": "Verfassungssprache des Inhalts",
      "mapping": [ {
        "map": "DocumentReference.attachment.language",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Verwendete Sprache in dem Dokument"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang.Erstellungsdatum",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Anhang.Erstellungsdatum",
      "type": [ {
        "code": "dateTime"
      } ],
      "short": "Erstellungsdatum des Inhalts",
      "mapping": [ {
        "map": "DocumentReference.attachment.creation",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Datum der Erstellung des Dokumentes"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang.Daten",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Anhang.Daten",
      "type": [ {
        "code": "base64Binary"
      } ],
      "short": "Binärdaten zum Inhalt",
      "mapping": [ {
        "map": "DocumentReference.attachment.data",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Dokument als Binärdaten"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang.DokumentenUrl",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Anhang.DokumentenUrl",
      "type": [ {
        "code": "string"
      } ],
      "short": "URL zum Inhalt",
      "mapping": [ {
        "map": "DocumentReference.attachment.url",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Verweis auf den (lokalen) Ablageort des Dokuments"
    }, {
      "id": "mii-lm-dokument.Dokument.Anhang.Dokumentenformat",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Anhang.Dokumentenformat",
      "type": [ {
        "code": "code"
      } ],
      "short": "MIME-Typ zum Inhalt",
      "mapping": [ {
        "map": "DocumentReference.attachment.contentType",
        "identity": "mii-map-dokument"
      } ],
      "definition": "MIME-Typ des Dokumenteninhalts"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "short": "Erzeugungskontext des Dokuments",
      "mapping": [ {
        "map": "DocumentReference.context",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Klinischer Kontext, in welchem das Dokument erzeugt wurde"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext.Gesundheitseinrichtungskontakt",
      "max": "*",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext.Gesundheitseinrichtungskontakt",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Verweis auf Einrichtungskontakt",
      "mapping": [ {
        "map": "DocumentReference.context.encounter",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Kontakt zur Gesundheitseinrichtung oder die Art der Versorgung, die mit dem Dokumenteninhalt assoziiert ist"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext.Vorgang",
      "max": "*",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext.Vorgang",
      "type": [ {
        "code": "code"
      } ],
      "short": "Dokumentierter Vorgang",
      "mapping": [ {
        "map": "DocumentReference.context.event",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Handlungen oder Prozeduren, die im Kontext dokumentiert wurden"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext.Fachgebiet",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext.Fachgebiet",
      "type": [ {
        "code": "code"
      } ],
      "short": "Klinisches Fachgebiet zum Vorgang",
      "mapping": [ {
        "map": "DocumentReference.context.practiceSetting",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Klinisches Fachgebiet, in dem Dokumenteninhalt erstellt wurde"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext.Dokumentationszeitraum",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext.Dokumentationszeitraum",
      "type": [ {
        "code": "Period"
      } ],
      "short": "Durchführungszeitraum zum Vorgang",
      "mapping": [ {
        "map": "DocumentReference.context.period",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Zeitraum, in dem die in dem Dokument beschriebene Handlung oder Prozedur durchgeführt wurde"
    }, {
      "id": "mii-lm-dokument.Dokument.Kontext.Einrichtungsart",
      "max": "1",
      "min": 0,
      "path": "mii-lm-dokument.Dokument.Kontext.Einrichtungsart",
      "type": [ {
        "code": "code"
      } ],
      "short": "Art der Einrichtung zum Vorgang",
      "mapping": [ {
        "map": "DocumentReference.context.facilityType",
        "identity": "mii-map-dokument"
      } ],
      "definition": "Art der Einrichtung, in der die Handlung oder Prozedur am Patienten erfolgte"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "https://www.medizininformatik-initiative.de",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element"
}