{% if ActivityDefinition.id.exists() %} {% endif %} {% if ActivityDefinition.url.exists() %} {% endif %} {% if ActivityDefinition.version.exists() %} {% endif %} {% for identifier in ActivityDefinition.identifier %} {% endfor %} {% if ActivityDefinition.name.exists() %} {% endif %} {% if ActivityDefinition.title.exists() %} {% endif %} {% if ActivityDefinition.subtitle.exists() %} {% endif %} {% if ActivityDefinition.status.exists() %} {% endif %} {% if ActivityDefinition.experimental.exists() %} {% endif %} {% if ActivityDefinition.subject.exists() %} {%if ActivityDefinition.subject is CodeableConcept %} {% endif %} {% if ActivityDefinition.subject is Reference %} {% endif %} {% endif %} {% if ActivityDefinition.date.exists() %} {% endif %} {% if ActivityDefinition.publisher.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.purpose.exists() %} {% endif %} {% if ActivityDefinition.usage.exists() %} {% endif %} {% if ActivityDefinition.copyright.exists() %} {% endif %} {% if ActivityDefinition.approvalDate.exists() %} {% endif %} {% if ActivityDefinition.lastReviewDate.exists() %} {% endif %} {% if ActivityDefinition.effectivePeriod.exists() %} {% endif %} {% if ActivityDefinition.relatedArtifact.exists() %} {% endif %} {% if ActivityDefinition.library.exists() %} {% endif %} {% if ActivityDefinition.kind.exists() %} {% endif %} {% if ActivityDefinition.profile.exists() %} {% endif %} {% if ActivityDefinition.code.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 %}
Id: {{ActivityDefinition.id}}
Url: {{ActivityDefinition.url}}
Version: {{ActivityDefinition.version}}
Identifier: {% if identifier.type.exists() %}

type: {{identifier.type.value}}

{% endif %} {% if identifier.value.exists() %}

value: {{identifier.value}}

{% endif %}
Name: {{ActivityDefinition.name}}
Title: {{ActivityDefinition.title.escape('html')}}
Subtitle: {{ActivityDefinition.subtitle.escape('html')}}
Status: {{ActivityDefinition.status.value}}
Experimental: {{ActivityDefinition.experimental.value}}
Subject: {% if ActivityDefinition.subject.coding.exists() %} {% for coding in ActivityDefinition.subject.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.subject.coding.exists().not and ActivityDefinition.subject.text.exists() %} {{ActivityDefinition.subject.text}} {% endif %}
{% if ActivityDefinition.subject.reference.exists() %}

reference: {{ActivityDefinition.subject.reference}}

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

type: {{ActivityDefinition.subject.type}}

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

code: {{ActivityDefinition.subject.display}}

{% endif %}
Date: {{ActivityDefinition.date}}
Publisher: {{ActivityDefinition.publisher.escape('html')}}
Description: {{ActivityDefinition.description.escape('html')}}
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 %}
codevaluedisplay
{{useContext.code.code}} {{(useContext.value as CodeableConcept).coding.first().code}} {{(useContext.value as CodeableConcept).coding.first().display.escape('html')}}
Jurisdiction: {{ActivityDefinition.jurisdiction.first().coding.first().code}}
Purpose: {{ActivityDefinition.purpose.escape('html')}}
Usage: {{ActivityDefinition.usage.escape('html')}}
Copyright: {{ActivityDefinition.copyright.escape('html')}}
Approval Date: {{ActivityDefinition.approvalDate}}
Last Review Date: {{ActivityDefinition.lastReviewDate}}
Effective Period: {{ActivityDefinition.effectivePeriod.start}}..{{ActivityDefinition.effectivePeriod.end}}
Related Artifacts: {% if ActivityDefinition.relatedArtifact.where(type = 'documentation' or type = 'justification').exists() %}

Documentation

{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'citation').exists() %}

References

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'citation') %}
  • {{artifact.citation}}
    {{artifact.url}}
  • {% endfor %}
{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'depends-on').exists() %}

Dependencies

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'depends-on') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'composed-of').exists() %}

Components

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'composed-of') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'derived-from').exists() %}

Derived From

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'derived-from') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'successor').exists() %}

Successor

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'successor') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %} {% if ActivityDefinition.relatedArtifact.where(type = 'predecessor').exists() %}

Predecessor

    {% for artifact in ActivityDefinition.relatedArtifact.where(type = 'predecessor') %}
  • {{artifact.resource}}
  • {% endfor %}
{% endif %}
Libraries: {% for library in ActivityDefinition.library %} {% endfor %}
{{library}}
Kind: {{ActivityDefinition.kind.value}}
Profile: {{ActivityDefinition.profile.value}}
Type: {% 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.escape('html')}}

{% endif %} {% endfor %} {% endif %} {% if ActivityDefinition.code.coding.exists().not and ActivityDefinition.code.text.exists() %} {{ActivityDefinition.code.text}} {% endif %}
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.escape('html')}}

{% 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.escape('html')}}

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