<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="gd-Identifier-foreign" />
  <url value="http://ehelse.no/fhir/StructureDefinition/gd-Identifier-foreign" />
  <version value="2.3.3" />
  <name value="GdIdentifierForeign" />
  <status value="draft" />
  <date value="2019-10-16" />
  <description value="Identification number from foreign authority or the identifier value from the Norwegian immigration administration.&#xD;&#xA;&#xD;&#xA;The GdIdentifierForeign profile describes the structure and coding of how to identify official Norwegian human identifiers used to identify foreign citizens registered in FREG. The profile establishes how the business identifiers used to identify foreign citizens should be coded using type.coding and value.&#xD;&#xA;&#xD;&#xA;utenlandsk personidentifikasjon: informasjon om et personidentifikasjonsnummer fra en utenlandsk myndighet&#xD;&#xA;&#xD;&#xA;utlendingsmyndighetenes identifikasjonsnummer: personidentifikasjonsnummer for person som blir førstegangsregistrert i landet av utlendingsmyndighetene. Dette nummeret går i dag ofte under navnet DUF-nummer" />
  <fhirVersion value="4.0.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Identifier" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Identifier" />
  <derivation value="constraint" />
  <differential>
    <element id="Identifier">
      <path value="Identifier" />
      <short value="foreign identification" />
      <definition value="Identification number from foreign authority or the identifier value from the Norwegian immigration administration." />
      <comment value="utenlandsk personidentifikasjon: informasjon om et personidentifikasjonsnummer fra en utenlandsk myndighet&#xD;&#xA;&#xD;&#xA;utlendingsmyndighetenes identifikasjonsnummer: personidentifikasjonsnummer for person som blir førstegangsregistrert i landet av utlendingsmyndighetene. Dette nummeret går i dag ofte under navnet DUF-nummer" />
      <alias value="utenlandsk personidentifikasjon" />
      <alias value="utlendingsmyndighetenes identifikasjonsnummer" />
      <alias value="DUF-nummer" />
      <alias value="Personidentifikasjon" />
    </element>
    <element id="Identifier.extension">
      <path value="Identifier.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Identifier.extension:fregMetadata">
      <path value="Identifier.extension" />
      <sliceName value="fregMetadata" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/gd-fregmetadata" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Identifier.extension:country">
      <path value="Identifier.extension" />
      <sliceName value="country" />
      <short value="Country where the intentifier is issued" />
      <definition value="Country where the intentifier is issued. Represented by iso 3166 alpha 3 code" />
      <alias value="utstederland" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://ehelse.no/fhir/StructureDefinition/gd-country-code-3166-1-3" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Identifier.use">
      <path value="Identifier.use" />
      <definition value="This element is not used by gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;The purpose of this identifier." />
    </element>
    <element id="Identifier.type">
      <path value="Identifier.type" />
      <definition value="FREG identifies four different types of foreign identifiers, the kind of identifier in this instance is a coded value from the ValueSet.&#xD;&#xA;&#xD;&#xA;A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
      <alias value="identifikasjonsnummertype" />
      <binding>
        <strength value="extensible" />
        <description value="Identifier type of foreign person identifier" />
        <valueSet value="http://ehelse.no/fhir/ValueSet/gd-person-identificationnumbertype" />
      </binding>
    </element>
    <element id="Identifier.type.coding">
      <path value="Identifier.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Identifier.type.coding.system">
      <path value="Identifier.type.coding.system" />
      <definition value="The identification number type of this gdIdentifierForeign.&#xD;&#xA;&#xD;&#xA;The identification of the code system that defines the meaning of the symbol in the code." />
      <fixedUri value="http://ehelse.no/fhir/CodeSystem/gd-person-identificationnumbertype" />
      <mustSupport value="true" />
    </element>
    <element id="Identifier.type.coding.code">
      <path value="Identifier.type.coding.code" />
      <definition value="The type of foreign identifier for this Person.&#xD;&#xA;&#xD;&#xA;A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Identifier.system">
      <path value="Identifier.system" />
      <definition value="This element is not used by gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
      <fixedUri value="http://ehelse.no/fhir/CodeSystem/gd-person-identificationnumbertype" />
      <mustSupport value="false" />
    </element>
    <element id="Identifier.value">
      <path value="Identifier.value" />
      <definition value="The actual identifier value of the gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <alias value="identifikasjonsnummer" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Identifier.period">
      <path value="Identifier.period" />
      <definition value="This element is not used by gd-Identifier-foreign, period is set in the extension containing fregMetadata&#xD;&#xA;&#xD;&#xA;Time period during which identifier is/was valid for use." />
      <comment value="This element is not used by gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;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)." />
    </element>
    <element id="Identifier.assigner">
      <path value="Identifier.assigner" />
      <definition value="This element is not used by gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;Organization that issued/manages the identifier." />
      <comment value="This element is not used by gd-Identifier-foreign&#xD;&#xA;&#xD;&#xA;The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
    </element>
  </differential>
</StructureDefinition>