<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="2.0.10" />
  <name value="NoBasisPatient" />
  <title value="no-basis-Patient" />
  <status value="active" />
  <date value="2019-05-20" />
  <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="4.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:citizenship">
      <path value="Patient.extension" />
      <sliceName value="citizenship" />
      <short value="The citizenship of the patient" />
      <definition value="The citizenship of the patient. should be a country code from ISO 3166 code system" />
      <alias value="statsborgerskap" />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/patient-citizenship" />
      </type>
    </element>
    <element id="Patient.extension:citizenship.extension">
      <path value="Patient.extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Patient.extension:citizenship.extension:code">
      <path value="Patient.extension.extension" />
      <sliceName value="code" />
      <definition value="no-basis-Patient introduces iso 3166 codes&#xD;&#xA;&#xD;&#xA;Nation code representing the citizenship of patient." />
      <binding>
        <strength value="example" />
        <valueSet value="urn:iso:std:iso:3166" />
      </binding>
    </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. Merk at lokale hjelpenummer (H-nummer) for pasient ikke garanterer at kombinasjonen system og value er gir unik identifikasjon, siden disse tildeles på lokalt i det enkelte kliniske fagsystem. Felles nasjonale hjelpenummer utstedt av tjenesten for felles hjelpenummer er imidlertid unike i Norge (og globalt unike i kombinasjon med system)." />
    </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>
    <element id="Patient.generalPractitioner">
      <path value="Patient.generalPractitioner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
      </type>
    </element>
    <element id="Patient.managingOrganization">
      <path value="Patient.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.no/fhir/StructureDefinition/no-basis-Organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>