<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="1.3.6.1.4.1.38760.FHIR.2.1.2.1" />
  <url value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
  <version value="1" />
  <name value="MedicalMeta" />
  <title value="Medical Metadata" />
  <status value="active" />
  <date value="2023-01-01" />
  <publisher value="NHS Latvia" />
  <description value="Metadata needed for medical document processing." />
  <purpose value="To maintain similar data enterer structures among different VVIS subsystems processing medical documents." />
  <copyright value="©NHS Latvia" />
  <fhirVersion value="4.3.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Meta" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Meta" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Meta">
      <path value="Meta" />
      <short value="Metadata about a resource" />
      <definition value="The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Meta" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.id">
      <path value="Meta.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.extension">
      <path value="Meta.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.versionId">
      <path value="Meta.versionId" />
      <label value="Versija" />
      <short value="Version specific identifier" />
      <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. &#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. VersionId is being applied by the system and it is only available in READ response." />
      <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.versionId" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.lastUpdated">
      <path value="Meta.lastUpdated" />
      <label value="Atjaunošanas datums" />
      <short value="When the resource version last changed" />
      <definition value="When the resource last changed - e.g. when the version changed.&#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. lastUpdated is being applied by the system and it is only available in READ response." />
      <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.lastUpdated" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="instant" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.source">
      <path value="Meta.source" />
      <label value="Datu avots" />
      <short value="Identifies where the resource comes from" />
      <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.&#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. It is only available in READ response when required by business." />
      <comment value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. &#xA;&#xA;This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.source" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.profile">
      <path value="Meta.profile" />
      <label value="Datu struktūra" />
      <short value="Profiles this resource claims to conform to" />
      <definition value="A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).&#xD;&#xA;&#xD;&#xA;©NHS: Profile SHALL always be provided." />
      <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Meta.profile" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="canonical" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.security">
      <path value="Meta.security" />
      <short value="Security Labels applied to this resource" />
      <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure." />
      <comment value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Meta.security" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Security Labels from the Healthcare Privacy and Security Classification System." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels" />
        </extension>
        <strength value="extensible" />
        <valueSet value="http://hl7.org/fhir/ValueSet/security-labels" />
      </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="Meta.tag">
      <path value="Meta.tag" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Tags are required to identify who is responsible for the information in the resource, i.e. who provided/created it." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:authorMedicalInstitution">
      <path value="Meta.tag" />
      <sliceName value="authorMedicalInstitution" />
      <label value="Autors" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Institution making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Institutions. When provided SHALL be validated against JWT." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:authorMedicalInstitution.id">
      <path value="Meta.tag.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <fixedId value="authorMedicalInstitution" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.extension">
      <path value="Meta.tag.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.system">
      <path value="Meta.tag.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.23" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.version">
      <path value="Meta.tag.version" />
      <short value="Version of the system - if relevant" />
      <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
      <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.code" />
      <label value="ĀI Veselības inspekcijas kods" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Institution code. ConceptCode from VVIS 1.3.6.1.4.1.38760.2.23 (Organization.identifier:medicalInstitutionIdentifier.value) is expected. Code SHALL be identical to &quot;VIAuthorityCode&quot; in JWT." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 20 symbols are expected." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="med-code-1" />
        <severity value="error" />
        <human value="Code value shall be not longer than 20 characters" />
        <expression value="matches('^.{1,20}$')" />
        <source value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.display" />
      <label value="ĀI nosaukums" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Medical Institution name. ConceptCode displayText from VVIS 1.3.6.1.4.1.38760.2.23 (Organization.name) is expected. DisplayText SHALL be identical to &quot;AuthorityFullName&quot; in JWT." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 300 symbols are expected." />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <maxLength value="300" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.userSelected">
      <path value="Meta.tag.userSelected" />
      <short value="If this coding was chosen directly by the user" />
      <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." />
      <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
      <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson">
      <path value="Meta.tag" />
      <sliceName value="entererMedicalPerson" />
      <label value="Ievadītājs" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Person making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Personal. When provided SHALL be validated against JWT." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:entererMedicalPerson.id">
      <path value="Meta.tag.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <fixedId value="entererMedicalPerson" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.extension">
      <path value="Meta.tag.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.system">
      <path value="Meta.tag.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.1" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.version">
      <path value="Meta.tag.version" />
      <short value="Version of the system - if relevant" />
      <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
      <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.code" />
      <label value="ĀP Veselības inspekcijas kods" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person code. Property id=4 from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.identifier:HealthInspectorateIdentifier.value where system=1.3.6.1.4.1.38760.3.1.4) is expected. When provided SHALL be validated aigainst JWT VIMedicalCode." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 11 symbols are expected." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="med-code-2" />
        <severity value="error" />
        <human value="Code value shall be not longer than 11 characters" />
        <expression value="matches('^.{1,11}$')" />
        <source value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.display" />
      <label value="ĀP vārds un uzvārds" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person name. ConceptCode displayText from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.name.text) is expected. Value SHALL be identical to displayText from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.name.text) at the request time." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 200 symbols are expected." />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <maxLength value="200" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPerson.userSelected">
      <path value="Meta.tag.userSelected" />
      <short value="If this coding was chosen directly by the user" />
      <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." />
      <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
      <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId">
      <path value="Meta.tag" />
      <sliceName value="entererPersonId" />
      <label value="Ievadītājs" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Person making the request. Values SHOULD be provided in CREATE and UPDATE requests of any human actor not registered in Health Inspection. When provided SHALL be validated against JWT." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:entererPersonId.id">
      <path value="Meta.tag.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <fixedId value="entererPersonId" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.extension">
      <path value="Meta.tag.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.system">
      <path value="Meta.tag.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.3.1.1" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.version">
      <path value="Meta.tag.version" />
      <short value="Version of the system - if relevant" />
      <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
      <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.code" />
      <label value="Personas kods" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="©NHS: Health professional or patient personal identity number is expected.&#xD;&#xA;&#xD;&#xA;©NHS: Personal identity number is expected. When provided SHALL be validated against JWT ppid." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 11 symbols are expected." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="med-code-3" />
        <severity value="error" />
        <human value="Code value shall be not longer than 11 characters" />
        <expression value="matches('^.{1,11}$')" />
        <source value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.display" />
      <label value="Personas vārds un uzvārds" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Person given and family name are expected. When provided SHALL be validated against JWT &quot;given_name&quot; and family_name&quot;." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 200 symbols are expected." />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <maxLength value="200" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Meta.tag:entererPersonId.userSelected">
      <path value="Meta.tag.userSelected" />
      <short value="If this coding was chosen directly by the user" />
      <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." />
      <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
      <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem">
      <path value="Meta.tag" />
      <sliceName value="entererSystem" />
      <label value="Avota informācijas sistēma" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: HIS, LIS or other information system making the request. Values SHALL be provided in CREATE and UPDATE requests." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:entererSystem.id">
      <path value="Meta.tag.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <fixedId value="entererSystem" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.extension">
      <path value="Meta.tag.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.system">
      <path value="Meta.tag.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="https://vvis.gov.lv/fhir/CodeSystem/1.3.6.1.4.1.38760.2.3" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.version">
      <path value="Meta.tag.version" />
      <short value="Version of the system - if relevant" />
      <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
      <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.code" />
      <label value="Avota informācijas sistēmas kods" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Information system code, NOT system developer code. Information system code from VVIS 1.3.6.1.4.1.38760.2.3 is expected. Code SHALL be identical to classifier code on the request dateTime." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 64 symbols are expected." />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="med-code-4" />
        <severity value="error" />
        <human value="Code value shall be not longer than 64 characters" />
        <expression value="matches('^.{1,64}$')" />
        <source value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.display" />
      <label value="Avota informācijas sistēmas nosaukums" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Information system name, NOT system developer name. Information system code displayText from VVIS 1.3.6.1.4.1.38760.2.3 is expected. DisplayText SHALL be identical to classifier code displayText on the request dateTime." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 300 symbols are expected." />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <maxLength value="300" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Meta.tag:entererSystem.userSelected">
      <path value="Meta.tag.userSelected" />
      <short value="If this coding was chosen directly by the user" />
      <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." />
      <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
      <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole">
      <path value="Meta.tag" />
      <sliceName value="entererMedicalPersonRole" />
      <label value="Ievadītāja darbavieta" />
      <short value="Tags applied to this resource" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Person Role making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Institutions when Medical Person Role is used for authorization. When provided SHALL be validated against JWT." />
      <comment value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Meta.tag" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/binding-definition">
          <valueString value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;." />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags" />
        </extension>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/common-tags" />
      </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="Meta.tag:entererMedicalPersonRole.id">
      <path value="Meta.tag.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <fixedId value="entererMedicalPersonRole" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.extension">
      <path value="Meta.tag.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.system">
      <path value="Meta.tag.system" />
      <short value="Identity of the terminology system" />
      <definition value="The identification of the code system that defines the meaning of the symbol in the code." />
      <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously." />
      <requirements value="Need to be unambiguous about the source of the definition of the symbol." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.system" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.37" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystem" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.version">
      <path value="Meta.tag.version" />
      <short value="Version of the system - if relevant" />
      <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." />
      <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.version" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.7" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./codeSystemVersion" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.code">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/no-binding">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.code" />
      <label value="Ievadītāja darbavietas kods" />
      <short value="Symbol in syntax defined by the system" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person Role code. Code from VVIS 1.3.6.1.4.1.38760.2.37 (PractitionerRole.identifier.value) is expected. Code SHALL be identical to JWT sub: &quot;...-1.3.6.1.4.1.38760.2.37:PractitionerRoleCode&quot; when medical person's workplace is used for authorization." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <requirements value="Need to refer to a particular code in the system." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Coding.code" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="med-code-5" />
        <severity value="error" />
        <human value="Code value shall be not longer than 20 characters" />
        <expression value="matches('^.{1,20}$')" />
        <source value="https://vvis.gov.lv/fhir/Datatype/Meta/MedicalMeta-v1" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.1" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="./code" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Meta.tag.display" />
      <short value="Representation defined by the system" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.display" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="C*E.2 - but note this is not well followed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV.displayName" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" />
      </mapping>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.userSelected">
      <path value="Meta.tag.userSelected" />
      <short value="If this coding was chosen directly by the user" />
      <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)." />
      <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely." />
      <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Coding.userSelected" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children unless an empty Parameters resource" />
        <expression value="hasValue() or (children().count() &gt; id.count()) or $this is Parameters" />
        <xpath value="@value|f:*|h:div|self::f:Parameters" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Sometimes implied by being first" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD.codingRationale" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Meta.id">
      <path value="Meta.id" />
      <max value="0" />
    </element>
    <element id="Meta.versionId">
      <path value="Meta.versionId" />
      <label value="Versija" />
      <definition value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted. &#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. VersionId is being applied by the system and it is only available in READ response." />
    </element>
    <element id="Meta.lastUpdated">
      <path value="Meta.lastUpdated" />
      <label value="Atjaunošanas datums" />
      <definition value="When the resource last changed - e.g. when the version changed.&#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. lastUpdated is being applied by the system and it is only available in READ response." />
    </element>
    <element id="Meta.source">
      <path value="Meta.source" />
      <label value="Datu avots" />
      <definition value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.&#xD;&#xA;&#xD;&#xA;©NHS: Value SHALL NOT be provided in CREATE and UPDATE requests. It is only available in READ response when required by business." />
    </element>
    <element id="Meta.profile">
      <path value="Meta.profile" />
      <label value="Datu struktūra" />
      <definition value="A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).&#xD;&#xA;&#xD;&#xA;©NHS: Profile SHALL always be provided." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Meta.security">
      <path value="Meta.security" />
      <max value="0" />
    </element>
    <element id="Meta.tag">
      <path value="Meta.tag" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Tags are required to identify who is responsible for the information in the resource, i.e. who provided/created it." />
      <min value="1" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution">
      <path value="Meta.tag" />
      <sliceName value="authorMedicalInstitution" />
      <label value="Autors" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Institution making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Institutions. When provided SHALL be validated against JWT." />
      <max value="1" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.id">
      <path value="Meta.tag.id" />
      <min value="1" />
      <fixedId value="authorMedicalInstitution" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.system">
      <path value="Meta.tag.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.23" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.version">
      <path value="Meta.tag.version" />
      <max value="0" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.code">
      <path value="Meta.tag.code" />
      <label value="ĀI Veselības inspekcijas kods" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Institution code. ConceptCode from VVIS 1.3.6.1.4.1.38760.2.23 (Organization.identifier:medicalInstitutionIdentifier.value) is expected. Code SHALL be identical to &quot;VIAuthorityCode&quot; in JWT." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 20 symbols are expected." />
      <min value="1" />
      <constraint>
        <key value="med-code-1" />
        <severity value="error" />
        <human value="Code value shall be not longer than 20 characters" />
        <expression value="matches('^.{1,20}$')" />
      </constraint>
    </element>
    <element id="Meta.tag:authorMedicalInstitution.display">
      <path value="Meta.tag.display" />
      <label value="ĀI nosaukums" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Medical Institution name. ConceptCode displayText from VVIS 1.3.6.1.4.1.38760.2.23 (Organization.name) is expected. DisplayText SHALL be identical to &quot;AuthorityFullName&quot; in JWT." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 300 symbols are expected." />
      <min value="1" />
      <maxLength value="300" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererMedicalPerson">
      <path value="Meta.tag" />
      <sliceName value="entererMedicalPerson" />
      <label value="Ievadītājs" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Person making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Personal. When provided SHALL be validated against JWT." />
      <max value="1" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.id">
      <path value="Meta.tag.id" />
      <min value="1" />
      <fixedId value="entererMedicalPerson" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.system">
      <path value="Meta.tag.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.1" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.version">
      <path value="Meta.tag.version" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.code">
      <path value="Meta.tag.code" />
      <label value="ĀP Veselības inspekcijas kods" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person code. Property id=4 from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.identifier:HealthInspectorateIdentifier.value where system=1.3.6.1.4.1.38760.3.1.4) is expected. When provided SHALL be validated aigainst JWT VIMedicalCode." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 11 symbols are expected." />
      <min value="1" />
      <constraint>
        <key value="med-code-2" />
        <severity value="error" />
        <human value="Code value shall be not longer than 11 characters" />
        <expression value="matches('^.{1,11}$')" />
      </constraint>
    </element>
    <element id="Meta.tag:entererMedicalPerson.display">
      <path value="Meta.tag.display" />
      <label value="ĀP vārds un uzvārds" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person name. ConceptCode displayText from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.name.text) is expected. Value SHALL be identical to displayText from VVIS 1.3.6.1.4.1.38760.2.1 (Practitioner.name.text) at the request time." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 200 symbols are expected." />
      <min value="1" />
      <maxLength value="200" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererPersonId">
      <path value="Meta.tag" />
      <sliceName value="entererPersonId" />
      <label value="Ievadītājs" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Person making the request. Values SHOULD be provided in CREATE and UPDATE requests of any human actor not registered in Health Inspection. When provided SHALL be validated against JWT." />
      <max value="1" />
    </element>
    <element id="Meta.tag:entererPersonId.id">
      <path value="Meta.tag.id" />
      <min value="1" />
      <fixedId value="entererPersonId" />
    </element>
    <element id="Meta.tag:entererPersonId.system">
      <path value="Meta.tag.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.3.1.1" />
    </element>
    <element id="Meta.tag:entererPersonId.version">
      <path value="Meta.tag.version" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererPersonId.code">
      <path value="Meta.tag.code" />
      <label value="Personas kods" />
      <definition value="©NHS: Health professional or patient personal identity number is expected.&#xD;&#xA;&#xD;&#xA;©NHS: Personal identity number is expected. When provided SHALL be validated against JWT ppid." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 11 symbols are expected." />
      <min value="1" />
      <constraint>
        <key value="med-code-3" />
        <severity value="error" />
        <human value="Code value shall be not longer than 11 characters" />
        <expression value="matches('^.{1,11}$')" />
      </constraint>
    </element>
    <element id="Meta.tag:entererPersonId.display">
      <path value="Meta.tag.display" />
      <label value="Personas vārds un uzvārds" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Person given and family name are expected. When provided SHALL be validated against JWT &quot;given_name&quot; and family_name&quot;." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 200 symbols are expected." />
      <min value="1" />
      <maxLength value="200" />
    </element>
    <element id="Meta.tag:entererPersonId.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererSystem">
      <path value="Meta.tag" />
      <sliceName value="entererSystem" />
      <label value="Avota informācijas sistēma" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: HIS, LIS or other information system making the request. Values SHALL be provided in CREATE and UPDATE requests." />
      <max value="1" />
    </element>
    <element id="Meta.tag:entererSystem.id">
      <path value="Meta.tag.id" />
      <min value="1" />
      <fixedId value="entererSystem" />
    </element>
    <element id="Meta.tag:entererSystem.system">
      <path value="Meta.tag.system" />
      <min value="1" />
      <fixedUri value="https://vvis.gov.lv/fhir/CodeSystem/1.3.6.1.4.1.38760.2.3" />
    </element>
    <element id="Meta.tag:entererSystem.version">
      <path value="Meta.tag.version" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererSystem.code">
      <path value="Meta.tag.code" />
      <label value="Avota informācijas sistēmas kods" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Information system code, NOT system developer code. Information system code from VVIS 1.3.6.1.4.1.38760.2.3 is expected. Code SHALL be identical to classifier code on the request dateTime." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 64 symbols are expected." />
      <min value="1" />
      <constraint>
        <key value="med-code-4" />
        <severity value="error" />
        <human value="Code value shall be not longer than 64 characters" />
        <expression value="matches('^.{1,64}$')" />
      </constraint>
    </element>
    <element id="Meta.tag:entererSystem.display">
      <path value="Meta.tag.display" />
      <label value="Avota informācijas sistēmas nosaukums" />
      <definition value="A representation of the meaning of the code in the system, following the rules of the system.&#xD;&#xA;&#xD;&#xA;©NHS: Information system name, NOT system developer name. Information system code displayText from VVIS 1.3.6.1.4.1.38760.2.3 is expected. DisplayText SHALL be identical to classifier code displayText on the request dateTime." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;©NHS: Maximum 300 symbols are expected." />
      <min value="1" />
      <maxLength value="300" />
    </element>
    <element id="Meta.tag:entererSystem.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole">
      <path value="Meta.tag" />
      <sliceName value="entererMedicalPersonRole" />
      <label value="Ievadītāja darbavieta" />
      <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.&#xD;&#xA;&#xD;&#xA;©NHS: Authorized Medical Person Role making the request. Values SHALL be provided in CREATE and UPDATE requests of Medical Institutions when Medical Person Role is used for authorization. When provided SHALL be validated against JWT." />
      <max value="1" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.id">
      <path value="Meta.tag.id" />
      <min value="1" />
      <fixedId value="entererMedicalPersonRole" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.system">
      <path value="Meta.tag.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.3.6.1.4.1.38760.2.37" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.version">
      <path value="Meta.tag.version" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.code">
      <path value="Meta.tag.code" />
      <label value="Ievadītāja darbavietas kods" />
      <definition value="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).&#xD;&#xA;&#xD;&#xA;©NHS: Medical Person Role code. Code from VVIS 1.3.6.1.4.1.38760.2.37 (PractitionerRole.identifier.value) is expected. Code SHALL be identical to JWT sub: &quot;...-1.3.6.1.4.1.38760.2.37:PractitionerRoleCode&quot; when medical person's workplace is used for authorization." />
      <min value="1" />
      <constraint>
        <key value="med-code-5" />
        <severity value="error" />
        <human value="Code value shall be not longer than 20 characters" />
        <expression value="matches('^.{1,20}$')" />
      </constraint>
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.display">
      <path value="Meta.tag.display" />
      <max value="0" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>