{# The tests a wellness record ordered, grouped under the package they came from (tests picked by hand go under "Additional Tests"), each with where it stands. Shared by the record's detail page and the edit form so both show the same thing — and only THIS record's tests, never the rest of the case's. Expects: record (PatientWellnessRecord) #} {% set groups = record.diagnosticGroups %} {% if groups %} {% for group in groups %}
{{ group.package ? group.package.name : 'Additional Tests' }} {% if group.package and (group.package.targetGroup or group.package.frequency) %} ({{ [group.package.targetGroup, group.package.frequency]|filter(v => v)|join(' · ') }}) {% endif %}
{% endfor %} {% elseif record.hasDiagnosticsOrdered %}
Ordered before individual tests were tracked — re-save this record and pick its package/tests again to list them here.
{% else %}
No lab or radiology tests ordered.
{% endif %}