<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="no-basis-Patient" />
  <meta>
    <versionId value="3" />
    <lastUpdated value="2018-06-15T13:55:18.157+00:00" />
  </meta>
  <url value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
  <version value="1.0" />
  <name value="no-basis-Patient" />
  <status value="active" />
  <date value="2018-10-26" />
  <description value="Basisprofil for Norwegian Patient information. Defined by The Norwegian Directorate of eHealth and HL7 Norway. Should be used as a basis for further profiling in use-cases where specific identity information is needed. The basis profile is open, but derived profiles should close down the information elements according to specification relevant to the use-case." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient">
      <path value="Patient" />
      <alias value="Pasient" />
    </element>
    <element id="Patient.extension">
      <path value="Patient.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.extension:urbanDistrict">
      <path value="Patient.extension" />
      <sliceName value="urbanDistrict" />
      <short value="The urban district" />
      <definition value="The name and number of the of the urban district where the patient has registered home address." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-urban-district" />
      </type>
    </element>
    <element id="Patient.extension:urbanDistrict.valueCoding:valueCoding.system">
      <path value="Patient.extension.valueCoding.system" />
      <definition value="If coded this information should be coded according to CodeSystem urn:oid:2.16.578.1.12.4.1.1.3403.&#xD;&#xA;The official urban district CodeSystem is maintained by Statistisk sentralbyrå" />
    </element>
    <element id="Patient.extension:urbanDistrict.valueCoding:valueCoding.code">
      <path value="Patient.extension.valueCoding.code" />
      <short value="Urban district code" />
      <alias value="bydelskode" />
    </element>
    <element id="Patient.extension:urbanDistrict.valueCoding:valueCoding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Patient.extension.valueCoding.display" />
      <alias value="bydelsnavn" />
    </element>
    <element id="Patient.extension:nationality">
      <path value="Patient.extension" />
      <sliceName value="nationality" />
      <short value="The Nationality of the patient" />
      <definition value="The nationality of the patient. should be a country code from ISO 3166-1 code system" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-nationality" />
      </type>
      <binding>
        <strength value="required" />
        <valueSetUri value="urn:iso:std:iso:3166" />
      </binding>
    </element>
    <element id="Patient.extension:nationality.extension:code">
      <path value="Patient.extension.extension" />
      <sliceName value="code" />
    </element>
    <element id="Patient.extension:nationality.extension:code.valueCodeableConcept:valueCodeableConcept">
      <path value="Patient.extension.extension.valueCodeableConcept" />
      <sliceName value="valueCodeableConcept" />
    </element>
    <element id="Patient.extension:nationality.extension:period">
      <path value="Patient.extension.extension" />
      <sliceName value="period" />
    </element>
    <element id="Patient.extension:nationality.extension:period.valuePeriod:valuePeriod">
      <path value="Patient.extension.extension.valuePeriod" />
      <sliceName value="valuePeriod" />
    </element>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Identifier for this patient" />
      <definition value="An identifier for this patient. Should be at Fødselsnummer, Felles hjelpenummer, D-nummer or locally assigned H-nummer" />
    </element>
    <element id="Patient.identifier:FNR">
      <path value="Patient.identifier" />
      <sliceName value="FNR" />
      <short value="Norwegian FNR" />
      <definition value="Fødselsnummer for the patient. Fødselsnummer as one of the possible patient identifier, should at least be sent unless there is a reason not to. Reasons for not sending the Fødselsnummer include but are not limited to, research and apps without a contract for processing data.&#xD;&#xA;&#xD;&#xA;Multiple FNR can exist for a person. If several FNR is provided the time period that each identifier is valid should be provided. No information about period is required when only one FNR is provided." />
    </element>
    <element id="Patient.identifier:FNR.system">
      <path value="Patient.identifier.system" />
      <short value="Identification of the Norwegian FNR" />
      <definition value="Identifies that this is a Norwegian Fødselsnummer" />
      <min value="1" />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.4.1" />
    </element>
    <element id="Patient.identifier:FNR.value">
      <path value="Patient.identifier.value" />
      <short value="The actual Fødselsnummer" />
      <definition value="The Norwegian Fødselsnummer" />
      <alias value="Fødselsnummer" />
      <min value="1" />
      <example>
        <label value="Fødselsnummer" />
        <valueString value="13057444850" />
      </example>
    </element>
    <element id="Patient.identifier:FHN">
      <path value="Patient.identifier" />
      <sliceName value="FHN" />
      <short value="Felles hjelpenummer used for the patient" />
      <definition value="Felles hjelpenummer for the patient. Felles hjelpenummer as one of the possible patient identification numbers. The norwegian Felles hjelpenummer shoud only be used when the Fødselsnummer og D-number is unknown." />
    </element>
    <element id="Patient.identifier:FHN.system">
      <path value="Patient.identifier.system" />
      <short value="Identification of the Norwegian felles hjelpenummer" />
      <definition value="Norwegian felles hjelpenummer" />
      <min value="1" />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.4.3" />
    </element>
    <element id="Patient.identifier:FHN.value">
      <path value="Patient.identifier.value" />
      <short value="The actual Hjelpenummer" />
      <definition value="The actual Norwegian Hjelpenummer" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:DNR">
      <path value="Patient.identifier" />
      <sliceName value="DNR" />
      <short value="The D-nummer of the patient" />
      <definition value="The D-nummer of the patient. (assigned by the norwegian Skatteetaten)" />
    </element>
    <element id="Patient.identifier:DNR.system">
      <path value="Patient.identifier.system" />
      <short value="The identification of the D-nummer" />
      <definition value="The identification of the Norwegian D-nummer" />
      <min value="1" />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.4.2" />
    </element>
    <element id="Patient.identifier:DNR.value">
      <path value="Patient.identifier.value" />
      <short value="The actual D-nummer" />
      <definition value="The actual Norwegian D-nummer" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:HNR">
      <path value="Patient.identifier" />
      <sliceName value="HNR" />
      <short value="A locally assigned H-nummer" />
      <definition value="A locally assigned H-nummer. If this identifier is used, information about the assigner is mandatory." />
    </element>
    <element id="Patient.identifier:HNR.type.coding.system">
      <path value="Patient.identifier.type.coding.system" />
      <definition value="CodeSystem on Volven for official personal identifiers.&#xD;&#xA;The identification of the code system that defines the meaning of the symbol in the code." />
      <min value="1" />
      <fixedUri value="urn:oid:2.16.578.1.12.4.1.1.8327" />
    </element>
    <element id="Patient.identifier:HNR.type.coding.code">
      <path value="Patient.identifier.type.coding.code" />
      <definition value="The code for local Hjelpenummer in the CodeSystem&#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" />
      <fixedCode value="HNR" />
    </element>
    <element id="Patient.identifier:HNR.system">
      <path value="Patient.identifier.system" />
      <fixedUri value="HNR" />
    </element>
    <element id="Patient.identifier:HNR.value">
      <path value="Patient.identifier.value" />
      <definition value="The actual Hjelpenummer.&#xD;&#xA;&#xD;&#xA;The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
      <min value="1" />
    </element>
    <element id="Patient.identifier:HNR.assigner">
      <path value="Patient.identifier.assigner" />
      <definition value="Assigner is mandatory for localy assigne Hjelpenummer.&#xD;&#xA;&#xD;&#xA;Organization that issued/manages the identifier." />
      <min value="1" />
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <type>
        <code value="HumanName" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-HumanName" />
      </type>
    </element>
    <element id="Patient.address">
      <path value="Patient.address" />
      <short value="Norwegian address" />
      <definition value="http://hl7.no/fhir/StructureDefinition/no-basis-Address" />
      <type>
        <code value="Address" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Address" />
      </type>
    </element>
    <element id="Patient.contact.name">
      <path value="Patient.contact.name" />
      <type>
        <code value="HumanName" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-HumanName" />
      </type>
    </element>
    <element id="Patient.contact.address">
      <path value="Patient.contact.address" />
      <type>
        <code value="Address" />
        <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Address" />
      </type>
    </element>
  </differential>
</StructureDefinition>