<Patient xmlns="http://hl7.org/fhir">
  <meta>
    <profile value="http://hl7.no/fhir/StructureDefinition/no-basis-Patient" />
  </meta>
  <!-- The nationality of the patient. should be a country code from ISO 3166-1 code system -->
  <extension url="http://hl7.org/fhir/StructureDefinition/patient-citizenship">
    <extension url="code">
      <valueCodeableConcept>
        <coding>
          <system value="urn:iso:std:iso:3166" />
          <code value="NO" />
        </coding>
      </valueCodeableConcept>
    </extension>
  </extension>
  <identifier>
    <!-- Fødselnummeret til brukeren -->
    <!-- VKP expects a Norwegian "fødselsnummer" as the primary patient identification. -->
    <system value="urn:oid:2.16.578.1.12.4.1.4.1" />
    <value value="21030550231" />
  </identifier>
  <identifier>
    <!-- en annen identifikator, for eksempel løpenummer i EPJ -->
    <system value="http://profil.visma.no/lopenummer" />
    <value value="123" />
  </identifier>
  <name>
    <!-- Navnet til brukeren -->
    <family value="Søreng" />
    <given value="Jannice" />
  </name>
  <telecom>
    <system value="phone" />
    <value value="+4733445566" />
    <use value="home" />
  </telecom>
  <!-- Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. -->
  <gender value="female" />
  <address>
    <!-- Norwegian address: http://hl7.no/fhir/StructureDefinition/no-basis-Address -->
    <!-- Norwegian basisprofil for Address resource adding Norwegian specific property information, official use of address and further explanation of the use for the data-elements in a Norwegian address. -->
    <extension url="http://hl7.no/fhir/StructureDefinition/no-basis-propertyinformation">
      <!-- Identification of a real property in Norway is defined using gårdsnummer, bruksnummer and kommunenummer. In addition real property can be rented out, the area of the real property that is rented is measured and is further identified by its festenummer. In addition some real property is split into sections identified by its seksjonsnummer. -->
      <!-- I dette eksempelet er bare kommunenavn angitt, men vanligvis vil man benytte address.distreict hvis man bare ønsker kommunenavnet -->
      <extension url="municipality">
        <valueCoding>
          <system value="urn:oid:2.16.578.1.12.4.1.1.3402" />
          <code value="0301" />
          <display value="Oslo" />
        </valueCoding>
      </extension>
    </extension>
    <extension url="http://hl7.no/fhir/StructureDefinition/no-basis-address-official">
      <!-- Defines the concept of an officially registered address in Norway. Usually this will be the adress registered in "Folkeregisteret" for persons or "Enhetsregisteret" for organizations. -->
      <valueBoolean value="true" />
    </extension>
    <use value="home" />
    <line value="Karisvingen 44" />
    <city value="Oslo" />
    <!-- Poststed -->
    <district value="Oslo">
      <extension url="http://hl7.no/fhir/StructureDefinition/no-basis-municipalitycode">
        <valueCoding>
          <system value="https://register.geonorge.no/subregister/sosi-kodelister/kartverket/kommunenummer-alle" />
          <code value="0301" />
        </valueCoding>
      </extension>
    </district>
    <!-- Kommunenavn -->
    <postalCode value="0603" />
    <!-- postnummer -->
    <country value="NO" />
    <!-- land (er overflødig i norge -->
  </address>
  <maritalStatus>
    <!-- This field contains a patient's most recent marital (civil) status. -->
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-MaritalStatus" />
      <code value="U" />
      <display value="unmarried" />
    </coding>
  </maritalStatus>
  <contact>
    <!-- VKP can use both coded and text value for relationship. Coded values are given according to HL7 CodeSystem http://hl7.org/fhir/ValueSet/v2-0131
		Text values can be free text description of the relationship. Both a textdescription and a coded value can be present.
		The main contact of the patient should be coded as "C" - "Emergency Contact" -->
    <relationship>
      <!-- Coded value for the relationship
		A coded value should be used for the main contact person. -->
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v2-0131" />
        <code value="C" />
        <display value="Emergency Contact" />
      </coding>
    </relationship>
    <relationship>
      <!-- Plain text representation -->
      <text value="Bror" />
    </relationship>
    <name>
      <!-- Norwegian human name. Defines the format of norwegian human name according to norwegian regulation (lov om personnavn). -->
      <extension url="http://hl7.no/fhir/StructureDefinition/no-basis-middlename">
        <valueString value="Pårørende" />
      </extension>
      <text value="Pål Pårørende Olsen" />
      <family value="Olsen" />
      <given value="Pål" />
    </name>
  </contact>
  <communication>
    <language>
      <!-- Languages which may be used to communicate with the patient about his or her health. -->
      <!-- Should we prefer coded values? -->
      <text value="Norsk" />
    </language>
  </communication>
  <generalPractitioner>
    <!-- VKP expects the HER id of the "tjeneste" responsible for providing the patient with "fastlege" services. -->
    <identifier>
      <system value="urn:oid:2.16.578.1.12.4.1.2" />
      <!-- OID for HER-id -->
      <value value="720" />
      <!-- The actual HER-id -->
    </identifier>
    <display value="SIDSEL AASE JAVERY" />
  </generalPractitioner>
</Patient>