{% assign compositionResource = bundle.entry | where: "resource.resourceType", "Composition" | first %} {% assign composition = compositionResource.resource %}
{{ sec.text.div }}
{% if sec.section %} {% for sec2 in sec.section %}{{ sec2.text.div }}
{% endfor %} {% endif %} {% endfor %}{{ namepart.type.coding[0].display }}: {{ namepart.part }}
{% endfor %} {% comment %}and MPD identifiers{% endcomment %} {% for pid in mpd.identifier %} {{ pid.system | split: '/' | last | upcase }}: {{ pid.value }} {% endfor %} {% comment %}for each name (currently [0] but should be all) print the languages{% endcomment %} {% comment %}FIX{% endcomment %} {% if mpd.name[0].countryLanguage %}Country: {{ lang.country.coding[0].display }}
Language: {{ lang.language.coding[0].display }}
{% endfor %}status: {{ mpd.status.coding[0].display }}
Domain: {{ mpd.domain.coding[0].display }}
Combined pharmaceutical dose form: {{ mpd.combinedPharmaceuticalDoseForm.coding[0].display }}
Legal Status of Supply: {{ mpd.legalStatusOfSupply.coding[0].display }}
Authorisation {{ forloop.index }} of {{ ras | size }}
Auth id: {% for raid in ra.identifier %} {{ raid.value | join: ", " }} {% endfor %}Region: {% for rareg in ra.region %} {{ rareg.coding[0].display }} {% endfor %}
Type: {{ ra.type.coding[0].display }}
{% assign holderorg = ra.holder.reference | split: '/' | last %} {% comment %}Get Orgs from Bundle {% endcomment %} {% assign orgentries = bundle.entry | where: "resource.resourceType", "Organization" %} {% for orgentry in orgentries %} {% assign org = orgentry.resource %} {% assign orgid = org.id %} {% assign orgrefid = org.id | prepend: 'Organization/' %} {% comment %}See which of the Orgs is referenced from the RA{% endcomment %} {% if ra.holder.reference == orgrefid %}Holder: {{ org.name }} ({{ org.identifier[0].value }})
{% endif %} {% endfor %}Status: {{ ra.status.coding[0].display }} ({{ ra.statusDate }})
Package {{ forloop.index }} of {{ ppds | size }}
{% assign mpdtid = mpd.id | prepend: 'MedicinalProductDefinition/' %} {% comment %}FIX{% endcomment %} {% if ppd.packageFor[0].reference == mpdtid %}Description: {{ ppd.description }}
Marketing Status: {{ ppd.status.coding[0].code }}Contained Quantity:
{% assign pckg = ppd.packaging %}
{% if pckg.quantity % %}
Package: {{ pckg.quantity }} {{ pckg.type.coding[0].display }} [{{ pckg.material[0].coding[0].display }}]
Administrable Product ({{ forloop.index }} of {{ apds | size }})
Dose form: {{ apd.administrableDoseForm.coding[0].display }}
Presentation unit: {{ apd.unitOfPresentation.coding[0].display }}
Contents (Manuf. Items):Dose form: {{ mid.manufacturedDoseForm.coding[0].display }}
Presentation unit: {{ mid.unitOfPresentation.coding[0].display }}
Manufactured Dose Form: {{ mid.manufacturedDoseForm.coding[0].display }}
Ingredients:Status: {{ miding.status | capitalize }}
Role: {{ miding.role.coding[0].display }}
Substance: {{ miding.substance.code.concept.coding[0].display }}
{% for strn in miding.substance.strength %} {% if strn.concentrationRatio %}Concentration strength: {{ strn.concentrationRatio.numerator.value }}{{ strn.concentrationRatio.numerator.unit }} / {{ strn.concentrationRatio.denominator.value }}{{ strn.concentrationRatio.denominator.unit }}
{% endif %} {% endfor %} {% for strn in miding.substance.strength %} {% if strn.presentationRatio %}Presentation strength: {{ strn.presentationRatio.numerator.value }} {{ strn.presentationRatio.numerator.unit }} / {{ strn.presentationRatio.denominator.value }} {{ strn.presentationRatio.denominator.unit }}
{% endif %} {% endfor %}Status: {{ apding.status | capitalize }}
Role: {{ apding.role.coding[0].display }}
Substance: {{ apding.substance.code.concept.coding[0].display }}
{% for strn in apding.substance.strength %} {% if strn.concentrationRatio %}Concentration strength: {{ strn.concentrationRatio.numerator.value }}{{ strn.concentrationRatio.numerator.unit }} / {{ strn.concentrationRatio.denominator.value }}{{ strn.concentrationRatio.denominator.unit }}
{% endif %} {% endfor %} {% for strn in apding.substance.strength %} {% if strn.presentationRatio %}Presentation strength: {{ strn.presentationRatio.numerator.value }} {{ strn.presentationRatio.numerator.unit }} / {{ strn.presentationRatio.denominator.value }} {{ strn.presentationRatio.denominator.unit }}
{% endif %} {% endfor %}Clinical Information
{% for cudingr in cudings %} {% assign cuding = cudingr.resource %} {% if cuding %} {% if cuding.indication %}Indication: {{ cuding.indication.diseaseSymptomProcedure.concept.coding[0].display }}
{% endif %} {% if cuding.contraindication %}Contraindication: {{ cuding.contraindication.diseaseSymptomProcedure.concept.coding[0].display }}
{% endif %} {% if cuding.interaction %}Interaction: {{ cuding.interaction.interactant[0].itemCodeableConcept.coding[0].display }}
{% endif %} {% if cuding.undesirableEffect %}Undesirable Effect: {{ cuding.undesirableEffect.symptomConditionEffect.concept.coding[0].display }}
{% endif %} {% if cuding.warning %}Warning: {{ cuding.warning.description }}
{% endif %} {% endif %} {% endfor %}