<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="pl-lab-uslugaKatalogowaLaboratorium" />
  <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-uslugaKatalogowaLaboratorium" />
  <name value="UslugaKatalogowaLaboratorium" />
  <title value="Usługa katalogowa laboratorium" />
  <status value="draft" />
  <description value="Usługa katalogowa laboratorium" />
  <fhirVersion value="5.0.0" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-uslugaKatalogowaLaboratorium" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base" />
  <derivation value="specialization" />
  <snapshot>
    <element id="pl-lab-uslugaKatalogowaLaboratorium">
      <path value="pl-lab-uslugaKatalogowaLaboratorium" />
      <short value="Usługa katalogowa laboratorium" />
      <definition value="Usługa katalogowa laboratorium" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium" />
        <min value="0" />
        <max value="*" />
      </base>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.kodUslugi">
      <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-uslugaKatalogowaLaboratorium.kodUslugi" />
      <short value="Kod usługi" />
      <definition value="Kod usługi katalogowej laboratorium wyrażony za pomocą słownika LOINC" />
      <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="1" />
      <max value="1" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.kodUslugi" />
        <min value="1" />
        <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-lab-loincServiceCodeVS" />
      </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-uslugaKatalogowaLaboratorium.dodatkowyKodUslugi">
      <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-uslugaKatalogowaLaboratorium.dodatkowyKodUslugi" />
      <short value="Dodatkowy kod usługi" />
      <definition value="Dodatkowy kod usługi katalogowej laboratorium wyrażony za pomocą słownika ICD-9 PL" />
      <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-uslugaKatalogowaLaboratorium.dodatkowyKodUslugi" />
        <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-lab-icd9plServiceCode-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-uslugaKatalogowaLaboratorium.kodWlasnyUslugi">
      <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-uslugaKatalogowaLaboratorium.kodWlasnyUslugi" />
      <short value="Kod własny usługi" />
      <definition value="Kod własny usługi katalogowej laboratorium" />
      <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-uslugaKatalogowaLaboratorium.kodWlasnyUslugi" />
        <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-uslugaKatalogowaLaboratorium.nazwaKliniczna">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.nazwaKliniczna" />
      <short value="Nazwa kliniczna" />
      <definition value="Nazwa kliniczna" />
      <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="pl-lab-uslugaKatalogowaLaboratorium.nazwaKliniczna" />
        <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>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.material">
      <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-uslugaKatalogowaLaboratorium.material" />
      <short value="Kod materiału" />
      <definition value="Kod rodzaju materiału do pobrania" />
      <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="1" />
      <max value="1" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.material" />
        <min value="1" />
        <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-lab-materialType-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-uslugaKatalogowaLaboratorium.metoda">
      <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-uslugaKatalogowaLaboratorium.metoda" />
      <short value="Kod metody" />
      <definition value="Kod metody oznaczenia badania laboratoryjnego" />
      <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-uslugaKatalogowaLaboratorium.metoda" />
        <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-lab-methodType-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-uslugaKatalogowaLaboratorium.rodzajPracowni">
      <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-uslugaKatalogowaLaboratorium.rodzajPracowni" />
      <short value="Rodzaj pracowni" />
      <definition value="Rodzaj pracowni wykonującej badania laboratoryjne" />
      <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="1" />
      <max value="1" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.rodzajPracowni" />
        <min value="1" />
        <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-lab-serviceProviderType-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-uslugaKatalogowaLaboratorium.definicjaBadania">
      <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-uslugaKatalogowaLaboratorium.definicjaBadania" />
      <short value="Definicja badania" />
      <definition value="Definicja badania laboratoryjnego" />
      <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="1" />
      <max value="1" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.definicjaBadania" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-definicjaBadaniaLaboratoryjnego" />
      </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>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.podmiotOdpowiedzialny">
      <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-uslugaKatalogowaLaboratorium.podmiotOdpowiedzialny" />
      <short value="Podmiot odpowiedzialny" />
      <definition value="Laboratorium odpowiedzialne za usługe katalogową" />
      <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="1" />
      <max value="1" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.podmiotOdpowiedzialny" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-laboratorium" />
      </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>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.parametrWyniku">
      <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-uslugaKatalogowaLaboratorium.parametrWyniku" />
      <short value="Parametr badania" />
      <definition value="Parametr uslugi katalogowej laboratorium" />
      <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="1" />
      <max value="*" />
      <base>
        <path value="pl-lab-uslugaKatalogowaLaboratorium.parametrWyniku" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-parametrWynikuBadania" />
      </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>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.celBadania">
      <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-uslugaKatalogowaLaboratorium.celBadania" />
      <short value="Cel badania" />
      <definition value="Cel wykonania usługi katalogowej laboratorium" />
      <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-uslugaKatalogowaLaboratorium.celBadania" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-celBadania" />
      </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-uslugaKatalogowaLaboratorium">
      <path value="pl-lab-uslugaKatalogowaLaboratorium" />
      <short value="Usługa katalogowa laboratorium" />
      <definition value="Usługa katalogowa laboratorium" />
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.kodUslugi">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.kodUslugi" />
      <short value="Kod usługi" />
      <definition value="Kod usługi katalogowej laboratorium wyrażony za pomocą słownika LOINC" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org.pl/fhir/ig/pl-lab/ValueSet/pl-lab-loincServiceCodeVS" />
      </binding>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.dodatkowyKodUslugi">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.dodatkowyKodUslugi" />
      <short value="Dodatkowy kod usługi" />
      <definition value="Dodatkowy kod usługi katalogowej laboratorium wyrażony za pomocą słownika ICD-9 PL" />
      <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-lab-icd9plServiceCode-VS" />
      </binding>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.kodWlasnyUslugi">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.kodWlasnyUslugi" />
      <short value="Kod własny usługi" />
      <definition value="Kod własny usługi katalogowej laboratorium" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.nazwaKliniczna">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.nazwaKliniczna" />
      <short value="Nazwa kliniczna" />
      <definition value="Nazwa kliniczna" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.material">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.material" />
      <short value="Kod materiału" />
      <definition value="Kod rodzaju materiału do pobrania" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org.pl/fhir/ig/pl-lab/ValueSet/pl-lab-materialType-VS" />
      </binding>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.metoda">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.metoda" />
      <short value="Kod metody" />
      <definition value="Kod metody oznaczenia badania laboratoryjnego" />
      <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-lab-methodType-VS" />
      </binding>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.rodzajPracowni">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.rodzajPracowni" />
      <short value="Rodzaj pracowni" />
      <definition value="Rodzaj pracowni wykonującej badania laboratoryjne" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org.pl/fhir/ig/pl-lab/ValueSet/pl-lab-serviceProviderType-VS" />
      </binding>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.definicjaBadania">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.definicjaBadania" />
      <short value="Definicja badania" />
      <definition value="Definicja badania laboratoryjnego" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-definicjaBadaniaLaboratoryjnego" />
      </type>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.podmiotOdpowiedzialny">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.podmiotOdpowiedzialny" />
      <short value="Podmiot odpowiedzialny" />
      <definition value="Laboratorium odpowiedzialne za usługe katalogową" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-laboratorium" />
      </type>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.parametrWyniku">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.parametrWyniku" />
      <short value="Parametr badania" />
      <definition value="Parametr uslugi katalogowej laboratorium" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-parametrWynikuBadania" />
      </type>
    </element>
    <element id="pl-lab-uslugaKatalogowaLaboratorium.celBadania">
      <path value="pl-lab-uslugaKatalogowaLaboratorium.celBadania" />
      <short value="Cel badania" />
      <definition value="Cel wykonania usługi katalogowej laboratorium" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-celBadania" />
      </type>
    </element>
  </differential>
</StructureDefinition>