<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="medmij-core-lm-Base" />
  <text>
    <status value="empty" />
    <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>
  </text>
  <url value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-Base" />
  <identifier>
    <use value="official" />
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:2.16.528.1.1023.3.6.5" />
  </identifier>
  <name value="MedMijCoreLmBase" />
  <title value="Base" />
  <status value="active" />
  <publisher value="MedMij" />
  <contact>
    <name value="MedMij" />
    <telecom>
      <system value="email" />
      <value value="info@medmij.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="All CIMs implicitly contain a number of basic concepts, such as an identification number or a reference to the patient the data belongs to. These are usually not included in the information models of the individual CIMs, but are supposed to be present. These are concepts that are of a more technical nature, sometimes have little or no clinical relevance, but are necessary for the sake of clarity and readability of the information. These basic concepts are collected in this Base model.&#xA;&#xA;Whenever similar concepts are in fact of clinical significance in the context of a certain CIM, they will be explicitly added in the information model of that CIM. An example of this is the inclusion of a healthcare provider reference to convey the relevant location in a CIM like Encounter or Procedure (next to the HealthcareProvider concept (medmij-core-dataelement-117) already present in this Base model), since the location where an encounter took place or where a procedure was carried out might be of clinical significance. Moreover, identification numbers with clinical significance such as AGB or UZI, might be added explicitly in certain CIMs (next to the IdentificationNumber concept (medmij-core-dataelement-115) already present in this Base model)." />
  <purpose value="This LogicalModel represents the base model for patient use cases in the context of MedMij. It takes inspiration from the Dutch zibs ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) [BasicElements v1.0 (2017)](https://zibs.nl/wiki/BasicElements-v1.0(2017EN)) and [RegistrationData v1.1.2 (2024)](https://www.zibs.nl/wiki/RegistrationData-v1.1.2(2024EN)), as well as the [EHDS DataSet model](https://www.xt-ehr.eu/fhir/models/1.0.0/en/StructureDefinition-EHDSDataSet.html), and is adjusted such that it is suitable for implementation purposes in the context of MedMij. Note that there is no zib in publication 2020 equivalent to the zib BasicElements from publication 2017 or the zib RegistrationData from publication 2024, hence a custom base model has been introduced." />
  <copyright value="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 value="4.0.1" />
  <mapping>
    <identity value="zib-basicelements-v1.0-2017EN" />
    <uri value="https://zibs.nl/wiki/BasicElements-v1.0(2017EN)" />
    <name value="zib BasicElements-v1.0(2017EN)" />
  </mapping>
  <mapping>
    <identity value="zib-registrationdata-v1.1.2-2024EN" />
    <uri value="https://www.zibs.nl/wiki/RegistrationData-v1.1.2(2024EN)" />
    <name value="zib RegistrationData-v1.1.2(2024EN)" />
  </mapping>
  <mapping>
    <identity value="ehds-dataset-v1.0.0" />
    <uri value="https://www.xt-ehr.eu/fhir/models/1.0.0/en/StructureDefinition-EHDSDataSet.html" />
    <name value="EHDS DataSet v1.0.0" />
  </mapping>
  <mapping>
    <identity value="medmij-core-dataset-120-20260923" />
    <name value="Dataset MedMij R4 Core 1.2.0 20260923" />
  </mapping>
  <mapping>
    <identity value="SNOMED" />
    <uri value="http://snomed.info/sct" />
    <name value="SNOMED CT" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-Base" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="medmij-core-lm-Base">
      <path value="medmij-core-lm-Base" />
      <short value="Base" />
      <definition value="All CIMs implicitly contain a number of basic concepts, such as an identification number or a reference to the patient the data belongs to. These are usually not included in the information models of the individual CIMs, but are supposed to be present. These are concepts that are of a more technical nature, sometimes have little or no clinical relevance, but are necessary for the sake of clarity and readability of the information. These basic concepts are collected in this Base model.&#xA;&#xA;Whenever similar concepts are in fact of clinical significance in the context of a certain CIM, they will be explicitly added in the information model of that CIM. An example of this is the inclusion of a healthcare provider reference to convey the relevant location in a CIM like Encounter or Procedure (next to the HealthcareProvider concept (medmij-core-dataelement-117) already present in this Base model), since the location where an encounter took place or where a procedure was carried out might be of clinical significance. Moreover, identification numbers with clinical significance such as AGB or UZI, might be added explicitly in certain CIMs (next to the IdentificationNumber concept (medmij-core-dataelement-115) already present in this Base model)." />
      <alias value="Basis" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="medmij-core-lm-Base" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.1" />
        <comment value="HCIMRoot" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.1" />
        <comment value="RegistrationData" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet" />
        <comment value="EHDSDataSet" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-114" />
        <comment value="Base" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.id">
      <path value="medmij-core-lm-Base.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.extension">
      <path value="medmij-core-lm-Base.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="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 value="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 value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.IdentificationNumber">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.IdentificationNumber" />
      <short value="Identification number" />
      <definition value="Globally unique number that identifies the instantiation of the CIM. The number is composed of an identification of the issuer organization and a unique number assigned by this organization." />
      <alias value="Identificatienummer" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="medmij-core-lm-Base.IdentificationNumber" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="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]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.12" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.identifier" />
        <comment value="identifier" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-115" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="396278008" />
        <comment value="identificatienummer" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Patient">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.Patient" />
      <short value="Patient" />
      <definition value="The patient as subject of the information." />
      <comment value="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 value="Patiënt" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="medmij-core-lm-Base.Patient" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-Patient" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))" />
        <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.12" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.subject" />
        <comment value="subject" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-116" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="131195008" />
        <comment value="onderwerp van informatie" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.HealthcareProvider">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.HealthcareProvider" />
      <short value="Healthcare provider" />
      <definition value="The healthcare provider where the information is recorded and/or that is responsible for the information." />
      <comment value="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 value="Zorgaanbieder" />
      <alias value="Zorgorganisatie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="medmij-core-lm-Base.HealthcareProvider" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthcareProvider" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))" />
        <xpath value="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 value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.9" />
        <comment value="HealthProfessionalAsAuthor (implicit, actual mapping is on HealthProfessionalAsAuthor::HealthProfessional.HealthcareProvider (NL-CM:17.1.6))" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.2" />
        <comment value="Author (implicit, actual mapping is on Author::HealthProfessional.HealthcareProvider (NL-CM:17.1.6))" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.authorEHDSOrganisation" />
        <comment value="authorEHDSOrganisation" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-117" />
        <comment value="HealthcareProvider" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.Effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Effective" />
      <definition value="The time or period the event to which the information relates took place. This is the medically relevant time or period." />
      <alias value="Tijdsindicatie" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="medmij-core-lm-Base.Effective[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-118" />
        <comment value="Effective" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectiveDateTime">
      <path value="medmij-core-lm-Base.Effective[x]" />
      <sliceName value="EffectiveDateTime" />
      <short value="Effective date time" />
      <definition value="The time the event to which the information relates took place. This is the medically relevant time." />
      <alias value="DatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="medmij-core-lm-Base.Effective[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-119" />
        <comment value="EffectiveDateTime" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="439771001" />
        <comment value="datum van gebeurtenis" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.Effective[x]" />
      <sliceName value="EffectivePeriod" />
      <short value="Effective period" />
      <definition value="The period the event to which the information relates took place. This is the medically relevant period." />
      <comment value="A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. &quot;the patient was an inpatient of the hospital for this time range&quot;) or one value from the range applies (e.g. &quot;give to the patient between these two times&quot;).&#xA;&#xA;Period is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration)." />
      <alias value="Periode" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="medmij-core-lm-Base.Effective[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Period" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="per-1" />
        <severity value="error" />
        <human value="If present, start SHALL have a lower value than end" />
        <expression value="start.hasValue().not() or end.hasValue().not() or (start &lt;= end)" />
        <xpath value="not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) &lt;= xs:dateTime(f:end/@value))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Period" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="DR" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-120" />
        <comment value="EffectivePeriod" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.id">
      <path value="medmij-core-lm-Base.Effective[x].id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.extension">
      <path value="medmij-core-lm-Base.Effective[x].extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="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 value="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 value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.start">
      <path value="medmij-core-lm-Base.Effective[x].start" />
      <short value="Start date time" />
      <definition value="The start date (and if possible start time) of the event to which the information relates. This is the medically relevant start date time." />
      <comment value="The EffectivePeriod.start is often referred to as StartDateTime." />
      <alias value="StartDatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Period.start" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <condition value="ele-1" />
      <condition value="per-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="DR.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./low" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-121" />
        <comment value="StartDateTime" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.end">
      <path value="medmij-core-lm-Base.Effective[x].end" />
      <short value="End date time" />
      <definition value="The end date (and if possible end time) of the event to which the information relates. This is the medically relevant end date time. If the event still continues, the end date is not populated." />
      <comment value="The EffectivePeriod.end is often referred to as EndDateTime." />
      <alias value="EindDatumTijd" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Period.end" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="dateTime" />
      </type>
      <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" />
      <condition value="ele-1" />
      <condition value="per-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="DR.2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./high" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-122" />
        <comment value="EndDateTime" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.CareType">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="medmij-core-lm-Base.CareType" />
      <short value="Care type" />
      <definition value="The type of the healthcare provider responsible for the delivered care, or more specifically, the specialty of the department and/or health professional that delivered care. It enables patients and systems to interpret the origin and context of medical data." />
      <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination." />
      <alias value="Zorgtype" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="medmij-core-lm-Base.CareType" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.2.4--20200901000000" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-123" />
        <comment value="CareType" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="medmij-core-lm-Base">
      <path value="medmij-core-lm-Base" />
      <short value="Base" />
      <definition value="All CIMs implicitly contain a number of basic concepts, such as an identification number or a reference to the patient the data belongs to. These are usually not included in the information models of the individual CIMs, but are supposed to be present. These are concepts that are of a more technical nature, sometimes have little or no clinical relevance, but are necessary for the sake of clarity and readability of the information. These basic concepts are collected in this Base model.&#xA;&#xA;Whenever similar concepts are in fact of clinical significance in the context of a certain CIM, they will be explicitly added in the information model of that CIM. An example of this is the inclusion of a healthcare provider reference to convey the relevant location in a CIM like Encounter or Procedure (next to the HealthcareProvider concept (medmij-core-dataelement-117) already present in this Base model), since the location where an encounter took place or where a procedure was carried out might be of clinical significance. Moreover, identification numbers with clinical significance such as AGB or UZI, might be added explicitly in certain CIMs (next to the IdentificationNumber concept (medmij-core-dataelement-115) already present in this Base model)." />
      <alias value="Basis" />
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.1" />
        <comment value="HCIMRoot" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.1" />
        <comment value="RegistrationData" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet" />
        <comment value="EHDSDataSet" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-114" />
        <comment value="Base" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.IdentificationNumber">
      <path value="medmij-core-lm-Base.IdentificationNumber" />
      <short value="Identification number" />
      <definition value="Globally unique number that identifies the instantiation of the CIM. The number is composed of an identification of the issuer organization and a unique number assigned by this organization." />
      <alias value="Identificatienummer" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.6" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.12" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.identifier" />
        <comment value="identifier" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-115" />
        <comment value="IdentificationNumber" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="396278008" />
        <comment value="identificatienummer" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Patient">
      <path value="medmij-core-lm-Base.Patient" />
      <short value="Patient" />
      <definition value="The patient as subject of the information." />
      <alias value="Patiënt" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-Patient" />
      </type>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.12" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.subject" />
        <comment value="subject" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-116" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="131195008" />
        <comment value="onderwerp van informatie" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.HealthcareProvider">
      <path value="medmij-core-lm-Base.HealthcareProvider" />
      <short value="Healthcare provider" />
      <definition value="The healthcare provider where the information is recorded and/or that is responsible for the information." />
      <alias value="Zorgaanbieder" />
      <alias value="Zorgorganisatie" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medmij.nl/fhir/StructureDefinition/medmij-core-lm-HealthcareProvider" />
      </type>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.9" />
        <comment value="HealthProfessionalAsAuthor (implicit, actual mapping is on HealthProfessionalAsAuthor::HealthProfessional.HealthcareProvider (NL-CM:17.1.6))" />
      </mapping>
      <mapping>
        <identity value="zib-registrationdata-v1.1.2-2024EN" />
        <map value="NL-CM:22.1.2" />
        <comment value="Author (implicit, actual mapping is on Author::HealthProfessional.HealthcareProvider (NL-CM:17.1.6))" />
      </mapping>
      <mapping>
        <identity value="ehds-dataset-v1.0.0" />
        <map value="EHDSDataSet.header.authorEHDSOrganisation" />
        <comment value="authorEHDSOrganisation" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-117" />
        <comment value="HealthcareProvider" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]">
      <path value="medmij-core-lm-Base.Effective[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Effective" />
      <definition value="The time or period the event to which the information relates took place. This is the medically relevant time or period." />
      <alias value="Tijdsindicatie" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-118" />
        <comment value="Effective" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectiveDateTime">
      <path value="medmij-core-lm-Base.Effective[x]" />
      <sliceName value="EffectiveDateTime" />
      <short value="Effective date time" />
      <definition value="The time the event to which the information relates took place. This is the medically relevant time." />
      <alias value="DatumTijd" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <mapping>
        <identity value="zib-basicelements-v1.0-2017EN" />
        <map value="NL-CM:0.0.14" />
        <comment value="DateTime" />
      </mapping>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-119" />
        <comment value="EffectiveDateTime" />
      </mapping>
      <mapping>
        <identity value="SNOMED" />
        <map value="439771001" />
        <comment value="datum van gebeurtenis" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod">
      <path value="medmij-core-lm-Base.Effective[x]" />
      <sliceName value="EffectivePeriod" />
      <short value="Effective period" />
      <definition value="The period the event to which the information relates took place. This is the medically relevant period." />
      <alias value="Periode" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-120" />
        <comment value="EffectivePeriod" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.start">
      <path value="medmij-core-lm-Base.Effective[x].start" />
      <short value="Start date time" />
      <definition value="The start date (and if possible start time) of the event to which the information relates. This is the medically relevant start date time." />
      <comment value="The EffectivePeriod.start is often referred to as StartDateTime." />
      <alias value="StartDatumTijd" />
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-121" />
        <comment value="StartDateTime" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.Effective[x]:EffectivePeriod.end">
      <path value="medmij-core-lm-Base.Effective[x].end" />
      <short value="End date time" />
      <definition value="The end date (and if possible end time) of the event to which the information relates. This is the medically relevant end date time. If the event still continues, the end date is not populated." />
      <comment value="The EffectivePeriod.end is often referred to as EndDateTime." />
      <alias value="EindDatumTijd" />
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-122" />
        <comment value="EndDateTime" />
      </mapping>
    </element>
    <element id="medmij-core-lm-Base.CareType">
      <path value="medmij-core-lm-Base.CareType" />
      <short value="Care type" />
      <definition value="The type of the healthcare provider responsible for the delivered care, or more specifically, the specialty of the department and/or health professional that delivered care. It enables patients and systems to interpret the origin and context of medical data." />
      <alias value="Zorgtype" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.17.2.4--20200901000000" />
      </binding>
      <mapping>
        <identity value="medmij-core-dataset-120-20260923" />
        <map value="medmij-core-dataelement-123" />
        <comment value="CareType" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>