diff --git a/oef/templates/oef/output.html b/oef/templates/oef/output.html
index b074ea14..33799c52 100644
--- a/oef/templates/oef/output.html
+++ b/oef/templates/oef/output.html
@@ -4,54 +4,63 @@
{% block content %}
-
-
- | Format name |
- Action |
- Field Seq |
- Field Label |
- Field Name |
- Field Status |
- Field Type |
- Field Codeset |
-
-{% for output in outputs %}
+
+
+ | Format name |
+ Action |
+ Field Seq |
+ Field Label |
+ Field Name |
+ Field Status |
+ Field Type |
+ Field Codeset |
+
+ {% for output in outputs %}
-
- | Radiology {{output.name}} |
- Order |
- {{output.field_seq}} |
+
+ | Radiology {{output.name}} |
+ Order |
+ {{output.field_seq}} |
- {{output.field_label}} |
- {{output.field_name}} |
- {{output.field_status}} |
- {{output.field_type}} |
- RADCODESET{{output.field_codeset}} |
+ {{output.field_label}} |
+ {{output.field_name}} |
+ {{output.field_status}} |
+ {{output.field_type}} |
+
+ {% if output.field_codeset %}
+ RADCODESET{{output.field_codeset}}
+ {% endif %}
+ |
-
-
-{% endfor %}
-
+
-Codesets
-
-
-
- | Codeset | Option |
- {% for codeset, options in codesets %}
-
-
- {% for option in options %}
- | RADCODESET{{codeset}} | {{option}} |
-
{% endfor %}
-
-
- {% endfor %}
+
+
+ Codesets
+
+
+
+ | Codeset | Option |
+ {% for codeset, options in codesets %}
+
+
+ {% for option in options %}
+
+ |
+ {% if codeset %}
+ RADCODESET{{codeset}}
+ {% endif %}
+ |
+ {{option}} |
+
+ {% endfor %}
+
+
+ {% endfor %}
+
+
+
+
-
-
-
-
{% endblock content %}
-
\ No newline at end of file