Care Plan HTML and CSS usage

Care Plan HTML and CSS usage

Please note that all HTML submitted to the system must be contained within a clean div tag.

<div> Care plan code here </div>

All special characters must be submitted as ASCI HTML numbers, eg. &=&#38;

1. Allowed Tags Overview

Patients Know Best’s care plans accept HTML and CSS for rich multimedia displays of information to the patient. For security purposes, PKB cannot accept all tags in the medical record. This guide shows what care tags work and how they work within a care plan.

1.0 Global Tag Attributes

  • We allow the following attributes on all the following tags except base, head, html, meta, param, script, style, and title. Allowed attributes: id, style, title, class, lang

1.1 Structural Tags

  • <div>: General block container.

  • <span>: General inline container.

1.2 Text Formatting Tags

  • <p>, <h1>–<h6>, <b>, <i>, <u>, <strong>, <em>, <small>, <sub>, <sup>, <blockquote>, <code>, <pre>, <cite>, <samp>, <s>, <ins>, <del>, <caption>, <q>.

1.3 Input Tag

  • <input>:

    • Allowed attributes: accesskey, alt, autocomplete, checked, disabled, maxlength, name, placeholder, readonly, size, src, type, usemap, value

    • The type attribute can have the following values: hidden, text, radio, checkbox, submit, button, image, file, reset, range, number, date, time, textarea

1.4 List Tags

  • <ul>, <ol>, <li>.

1.5 Table Tags

  • <table>, <thead>, <tbody>, <tfoot>, <tr>, <th>, <td>, colgroup, col.

    • Allowed attributes: align, char, charoff, valign, height, width.

1.6 Dictionary Tags

  • <dd>, <dl>, <dt>.

1.7 Image Tag

  • <img>:

    • Allowed attributes: src, alt, width, height, name, border, align, hspace, vspace.

1.8 Anchor Tag

  • <a>:

    • Allowed attributes: href, target="_blank", onFocus, onBlur, nohref, rel, name, alt.

1.9 Iframe Tag

  • <iframe>:

    • Allowed attributes: src, allowfullscreen, frameborder, height, mozallowfullscreen, webkitallowfullscreen, width.

1.10 Label Tag

  • <label>:

    • Allowed attributes: for.

1.11 Button Tag

  • <button>:

    • Allowed attributes: name, value, disabled, accesskey.

    • The type attribute can have the following values: submit, reset, button.

1.12 Select Tag

  • <select>:

    • Allowed attributes: name, multiple, disabled, size.

    • The onchange attribute can have one specific value, which updates the colour of the select field based on the answer that was chosen: this.className = ‘form-control ' + this.options[this.selectedIndex].className;. Everything other value in the onchange is filtered out. This feature works with three colours at the moment, which need to be added to the option tags’ class inside the select, these are the following: light-yellow-faded, light-blue-faded, light-green-faded.