{% if ActivityDefinition.title.exists() %} {% endif %} {% if ActivityDefinition.id.exists() %} {% endif %} {% if ActivityDefinition.version.exists() %} {% endif %} {% for identifier in ActivityDefinition.identifier %} {% endfor %} {% if ActivityDefinition.effectivePeriod.exists() %} {% endif %} {% if ActivityDefinition.status.exists() and ActivityDefinition.status.value != 'active' %} {% endif %} {% if ActivityDefinition.experimental.exists() and ActivityDefinition.experimental.value = 'true' %} {% endif %} {% if ActivityDefinition.date.exists() %} {% endif %} {% if ActivityDefinition.approvalDate.exists() %} {% endif %} {% if ActivityDefinition.publisher.exists() %} {% endif %} {% if ActivityDefinition.author.exists() and ActivityDefinition.author.name.exists() %} {% endif %} {% if ActivityDefinition.endorser.exists() and ActivityDefinition.endorser.name.exists() %} {% endif %} {% if ActivityDefinition.description.exists() %} {% endif %} {% if ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability').exists() %} {% endif %} {% if ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel').exists() %} {% endif %} {% if ActivityDefinition.useContext.exists() %} {% endif %} {% if ActivityDefinition.jurisdiction.exists() %} {% endif %} {% if ActivityDefinition.topic.exists() %} {% endif %} {% if ActivityDefinition.purpose.exists() %} {% endif %} {% if ActivityDefinition.usage.exists() %} {% endif %} {% if ActivityDefinition.copyright.exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.exists() %} {% endif %} {% if ActivityDefinition.library.exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.exists() %} {% endif %} {% if ActivityDefinition.code.exists() %} {% endif %} {% if ActivityDefinition.logic.exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'derived-from').exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'successor').exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'predecessor').exists() %} {% endif %} {% if ActivityDefinition.kind.exists() %} {% endif %} {% if ActivityDefinition.profile.exists() %} {% endif %} {% if ActivityDefinition.intent.exists() %} {% endif %} {% if ActivityDefinition.priority.exists() %} {% endif %} {% if ActivityDefinition.doNotPerform.exists() %} {% endif %} {% if ActivityDefinition.product.exists() %} {% if ActivityDefinition.product is CodeableConcept %} {% endif %} {% if ActivityDefinition.product is Reference %} {% endif %} {% endif %} {% if ActivityDefinition.quantity.exists() %} {% endif %} {% if ActivityDefinition.bodySite.exists() %} {% endif %} {% if ActivityDefinition.dynamicValue.exists() %} {% endif %}
Title: {{ActivityDefinition.title}}
Id: {{ActivityDefinition.id}}
Version: {{ActivityDefinition.version}}
{% if identifier.type.coding.exists() %} {% if identifier.type.coding.display.exists() %} {{identifier.type.coding.display}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} Identifier: {% else %} {{identifier.type.coding.code}}{% if identifier.assigner.display.exists() %} ({{identifier.assigner.display}}){% endif %} identifier: {% endif %} {% else %} {{identifier.use}} {% endif %} {% if identifier.value.exists() %}

{{identifier.value}}

{% endif %}
Effective Period: {{ActivityDefinition.effectivePeriod.start}}..{{ActivityDefinition.effectivePeriod.end}}
Status: {{ActivityDefinition.status.value}}
Experimental: {{ActivityDefinition.experimental.value}}
Date (date last changed): {{ActivityDefinition.date}}
Approval date: {{ActivityDefinition.approvalDate}}
Publisher (steward): {{ActivityDefinition.publisher}}
Author: {{ActivityDefinition.author.name}}
Endorsed by: {{ActivityDefinition.endorser.name}}
Description: {{ActivityDefinition.description}}
Knowledge Capability: {% for extension in ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability') %} {{extension.value}} {% endfor %}
Knowledge Representation Level: {% for extension in ActivityDefinition.extension.where(url = 'http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeRepresentationLevel') %} {{extension.value}} {% endfor %}
Use Context: {% for useContext in ActivityDefinition.useContext %} {% endfor %}
code value
{{useContext.code.code}} {{useContext.value.text}}
Jurisdiction: {{ActivityDefinition.jurisdiction.first().coding.first().code}}
Topic: {{ActivityDefinition.topic.first().coding.first().code}}
Purpose: {{ActivityDefinition.purpose.first().coding.first().code}}
Usage (Guidance): {{ActivityDefinition.usage.first().coding.first().code}}
Copyright: {{ActivityDefinition.copyright}}
Reference: {% for artifact in ActivityDefinition.relatedArtifact %} {% if artifact.type == 'citation' %}

Citation: {{artifact.citation}}
{{artifact.url}}

{% endif %} {% endfor %}
Libraries: {% for library in ActivityDefinition.library %} {% endfor %}
{{ library }}
Terminology and Other Dependencies:
    {% for artifact in ActivityDefinition.relatedArtifact %} {% if artifact.type == 'depends-on' %}
  • {{ artifact.resource }}
  • {% endif %} {% endfor %}
Code: {% if ActivityDefinition.code.coding.exists() %} {% for coding in ActivityDefinition.code.coding %} {% if coding.system.exists() %}

system: {{ coding.system }}

{% endif %} {% if coding.code.exists() %}

code: {{ coding.code }}

{% endif %} {% if coding.display.exists() %}

display: {{ coding.display }}

{% endif %} {% endfor %} {% endif %} {% if ActivityDefinition.code.coding.exists().not() and ActivityDefinition.code.text.exists() %} {{ ActivityDefinition.code.text }} {% endif %}
Logic Definitions: {{ ActivityDefinition.logic }}
Derived From:
    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'derived-from') %}
  • {{ artifact.resource }}
  • {% endfor %}
Successor:
    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'successor') %}
  • {{ artifact.resource }}
  • {% endfor %}
Predecessor:
    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'predecessor') %}
  • {{ artifact.resource }}
  • {% endfor %}
Kind: {{ ActivityDefinition.kind.value }}
Profile: {{ ActivityDefinition.profile.value }}
Intent: {{ ActivityDefinition.intent.value }}
Priority: {{ ActivityDefinition.priority.value }}
doNotPerform: {{ ActivityDefinition.doNotPerform.value }}
Product: {% if ActivityDefinition.product.coding.exists() %} {% for coding in ActivityDefinition.product.coding %} {% if coding.system.exists() %}

system: {{ coding.system }}

{% endif %} {% if coding.code.exists() %}

code: {{ coding.code }}

{% endif %} {% if coding.display.exists() %}

display: {{ coding.display }}

{% endif %} {% endfor %} {% endif %} {% if ActivityDefinition.product.coding.exists().not() and ActivityDefinition.product.text.exists() %} {{ ActivityDefinition.product.text }} {% endif %}
{% if ActivityDefinition.product.reference.exists() %}

reference: {{ ActivityDefinition.product.reference }}

{% endif %} {% if ActivityDefinition.product.type.exists() %}

type: {{ ActivityDefinition.product.type }}

{% endif %} {% if ActivityDefinition.product.display.exists() %}

code: {{ ActivityDefinition.product.display }}

{% endif %}
Quantity: {{ ActivityDefinition.quantity.value }} ({{ ActivityDefinition.quantity.unit }})
Body Site(s): {% for bodySite in ActivityDefinition.bodySite %} {% endfor %}
code display
{{ bodySite.coding.first().code }} {{ bodySite.coding.first().display }}
Dynamic Values:
    {% for dynamicValue in ActivityDefinition.dynamicValue %}
  • {{ dynamicValue.path }}: ({{ dynamicValue.expression.expression }})
  • {% endfor %}