<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nordic-middlename" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2018-06-13T12:23:00.348+00:00" />
  </meta>
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml" />
  </text>
  <url value="http://hl7.nordic/fhir/StructureDefinition/nordic-middlename" />
  <version value="0.1.0" />
  <name value="NordicMiddlename" />
  <title value="Nordic middlename" />
  <status value="draft" />
  <date value="2019-09-10" />
  <publisher value="Direktoratet for e-helse" />
  <description value="The basis extension defines the Nordic middlename wich is called &quot;mellomnavn&quot;, &quot;mellemnavn&quot; or &quot;Mellannamn&quot; and defined by legislation in each country." />
  <jurisdiction>
    <text value="Norway" />
  </jurisdiction>
  <jurisdiction>
    <text value="Sweden" />
  </jurisdiction>
  <jurisdiction>
    <text value="Denmark" />
  </jurisdiction>
  <purpose value="Specific usage of middle name as a specific part of official name standard where name order is important&#xD;&#xA;&#xD;&#xA;The Nordic middlename is usually defined as a separate entity in the legislation of the Nordic countries. It is not considered a part of the given or family name but as a separate entity with specific use and definition. The legislation varies in the three countries where this concept is defined, but the main concept of the middlename is similar. The three countries where middlename is mentioned by legislation is Sweden, Denmark and Norway." />
  <fhirVersion value="4.0.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Patient.name" />
  </context>
  <context>
    <type value="element" />
    <expression value="HumanName" />
  </context>
  <context>
    <type value="element" />
    <expression value="Patient" />
  </context>
  <context>
    <type value="fhirpath" />
    <expression value="Patient.name" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Defines a Nordic middle name" />
      <definition value="The basis extension defines the Nordic middlename and defined by legislation." />
      <comment value="The Nordic middlename is usually defined as a separate entity in the legislation of the Nordic countries. It is not considered a part of the given or family name but as a separate entity with specific use and definition. The legislation varies in the three countries where this concept is defined, but the main concept of the middlename is similar. The three countries where middlename is mentioned by legislation is Sweden, Denmark and Norway." />
      <alias value="mellomnavn" />
      <alias value="mellannamn" />
      <alias value="mellemnavn" />
      <max value="1" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.nordic/fhir/StructureDefinition/nordic-middlename" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
      </slicing>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.value[x]:valueString">
      <path value="Extension.value[x]" />
      <sliceName value="valueString" />
      <short value="The middlename" />
      <definition value="The middle name of the person according to the country legislation." />
      <alias value="mellomnavn" />
      <alias value="mellemnavn" />
      <alias value="mellannamn" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.uri">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.nordic/fhir/StructureDefinition/nordic-middlename" />
    </element>
  </differential>
</StructureDefinition>