<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="1.3.6.1.4.1.38760.FHIR.2.1.1.1" />
  <url value="https://vvis.gov.lv/fhir/Datatype/Meta/HealthMeta-v1" />
  <version value="1" />
  <name value="HealthMeta" />
  <title value="Health Metadata" />
  <status value="active" />
  <date value="2023-01-01" />
  <publisher value="NHS Latvia" />
  <description value="Metadata needed for health information processing" />
  <purpose value="To maintain similar data enterer structures among different VVIS subsystems" />
  <copyright value="©NHS Latvia" />
  <fhirVersion value="4.3.0" />
  <kind value="complex-type" />
  <abstract value="true" />
  <type value="Meta" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Meta" />
  <derivation value="constraint" />
  <differential>
    <element id="Meta">
      <path value="Meta" />
      <comment value="©NHS: Base meta information profile for Health data to insure transparency of data source." />
    </element>
    <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." />
    </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 SHOULD be provided in CREATE and UPDATE requests of Medical Institution." />
      <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" />
      <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." />
      <min value="1" />
    </element>
    <element id="Meta.tag:authorMedicalInstitution.display">
      <path value="Meta.tag.display" />
      <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." />
      <min value="1" />
    </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 SHOULD be provided in CREATE and UPDATE requests of Medical Personal." />
      <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" />
      <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." />
      <min value="1" />
    </element>
    <element id="Meta.tag:entererMedicalPerson.display">
      <path value="Meta.tag.display" />
      <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." />
      <min value="1" />
    </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 MAY be provided in CREATE and UPDATE requests of any human actor." />
      <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" />
      <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: Personal identity number is expected." />
      <min value="1" />
    </element>
    <element id="Meta.tag:entererPersonId.display">
      <path value="Meta.tag.display" />
      <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 is expected." />
      <min value="1" />
    </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 SHOULD 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" />
      <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." />
      <min value="1" />
    </element>
    <element id="Meta.tag:entererSystem.display">
      <path value="Meta.tag.display" />
      <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." />
      <min value="1" />
    </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 SHOULD be provided in CREATE and UPDATE requests of Medical Institutions when Medical Person Role is used for authorization and if required by business." />
      <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" />
      <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." />
      <min value="1" />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.display">
      <path value="Meta.tag.display" />
      <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 Role name." />
    </element>
    <element id="Meta.tag:entererMedicalPersonRole.userSelected">
      <path value="Meta.tag.userSelected" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>