-->>
In the schematron:
<!-- Verify the document type code --> <assert test='cda:code[@code = "{{{LOINC}}}"]'> Error: The document type code of a Emergency Department Referral must be {{{LOINC}}} </assert>
...the LOINC code is missing.
<<--