<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pl-lab-wartosciReferencyjne" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="can-be-target" />
  </extension>
  <url value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-wartosciReferencyjne" />
  <name value="WartosciReferencyjne" />
  <title value="Wartości referencyjne" />
  <status value="draft" />
  <description value="Wartości referencyjne" />
  <fhirVersion value="5.0.0" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-wartosciReferencyjne" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base" />
  <derivation value="specialization" />
  <snapshot>
    <element id="pl-lab-wartosciReferencyjne">
      <path value="pl-lab-wartosciReferencyjne" />
      <short value="Wartości referencyjne" />
      <definition value="Wartości referencyjne" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="pl-lab-wartosciReferencyjne" />
        <min value="0" />
        <max value="*" />
      </base>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscOd">
      <path value="pl-lab-wartosciReferencyjne.wartoscOd" />
      <short value="Wartość od" />
      <definition value="Wartość referencyjna od" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.wartoscOd" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscDo">
      <path value="pl-lab-wartosciReferencyjne.wartoscDo" />
      <short value="Wartość do" />
      <definition value="Wartość referencyjna do" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.wartoscDo" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscSlownikowa">
      <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="pl-lab-wartosciReferencyjne.wartoscSlownikowa" />
      <short value="Wartość słownikowa" />
      <definition value="Wartość referencyjna słownikowa" />
      <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="pl-lab-wartosciReferencyjne.wartoscSlownikowa" />
        <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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.opis">
      <path value="pl-lab-wartosciReferencyjne.opis" />
      <short value="Wartość opisowa" />
      <definition value="Wartość referencyjna opisowa" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.opis" />
        <min value="0" />
        <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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.plec">
      <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="pl-lab-wartosciReferencyjne.plec" />
      <short value="Kod płci" />
      <definition value="Kod płci" />
      <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="pl-lab-wartosciReferencyjne.plec" />
        <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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.jednostkaWieku">
      <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="pl-lab-wartosciReferencyjne.jednostkaWieku" />
      <short value="Kod jednostki wieku" />
      <definition value="Kod jednostki wieku" />
      <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="pl-lab-wartosciReferencyjne.jednostkaWieku" />
        <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>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org.pl/fhir/ig/pl-lab/ValueSet/pl-term-ageUnit-VS" />
      </binding>
      <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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wiekOd">
      <path value="pl-lab-wartosciReferencyjne.wiekOd" />
      <short value="Wiek od" />
      <definition value="Wiek od" />
      <comment value="32 bit number; for values larger than this, use decimal" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.wiekOd" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="integer" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wiekDo">
      <path value="pl-lab-wartosciReferencyjne.wiekDo" />
      <short value="Wiek do" />
      <definition value="Wiek do" />
      <comment value="32 bit number; for values larger than this, use decimal" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.wiekDo" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="integer" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.ciaza">
      <path value="pl-lab-wartosciReferencyjne.ciaza" />
      <short value="Występowanie ciąży" />
      <definition value="Występowanie ciąży" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.ciaza" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.typ">
      <path value="pl-lab-wartosciReferencyjne.typ" />
      <short value="Typ wartości referencyjnych" />
      <definition value="Typ wartości referencyjnych" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.typ" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </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>
    </element>
    <element id="pl-lab-wartosciReferencyjne.zrodlo">
      <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="pl-lab-wartosciReferencyjne.zrodlo" />
      <short value="Źródło wartości referencyjnych" />
      <definition value="Źródło wartości referencyjnych" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="pl-lab-wartosciReferencyjne.zrodlo" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-zrodlo" />
      </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="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.exists()  implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <constraint>
        <key value="ref-2" />
        <severity value="error" />
        <human value="At least one of reference, identifier and display SHALL be present (unless an extension is provided)." />
        <expression value="reference.exists() or identifier.exists() or display.exists() or extension.exists()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="pl-lab-wartosciReferencyjne">
      <path value="pl-lab-wartosciReferencyjne" />
      <short value="Wartości referencyjne" />
      <definition value="Wartości referencyjne" />
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscOd">
      <path value="pl-lab-wartosciReferencyjne.wartoscOd" />
      <short value="Wartość od" />
      <definition value="Wartość referencyjna od" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscDo">
      <path value="pl-lab-wartosciReferencyjne.wartoscDo" />
      <short value="Wartość do" />
      <definition value="Wartość referencyjna do" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wartoscSlownikowa">
      <path value="pl-lab-wartosciReferencyjne.wartoscSlownikowa" />
      <short value="Wartość słownikowa" />
      <definition value="Wartość referencyjna słownikowa" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.opis">
      <path value="pl-lab-wartosciReferencyjne.opis" />
      <short value="Wartość opisowa" />
      <definition value="Wartość referencyjna opisowa" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.plec">
      <path value="pl-lab-wartosciReferencyjne.plec" />
      <short value="Kod płci" />
      <definition value="Kod płci" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.jednostkaWieku">
      <path value="pl-lab-wartosciReferencyjne.jednostkaWieku" />
      <short value="Kod jednostki wieku" />
      <definition value="Kod jednostki wieku" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org.pl/fhir/ig/pl-lab/ValueSet/pl-term-ageUnit-VS" />
      </binding>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wiekOd">
      <path value="pl-lab-wartosciReferencyjne.wiekOd" />
      <short value="Wiek od" />
      <definition value="Wiek od" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.wiekDo">
      <path value="pl-lab-wartosciReferencyjne.wiekDo" />
      <short value="Wiek do" />
      <definition value="Wiek do" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.ciaza">
      <path value="pl-lab-wartosciReferencyjne.ciaza" />
      <short value="Występowanie ciąży" />
      <definition value="Występowanie ciąży" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.typ">
      <path value="pl-lab-wartosciReferencyjne.typ" />
      <short value="Typ wartości referencyjnych" />
      <definition value="Typ wartości referencyjnych" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="pl-lab-wartosciReferencyjne.zrodlo">
      <path value="pl-lab-wartosciReferencyjne.zrodlo" />
      <short value="Źródło wartości referencyjnych" />
      <definition value="Źródło wartości referencyjnych" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-zrodlo" />
      </type>
    </element>
  </differential>
</StructureDefinition>