<?xml version="1.0" encoding="UTF-8"?>
<archetype xmlns="http://schemas.openehr.org/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <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">2020-10-28</original_author>
    <original_author id="name">Heather Leslie</original_author>
    <original_author id="organisation">Atomica Informatics</original_author>
    <original_author id="email">heather.leslie@atomicainformatics.com</original_author>
    <lifecycle_state>in_development</lifecycle_state>
    <other_details id="licence">This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.</other_details>
    <other_details id="custodian_organisation">openEHR Foundation</other_details>
    <other_details id="current_contact">Heather Leslie, Atomica Informatics&lt;heather.leslie@atomicainformatics.com&gt;</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">999CF2285FE14684F1D9B29CC45BAD80</other_details>
    <other_details id="build_uid">ea00fe88-bf89-4309-bdab-282608d73be6</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 and design guidance for consistent modelling of content within a template representing persistent summaries about Lifestyle risk factors.</purpose>
      <keywords>tobacco</keywords>
      <keywords>alcohol</keywords>
      <keywords>substance</keywords>
      <keywords>abuse</keywords>
      <keywords>exercise</keywords>
      <keywords>activity</keywords>
      <keywords>diet</keywords>
      <keywords>nutrition</keywords>
      <keywords>health</keywords>
      <keywords>sexual</keywords>
      <keywords>smoking</keywords>
      <keywords>drinking</keywords>
      <use>Use as a framework and suggested design guidance for consistent modelling of content within a template representing persistent summaries about Lifestyle risk factors.&#xD;
&#xD;
This archetype is intended to be used within the COMPOSITION.lifestyle_factors or as one component of other COMPOSITION archetypes. For example: complex documents, such as a discharge summary or referral.</use>
      <misuse />
      <copyright>© openEHR Foundation</copyright>
    </details>
  </description>
  <uid>
    <value>48ecda8e-8ab2-46ed-948f-86af39853833</value>
  </uid>
  <archetype_id>
    <value>openEHR-EHR-SECTION.lifestyle_risk_factors.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>ENTRY</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-EVALUATION\.tobacco_smoking_summary\.v1|openEHR-EHR-EVALUATION\.alcohol_consumption_summary\.v1|openEHR-EHR-EVALUATION\.physical_activity_summary\.v0|openEHR-EHR-EVALUATION\.food_nutrition_summary\.v0|openEHR-EHR-EVALUATION\.gambling_summary\.v0|openEHR-EHR-EVALUATION\.sexual_health_summary\.v0|openEHR-EHR-EVALUATION\.vaping_summary\.v0|openEHR-EHR-EVALUATION\.smokeless_tobacco_summary\.v1/}</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-EVALUATION\.tobacco_smoking_summary\.v1|openEHR-EHR-EVALUATION\.alcohol_consumption_summary\.v1|openEHR-EHR-EVALUATION\.physical_activity_summary\.v0|openEHR-EHR-EVALUATION\.food_nutrition_summary\.v0|openEHR-EHR-EVALUATION\.gambling_summary\.v0|openEHR-EHR-EVALUATION\.sexual_health_summary\.v0|openEHR-EHR-EVALUATION\.vaping_summary\.v0|openEHR-EHR-EVALUATION\.smokeless_tobacco_summary\.v1</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="en">
      <items code="at0000">
        <items id="text">Lifestyle risk factors</items>
        <items id="description">Framework for consistent modelling of content within a template for Lifestyle risk factors.</items>
      </items>
      <items code="at0005">
        <items id="text">Risk factors</items>
        <items id="description"></items>
      </items>
    </term_definitions>
  </ontology>
</archetype>

