<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HVOPersonLogical" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="can-be-target" />
  </extension>
  <url value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOPersonLogical" />
  <name value="HVOPersonLogical" />
  <title value="Person" />
  <status value="draft" />
  <description value="Klassen person håller information om en mänsklig individ." />
  <fhirVersion value="5.0.0" />
  <mapping>
    <identity value="PersonToHVOPractitioner" />
    <uri value="HVOPractitioner" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://electronichealth.se/fhir/hvo/StructureDefinition/HVOPersonLogical" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base" />
  <derivation value="specialization" />
  <snapshot>
    <element id="HVOPersonLogical">
      <path value="HVOPersonLogical" />
      <short value="Person" />
      <definition value="Klassen person håller information om en mänsklig individ." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="HVOPersonLogical" />
        <min value="0" />
        <max value="*" />
      </base>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="HVOPersonLogical.id">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="HVOPersonLogical.id" />
      <short value="id" />
      <definition value="Angivelse av person-id i form av personnummer eller samordningsnummer.&#xD;&#xA;&#xD;&#xA;Anges för de personer som har särskild administrativ behörighet att söka eller förändra uppgifter inom domänen på uppdrag av en särskild organisation." />
      <comment value="The rules of the identifier.type  determine if a check digit is part of the ID value or sent separately, such as through the checkDigit extension." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="HVOPersonLogical.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Identifier" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ident-1" />
        <severity value="warning" />
        <human value="Identifier with no value has limited utility.  If communicating that an identifier value has been suppressed or missing, the value element SHOULD be present with an extension indicating the missing semantic - e.g. data-absent-reason" />
        <expression value="value.exists()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Identifier" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
        <map value="HVOPractitioner.identifier" />
      </mapping>
    </element>
    <element id="HVOPersonLogical.namn">
      <path value="HVOPersonLogical.namn" />
      <short value="namn" />
      <definition value="Angivelse av personens namn." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="HVOPersonLogical.namn" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
        <map value="HVOPractitioner.name" />
      </mapping>
    </element>
    <element id="HVOPersonLogical.skyddadIdentitet">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="HVOPersonLogical.skyddadIdentitet" />
      <short value="skyddadIdentitet" />
      <definition value="A reference to a code defined by a terminology system." />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="HVOPersonLogical.skyddadIdentitet" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cod-1" />
        <severity value="warning" />
        <human value="A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text" />
        <expression value="code.exists().not() implies display.exists().not()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="HVOPersonLogical">
      <path value="HVOPersonLogical" />
      <short value="Person" />
      <definition value="Klassen person håller information om en mänsklig individ." />
    </element>
    <element id="HVOPersonLogical.id">
      <path value="HVOPersonLogical.id" />
      <short value="id" />
      <definition value="Angivelse av person-id i form av personnummer eller samordningsnummer.&#xD;&#xA;&#xD;&#xA;Anges för de personer som har särskild administrativ behörighet att söka eller förändra uppgifter inom domänen på uppdrag av en särskild organisation." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
        <map value="HVOPractitioner.identifier" />
      </mapping>
    </element>
    <element id="HVOPersonLogical.namn">
      <path value="HVOPersonLogical.namn" />
      <short value="namn" />
      <definition value="Angivelse av personens namn." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
        <map value="HVOPractitioner.name" />
      </mapping>
    </element>
    <element id="HVOPersonLogical.skyddadIdentitet">
      <path value="HVOPersonLogical.skyddadIdentitet" />
      <short value="skyddadIdentitet" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="PersonToHVOPractitioner" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>