<?xml version="1.0" encoding="UTF-8"?>
<archetype xmlns="http://schemas.openehr.org/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <original_language>
    <terminology_id>
      <value>ISO_639-1</value>
    </terminology_id>
    <code_string>en</code_string>
  </original_language>
  <is_controlled>false</is_controlled>
  <description>
    <original_author id="date">2016-07-21</original_author>
    <original_author id="name">Aitor Eguzkitza</original_author>
    <original_author id="organisation">Universidad Pública de Navarra - Complejo Hospitalario de Navarra</original_author>
    <original_author id="email">aitor.eguzkiza@unavarra.es</original_author>
    <other_contributors>José Andonegui, Hospital de Navarra, jose.andonegui.navarro@cfnavarra.es</other_contributors>
    <other_contributors>Luis Serrano, Universidad Pública de Navarra (UPNA), lserrano@unavarra.es</other_contributors>
    <other_contributors>Jesús D. Trigo, Universidad Pública de Navarra (UPNA), jesusdaniel.trigo@unavarra.es</other_contributors>
    <lifecycle_state>in_development</lifecycle_state>
    <other_details id="licence">This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/.</other_details>
    <other_details id="custodian_organisation">openEHR Foundation</other_details>
    <other_details id="original_namespace">org.openehr</other_details>
    <other_details id="original_publisher">openEHR Foundation</other_details>
    <other_details id="custodian_namespace">org.openehr</other_details>
    <other_details id="MD5-CAM-1.0.1">7F54BD92424DE93764BAC7CD8896F203</other_details>
    <other_details id="build_uid">b183b788-6cd4-4538-bef9-c860260b9dd6</other_details>
    <other_details id="revision">0.0.1-alpha</other_details>
    <details>
      <language>
        <terminology_id>
          <value>ISO_639-1</value>
        </terminology_id>
        <code_string>en</code_string>
      </language>
      <purpose>To provide a framework to define a care plan, aimed at registering the progression of every complementary test involved in a healthcare process that requires coordinating diverse diagnostic tests to formulate a valid diagnosis for a specific disease.&#xD;
It will include orders for any test with diagnostic purposes (lab tests, medical imaging, patient monitoring...).</purpose>
      <keywords>diagnostic tests</keywords>
      <keywords>instruction</keywords>
      <keywords>planning</keywords>
      <use>This archetype coordinates, within the same care plan, the different diagnostic tests involved on the same clinical study.&#xD;
In those cases, the set of diagnostic tests must be assessed jointly, even if they have been carried out separately. &#xD;
Therefore, this archetype gathers every order and the resulting action for the diagnostic tests necessary for diagnosing a specific disease.&#xD;
In fact, every computerized physician order entries (CPOE) in a healthcare process can be defined using this archetype.</use>
      <misuse>It is not designed to schedule therapeutic procedures such as surgical interventions.</misuse>
      <copyright>© openEHR Foundation</copyright>
    </details>
    <details>
      <language>
        <terminology_id>
          <value>ISO_639-1</value>
        </terminology_id>
        <code_string>es</code_string>
      </language>
      <purpose>Gestionar todas las pruebas complementarias que participan en un proceso clínico que requiere la coordinación de diversas pruebas para formular un diagnóstico válido de una enfermedad específica.&#xD;
Incluirá las órdenes para cualquier prueba con fines diagnósticos (pruebas de laboratorio, imágenes médicas, monitorización del paciente ...).</purpose>
      <use>Este arquetipo reúne cada solicitud para las diferentes pruebas diagnósticas necesarias para determinar o confirmar el diagnóstico durante el estudio de una enfermedad específica.&#xD;
Toda solicitud de órdenes médicas electrónicas (CPOE) en un proceso de cuidado de la salud se puede definir utilizando este arquetipo.</use>
      <misuse>No está diseñado para programar procedimientos terapéuticos tales como intervenciones quirúrgicas.</misuse>
      <copyright>© openEHR Foundation</copyright>
    </details>
  </description>
  <translations>
    <language>
      <terminology_id>
        <value>ISO_639-1</value>
      </terminology_id>
      <code_string>es</code_string>
    </language>
    <author id="name">?</author>
  </translations>
  <uid>
    <value>249834af-d572-4302-91a7-c691c317fa50</value>
  </uid>
  <archetype_id>
    <value>openEHR-EHR-SECTION.diagnostic_test_planning.v0</value>
  </archetype_id>
  <adl_version>1.4</adl_version>
  <concept>at0000</concept>
  <definition>
    <rm_type_name>SECTION</rm_type_name>
    <occurrences>
      <lower_included>true</lower_included>
      <upper_included>true</upper_included>
      <lower_unbounded>false</lower_unbounded>
      <upper_unbounded>false</upper_unbounded>
      <lower>1</lower>
      <upper>1</upper>
    </occurrences>
    <node_id>at0000</node_id>
    <attributes xsi:type="C_MULTIPLE_ATTRIBUTE">
      <rm_attribute_name>items</rm_attribute_name>
      <existence>
        <lower_included>true</lower_included>
        <upper_included>true</upper_included>
        <lower_unbounded>false</lower_unbounded>
        <upper_unbounded>false</upper_unbounded>
        <lower>0</lower>
        <upper>1</upper>
      </existence>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>INSTRUCTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0006</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-INSTRUCTION\.care_plan(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-INSTRUCTION\.care_plan(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
        <excludes>
          <string_expression>archetype_id/value matches {/.*/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>.*</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </excludes>
      </children>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>ACTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0007</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-ACTION\.care_plan(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-ACTION\.care_plan(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
        <excludes>
          <string_expression>archetype_id/value matches {/.*/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>.*</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </excludes>
      </children>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>INSTRUCTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0001</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-INSTRUCTION\.request-referral(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-INSTRUCTION\.request-referral(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
        <excludes>
          <string_expression>archetype_id/value matches {/.*/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>.*</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </excludes>
      </children>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>INSTRUCTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0002</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-INSTRUCTION\.request-imaging_exam(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-INSTRUCTION\.request-imaging_exam(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
        <excludes>
          <string_expression>archetype_id/value matches {/.*/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>.*</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </excludes>
      </children>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>INSTRUCTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0005</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-INSTRUCTION\.request-lab_test(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-INSTRUCTION\.request-lab_test(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
        <excludes>
          <string_expression>archetype_id/value matches {/.*/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>.*</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </excludes>
      </children>
      <children xsi:type="ARCHETYPE_SLOT">
        <rm_type_name>INSTRUCTION</rm_type_name>
        <occurrences>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>0</lower>
        </occurrences>
        <node_id>at0004</node_id>
        <includes>
          <string_expression>archetype_id/value matches {/openEHR-EHR-INSTRUCTION\.request(-[a-zA-Z0-9_]+)*\.v([0-9]+)/}</string_expression>
          <expression xsi:type="EXPR_BINARY_OPERATOR">
            <type>Boolean</type>
            <operator>2007</operator>
            <precedence_overridden>false</precedence_overridden>
            <left_operand xsi:type="EXPR_LEAF">
              <type>String</type>
              <item xsi:type="xsd:string">archetype_id/value</item>
              <reference_type>attribute</reference_type>
            </left_operand>
            <right_operand xsi:type="EXPR_LEAF">
              <type>C_STRING</type>
              <item xsi:type="C_STRING">
                <pattern>openEHR-EHR-INSTRUCTION\.request(-[a-zA-Z0-9_]+)*\.v([0-9]+)</pattern>
              </item>
              <reference_type>constraint</reference_type>
            </right_operand>
          </expression>
        </includes>
      </children>
      <cardinality>
        <is_ordered>false</is_ordered>
        <is_unique>false</is_unique>
        <interval>
          <lower_included>true</lower_included>
          <lower_unbounded>false</lower_unbounded>
          <upper_unbounded>true</upper_unbounded>
          <lower>1</lower>
        </interval>
      </cardinality>
    </attributes>
  </definition>
  <ontology>
    <term_definitions language="es">
      <items code="at0000">
        <items id="text">Diagnostic test planning</items>
        <items id="description">Programa citas para cada paciente en las pruebas diagósticas necesarias para evaluar una enfermedad específica.</items>
      </items>
      <items code="at0001">
        <items id="text">Solicitud de volante</items>
        <items id="description">Solicitud para la prestación de una prueba diagnóstica específica por otro proveedor de salud u organización.</items>
      </items>
      <items code="at0002">
        <items id="text">Solicitud de examen imagenológico</items>
        <items id="description">Solicitud genérica para programar un examen imagenológico.</items>
      </items>
      <items code="at0004">
        <items id="text">Solicitud de otro servicio</items>
        <items id="description">Solicitud de otro servicio de salud no considerado en los slots anteriores.</items>
      </items>
      <items code="at0005">
        <items id="text">Solicitud test de laboratorio</items>
        <items id="description">Petición genérica para cualquier solicitud de prueba de laboratorio o patología.</items>
      </items>
      <items code="at0006">
        <items id="text">Plan clínico</items>
        <items id="description">Orden o instrucción para la creación y coordinación de actividades para lograr un objetivo específico en la gestión o en el tratamiento, llevado a cabo por profesionales de la salud y/o el propio paciente.</items>
      </items>
      <items code="at0007">
        <items id="text">Plan clínico</items>
        <items id="description">Planificación o coordinación de actividades discretas desarrolladas a fin de lograr un objetivo en la gestión o en el tratamiento, llevado a cabo por profesionales de la salud y/o el propio paciente.</items>
      </items>
    </term_definitions>
    <term_definitions language="en">
      <items code="at0000">
        <items id="text">Diagnostic test planning</items>
        <items id="description">Schedules each patient to perform the diagnostic tests necessary to assess a specific disease.</items>
      </items>
      <items code="at0001">
        <items id="text">Referral request</items>
        <items id="description">Request for provision of specific diagnostic test by another healthcare provider or organisation.</items>
      </items>
      <items code="at0002">
        <items id="text">Imaging examination request</items>
        <items id="description">Generic request for any imaging examination request.</items>
      </items>
      <items code="at0004">
        <items id="text">Other service request</items>
        <items id="description">Request of another healthcare service not considered in the slots above.</items>
      </items>
      <items code="at0005">
        <items id="text">Laboratory test request</items>
        <items id="description">Generic request for any laboratory or pathology test request.</items>
      </items>
      <items code="at0006">
        <items id="text">Care plan</items>
        <items id="description">Order or instruction for the creation and sequence of activities to achieve a specified management goal or treatment outcome, carried out by health professionals and/or the subject.</items>
      </items>
      <items code="at0007">
        <items id="text">Care plan</items>
        <items id="description">Plan or sequence of discrete activities developed to achieve a specified management goal or treatment outcome, carried out by health professionals and/or the patient.</items>
      </items>
    </term_definitions>
  </ontology>
</archetype>
