{% capture childItems %}{% if QuestionnaireResponse.item.where(linkId = 'mainSection__section').exists() %}{% for currentItem in QuestionnaireResponse.item.where(linkId = 'mainSection__section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'body').exists() %}{% for currentItem in currentItem.item.where(linkId = 'body') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_102173268919_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_102173268919_ocean_section') %}Referral Details

{% capture childItems %}{% if currentItem.item.where(linkId = 'id_306135170795_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_306135170795_ocean_section') %}Triage Considerations
{% capture childItems %}{% if currentItem.item.where(linkId = 'referral_requestedpriority_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_requestedpriority_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'referral_requestedpriority' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_requestedpriority' and answer.exists()) %}{% if currentItem.answer.exists() %}Requested Priority: {% for answer in currentItem.answer %}{% if answer.value = 'Urgent' %}Urgent{% endif %}{% if answer.value = 'Routine' %}Routine{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'referral_requestedpriority_urgentreason_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_requestedpriority_urgentreason_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'referral_requestedpriority_urgentreason' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_requestedpriority_urgentreason' and answer.exists()) %}{% if currentItem.answer.exists() %} • Reason for urgent triage: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'referral_secondopinion' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_secondopinion' and answer.exists(value.ofType(boolean)=true)) %}• Second Opinion{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'referral_secondopinion_reason_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_secondopinion_reason_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'referral_secondopinion_reason' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'referral_secondopinion_reason' and answer.exists()) %}{% if currentItem.answer.exists() %} • Reason for second opinion: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}
$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_695991571585_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_695991571585_ocean_section') %}Service(s) Requested
{% capture childItems %}{% if currentItem.item.where(linkId = 'id_223886162384' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_223886162384' and answer.exists(value.ofType(boolean)=true)) %}• Cardiac Testing{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_660331267409_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_660331267409_ocean_section') %}{% if %resource.repeat(item).where(linkId='id_223886162384').answer.value %}{% if %resource.repeat(item).where(linkId='id_223886162384').answer.value %}    • Exam(s) Requested:{% endif %}
{% endif %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_720409326878' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_720409326878' and answer.exists(value.ofType(boolean)=true)) %} • 24 Hour Ambulatory Blood Pressure Monitoring (Not OHIP Covered){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_960455115596' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_960455115596' and answer.exists(value.ofType(boolean)=true)) %} • Coronary Angiogram{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_297634898828' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_297634898828' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram - Resting{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_443484577720_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_443484577720_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_165530569567' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_165530569567' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram (2D){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_286552421895' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_286552421895' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram with Contrast{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_910527687300' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_910527687300' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram with Saline (Bubble){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_657824763133' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_657824763133' and answer.exists(value.ofType(boolean)=true)) %} • Pediatric Echocardiogram{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_992743200182' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_992743200182' and answer.exists(value.ofType(boolean)=true)) %} • Transesophageal Echocardiogram (TEE){% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_894277763438' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_894277763438' and answer.exists(value.ofType(boolean)=true)) %} • Electrocardiogram (ECG){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_279226023495' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_279226023495' and answer.exists(value.ofType(boolean)=true)) %} • Holter Monitoring{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_440449731882_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_440449731882_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_671328703851' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_671328703851' and answer.exists(value.ofType(boolean)=true)) %} • 24 Hours{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_423992261841' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_423992261841' and answer.exists(value.ofType(boolean)=true)) %} • 48 Hours{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_419924239187' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_419924239187' and answer.exists(value.ofType(boolean)=true)) %} • 72 Hours{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_731054417270' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_731054417270' and answer.exists(value.ofType(boolean)=true)) %} • 7 Days{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_235876421044' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_235876421044' and answer.exists(value.ofType(boolean)=true)) %} • 14 Days{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_374742834400' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_374742834400' and answer.exists(value.ofType(boolean)=true)) %} • Loop / Event Monitor{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_159161544747' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_159161544747' and answer.exists(value.ofType(boolean)=true)) %} • Stress Testing{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_370275060390_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_370275060390_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_814218498309' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_814218498309' and answer.exists(value.ofType(boolean)=true)) %} • ECG - Exercise Stress Test{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_307107493993' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_307107493993' and answer.exists(value.ofType(boolean)=true)) %} • ECG - Dobutamine/Persantine Stress Test{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_805303414102' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_805303414102' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram - Exercise Stress Test{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_193586908489' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_193586908489' and answer.exists(value.ofType(boolean)=true)) %} • Echocardiogram - Dobutamine/Persantine Stress Test{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_918517139023' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_918517139023' and answer.exists(value.ofType(boolean)=true)) %} • Nuclear Medicine{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_222686221935_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_222686221935_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_924189648184' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_924189648184' and answer.exists(value.ofType(boolean)=true)) %} • MUGA - Resting{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_857163514910' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_857163514910' and answer.exists(value.ofType(boolean)=true)) %} • Cardiac Pyrophosphate{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_892165959617' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_892165959617' and answer.exists(value.ofType(boolean)=true)) %} • MIBI Scans / Myocardial Perfusion Imaging (MPI){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_538288549138_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_538288549138_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_373435981917' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_373435981917' and answer.exists(value.ofType(boolean)=true)) %} • MIBI Scan - Exercise Stress Test{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_434394942688' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_434394942688' and answer.exists(value.ofType(boolean)=true)) %} • MIBI Scan - Dobutamine/Persantine Stress Test{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_913594478162' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_913594478162' and answer.exists(value.ofType(boolean)=true)) %} • Thallium Viability Test{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_992682216482' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_992682216482' and answer.exists(value.ofType(boolean)=true)) %} • Tilt Table Testing{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_785727177547' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_785727177547' and answer.exists(value.ofType(boolean)=true)) %}• Cardiology Consultation{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_186952778859_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_186952778859_ocean_section') %}
Concern(s) / Indication(s) Triggering Referral

{% capture childItems %}{% if currentItem.item.where(linkId = 'id_219569805461' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_219569805461' and answer.exists(value.ofType(boolean)=true)) %}• Arrythmias or Palpitations{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_571934328499' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_571934328499' and answer.exists(value.ofType(boolean)=true)) %}• Cardiovascular Risk Assessment{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_459737733395' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_459737733395' and answer.exists(value.ofType(boolean)=true)) %}• Chest Pain or Angina{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_929919815516' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_929919815516' and answer.exists(value.ofType(boolean)=true)) %}• Congenital Heart Disease{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_832263816528' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_832263816528' and answer.exists(value.ofType(boolean)=true)) %}• Congestive Heart Failure{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_803760213460' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_803760213460' and answer.exists(value.ofType(boolean)=true)) %}• Coronary Artery Disease{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_129767162379' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_129767162379' and answer.exists(value.ofType(boolean)=true)) %}• Dyspnea{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_116150628533' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_116150628533' and answer.exists(value.ofType(boolean)=true)) %}• Hypertension{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_513825527027' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_513825527027' and answer.exists(value.ofType(boolean)=true)) %}• Murmur{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_975075898688' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_975075898688' and answer.exists(value.ofType(boolean)=true)) %}• Pericardial Disease{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_704148928571' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_704148928571' and answer.exists(value.ofType(boolean)=true)) %}• Peripheral Edema{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_886489617115' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_886489617115' and answer.exists(value.ofType(boolean)=true)) %}• Post-Myocardial Infarction{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_621745958993' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_621745958993' and answer.exists(value.ofType(boolean)=true)) %}• Pre-Operative Consultation{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_873024527134_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_873024527134_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_873024527134' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_873024527134' and answer.exists()) %}{% if currentItem.answer.exists() %} • Procedure Date: {% for answer in currentItem.answer %}{{ answer.value.ofType(date) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_197975129599' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_197975129599' and answer.exists(value.ofType(boolean)=true)) %}• Syncope{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_675849150752' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_675849150752' and answer.exists(value.ofType(boolean)=true)) %}• Valvular Heart Disease or Prosthetic Heart Valve{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_721982740516' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_721982740516' and answer.exists(value.ofType(boolean)=true)) %}• Other{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_720594942482_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_720594942482_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'id_720594942482' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_720594942482' and answer.exists()) %}{% if currentItem.answer.exists() %} • Specify: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}
$SEP${% endif %}{% if currentItem.item.where(linkId = 'id_127224908991' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'id_127224908991' and answer.exists()) %}{% if currentItem.answer.exists() %}Brief Description of Referral, History, Management, and Investigations:
{% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}
$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_header_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_header_ocean_section') %}{% if %resource.repeat(item).where(linkId='cpp_separate').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='cpp_currentprob').answer.exists() or %resource.repeat(item).where(linkId='cpp_pastmedicalhistory').answer.exists() or %resource.repeat(item).where(linkId='cpp_currentmedications').answer.exists() or %resource.repeat(item).where(linkId='cpp_familyhistory').answer.exists() or %resource.repeat(item).where(linkId='cpp_allergies').answer.exists() %}{% if %resource.repeat(item).where(linkId='cpp_separate').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='cpp_currentprob').answer.exists() or %resource.repeat(item).where(linkId='cpp_pastmedicalhistory').answer.exists() or %resource.repeat(item).where(linkId='cpp_currentmedications').answer.exists() or %resource.repeat(item).where(linkId='cpp_familyhistory').answer.exists() or %resource.repeat(item).where(linkId='cpp_allergies').answer.exists() %}Cumulative Patient Profile
{% endif %}
{% endif %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_separate' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_separate' and answer.exists(value.ofType(boolean)=true)) %}• CPP attached separately{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_currentprob_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_currentprob_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_currentprob' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_currentprob' and answer.exists()) %}{% if currentItem.answer.exists() %}Current Problem List: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_pastmedicalhistory_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_pastmedicalhistory_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_pastmedicalhistory' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_pastmedicalhistory' and answer.exists()) %}{% if currentItem.answer.exists() %}Past Medical History: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_currentmedications_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_currentmedications_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_currentmedications' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_currentmedications' and answer.exists()) %}{% if currentItem.answer.exists() %}Current Medications: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_familyhistory_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_familyhistory_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_familyhistory' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_familyhistory' and answer.exists()) %}{% if currentItem.answer.exists() %}Family History: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'cpp_allergies_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_allergies_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'cpp_allergies' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'cpp_allergies' and answer.exists()) %}{% if currentItem.answer.exists() %}Allergies: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}
{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_header_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_header_ocean_section') %}{% if %resource.repeat(item).where(linkId='preferredconsultlocation_selector').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='preferredconsultlocation_willingtotravel').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='preferredconsultlocation_otherconsiderations').answer.exists() %}{% if %resource.repeat(item).where(linkId='preferredconsultlocation_selector').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='preferredconsultlocation_willingtotravel').answer.exists(value = 'Y') or %resource.repeat(item).where(linkId='preferredconsultlocation_otherconsiderations').answer.exists() %}Preferred Consultant or Location
{% endif %}
{% endif %}{% capture childItems %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_selector' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_selector' and answer.exists(value.ofType(boolean)=true)) %}• Preferred consultant or location{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_specify_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_specify_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_consultant' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_consultant' and answer.exists()) %}{% if currentItem.answer.exists() %} • Consultant: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_location' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_location' and answer.exists()) %}{% if currentItem.answer.exists() %} • Location: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_willingtotravel' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_willingtotravel' and answer.exists(value.ofType(boolean)=true)) %}• Patient willing to travel for shorter wait time{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'preferredconsultlocation_otherconsiderations' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'preferredconsultlocation_otherconsiderations' and answer.exists()) %}{% if currentItem.answer.exists() %}• Other considerations: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_header_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_header_ocean_section') %}{% if %resource.repeat(item).where(linkId='additionalinfo_sexassignedatbirth').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_pronouns').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_preferredlanguage').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_bestmethodofcontact').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_preferredname_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_alternatecontact_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_unsafecontacts_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_accessibilityconcernsordisability_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_specialconsiderations_select').answer.exists() %}{% if %resource.repeat(item).where(linkId='additionalinfo_sexassignedatbirth').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_pronouns').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_preferredlanguage').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_bestmethodofcontact').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_preferredname_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_alternatecontact_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_unsafecontacts_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_accessibilityconcernsordisability_select').answer.exists() or %resource.repeat(item).where(linkId='additionalinfo_specialconsiderations_select').answer.exists() %}
[Optional] Additional Patient Information
{% endif %}
{% endif %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_sexassignedatbirth' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sexassignedatbirth' and answer.exists()) %}{% if currentItem.answer.exists() %}Sex assigned at birth: {% for answer in currentItem.answer %}{% if answer.value = 'Female' %}Female{% endif %}{% if answer.value = 'Male' %}Male{% endif %}{% if answer.value = 'Intersex' %}Intersex{% endif %}{% if answer.value = 'Unknown' %}Unknown{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_pronouns_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_pronouns_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_pronouns' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_pronouns' and answer.exists()) %}{% if currentItem.answer.exists() %}Pronouns: {% for answer in currentItem.answer %}{% if answer.value = 'She/Her' %}She/Her{% endif %}{% if answer.value = 'He/Him' %}He/Him{% endif %}{% if answer.value = 'They/Them' %}They/Them{% endif %}{% if answer.value = 'Other' %}Other{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_pronouns_other_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_pronouns_other_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_pronouns_other' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_pronouns_other' and answer.exists()) %}{% if currentItem.answer.exists() %} • Other pronouns: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredname_select' and %resource.repeat(item).where(linkId='additionalinfo_preferredname').answer.empty() and %resource.repeat(item).where(linkId='additionalinfo_preferredname_select').answer.exists(value = 'Y') and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredname_select' and %resource.repeat(item).where(linkId='additionalinfo_preferredname').answer.empty() and %resource.repeat(item).where(linkId='additionalinfo_preferredname_select').answer.exists(value = 'Y') and answer.exists(value.ofType(boolean)=true)) %}{% if %resource.repeat(item).where(linkId='additionalinfo_preferredname').answer.empty() and %resource.repeat(item).where(linkId='additionalinfo_preferredname_select').answer.exists(value = 'Y') %}Preferred Name{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredname_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredname_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredname' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredname' and answer.exists()) %}{% if currentItem.answer.exists() %}• Preferred Name: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage' and answer.exists()) %}{% if currentItem.answer.exists() %}Preferred language: {% for answer in currentItem.answer %}{% if answer.value = 'English' %}English{% endif %}{% if answer.value = 'French' %}French{% endif %}{% if answer.value = 'Other' %}Other{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_specify_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_specify_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_specify' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_specify' and answer.exists()) %}{% if currentItem.answer.exists() %} • Specify: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_translatorrequired_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_translatorrequired_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_translatorrequired' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_preferredlanguage_translatorrequired' and answer.exists(value.ofType(boolean)=true)) %} • Translator required{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact' and answer.exists()) %}{% if currentItem.answer.exists() %}Best method of contact: {% for answer in currentItem.answer %}{% if answer.value = 'Mobile' %}Mobile{% endif %}{% if answer.value = 'Home' %}Home{% endif %}{% if answer.value = 'Business' %}Business{% endif %}{% if answer.value = 'Email' %}Email{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_voicemails_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_voicemails_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_voicemails' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_bestmethodofcontact_voicemails' and answer.exists(value.ofType(boolean)=true)) %} • Voicemails acceptable{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_select' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_select' and answer.exists(value.ofType(boolean)=true)) %}• Alternate contact{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_name_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_name_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_name' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_name' and answer.exists()) %}{% if currentItem.answer.exists() %} • Name: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_phone_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_phone_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_phone' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_phone' and answer.exists()) %}{% if currentItem.answer.exists() %} • Alternate contact phone #: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_relationship_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_relationship_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_relationship' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_relationship' and answer.exists()) %}{% if currentItem.answer.exists() %} • Relationship: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_bookingcontact_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_bookingcontact_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_alternatecontact_bookingcontact' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_alternatecontact_bookingcontact' and answer.exists()) %}{% if currentItem.answer.exists() %}{% if currentItem.answer.value.ofType(Coding).code = 'Y' %} • Alternate contact is the booking contact{% elsif currentItem.answer.value.ofType(Coding).code = 'N' %} • Alternate contact is not the booking contact{% endif %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_select' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_select' and answer.exists(value.ofType(boolean)=true)) %}• Unsafe contact persons (do not speak with){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_speakwithpatientdirectly_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_speakwithpatientdirectly_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_speakwithpatientdirectly' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_speakwithpatientdirectly' and answer.exists(value.ofType(boolean)=true)) %} • Only speak with patient directly{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_donotspeakwith_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_donotspeakwith_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_donotspeakwith' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_unsafecontacts_donotspeakwith' and answer.exists()) %}{% if currentItem.answer.exists() %} • Do not speak with: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability_select' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability_select' and answer.exists(value.ofType(boolean)=true)) %}• Accessibility concerns or disability{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_accessibilityconcernsordisability' and answer.exists()) %}{% if currentItem.answer.exists() %} • {% for answer in currentItem.answer %}{% if answer.value = 'Falls risk' %}Falls risk{% endif %}{% if answer.value = 'Patient requires lift' %}Patient requires lift{% endif %}{% if answer.value = 'Wheelchair' %}Wheelchair{% endif %}{% if answer.value = 'Hearing impaired' %}Hearing impaired{% endif %}{% if forloop.last.not() %}{% if forloop.nextitem %}; {% else %}; {% endif %}{% endif %}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_specialconsiderations_select' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_specialconsiderations_select' and answer.exists(value.ofType(boolean)=true)) %}• Special considerations (e.g. barriers, tips for care delivery, 3rd party insurance, patient requires escort, cognitive issues){% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_specialconsiderations_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_specialconsiderations_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_specialconsiderations' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_specialconsiderations' and answer.exists()) %}{% if currentItem.answer.exists() %} • Details: {% for answer in currentItem.answer %}{{ answer.value }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders' and answer.exists(value.ofType(boolean)=true)) %}
Send copies of reports to additional providers{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_names_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_names_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_names' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_names' and answer.exists()) %}{% if currentItem.answer.exists() %}Additional provider name(s): {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_contactinfo_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_contactinfo_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_contactinfo' and answer.exists()).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_contactinfo' and answer.exists()) %}{% if currentItem.answer.exists() %}Contact information: {% for answer in currentItem.answer %}{{ answer.value.extension('').extension('').value.ofType(string) }}{% endfor %}{% endif %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_ispcp_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_ispcp_ocean_section') %}{% capture childItems %}{% if currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_ispcp' and answer.exists(value.ofType(boolean)=true)).exists() %}{% for currentItem in currentItem.item.where(linkId = 'additionalinfo_sendcopiestoadditionalproviders_ispcp' and answer.exists(value.ofType(boolean)=true)) %}This is the Primary Care Provider{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}
$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% if currentItem.item.where(linkId = 'supportingdocumentation_header_ocean_section').exists() %}{% for currentItem in currentItem.item.where(linkId = 'supportingdocumentation_header_ocean_section') %}{% capture childItems %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}{% endfor %}$SEP${% endif %}{% endcapture %}{% assign itemList = childItems || remove_last: '$SEP$' || split: '$SEP$' %}{% for listItem in itemList %}{{ listItem }}{% if forloop.last.not() %}{% if forloop.nextitem %}
{% else %}
{% endif %}{% endif %}{% endfor %}