Content model for public health #
This page is for website creators and project managers who design the classes of a public health site. The classes
and datatypes named exist in Exponential (sevenx_classes,
kernel/classes/datatypes/, extensions named); the class editor is in
Content classes for websites.
Contents #
- Shipped classes that fit
- Class to add: Health topic
- Class to add: Alert
- Class to add: Clinic
- Translation settings
Shipped classes that fit #
| Class | Identifier | Use |
|---|
| Folder | folder | topic groups, alerts folder, professionals' area |
| Article | article | news, press releases |
| File | file | reports, posters, data files |
| Documentation page | documentation_page | protocols with chapters for professionals |
| Event | event | vaccination days, information sessions |
| Video | video | explainer videos (with captions from the source) |
| Feedback form | feedback_form | general contact (never patient data) |
Class to add: Health topic #
| Attribute | Identifier | Datatype | Why |
|---|
| Title | title | Text line (ezstring) | the name people use ("Flu", not only the clinical term) |
| In short | summary | Text block (eztext) | three key messages in plain language |
| Advice | body | XML block (ezxmltext) | headings: symptoms, what to do, when to get help |
| When to get help urgently | urgent | XML block | shown prominently |
| Sources | sources | XML block | evidence and references |
| Clinically reviewed on | reviewed_on | Date (ezdate) | shown on the page |
| Reviewed by (role) | reviewed_by | Text line | a role, not a name, if your policy prefers |
| Next review | review_date | Date | drives the overdue list |
| Topics | tags | Tags (eztags) | conditions, audiences, life stages |
| Audience | audience | Selection (ezselection) | public, professionals |
Class to add: Alert #
| Attribute | Identifier | Datatype | Why |
|---|
| Headline | title | Text line | short, plain, action first |
| Severity | severity | Selection | information, advisory, warning |
| What to do | action | Text block | one to three sentences |
| Details | body | XML block | |
| Area affected | area | Tags | a tag tree of areas |
| Issued | issued | Date and time (ezdatetime) | |
| Last updated | updated | Date and time | shown on the page |
| Ends | hide_date | Date and time | used by hide.php to take the alert down |
To end alerts automatically: in settings/override/content.ini.append.php, [HideSettings] RootNodeList[]=<alerts folder node> and HideDateAttributeList[alert]=hide_date, then clear the INI cache. The hide.php cronjob (global
part) hides alerts whose end has passed (Cronjobs). Check that the global part runs
often enough for your alerts; an alert that should end at 18:00 ends at the next run after that.
Class to add: Clinic #
| Attribute | Identifier | Datatype |
|---|
| Name | name | Text line |
| Services | services | Tags (vaccination, screening ...) |
| Address | address | Text block |
| Opening hours | opening_hours | XML block |
| How to book | booking | XML block and URL (ezurl) |
| Accessibility | access | XML block |
Translation settings #
| Attribute | Translatable | Why |
|---|
| Texts (title, summary, advice, action) | yes | every language has its own |
| Dates (issued, ends, review dates) | no | the same moment in every language |
| Severity, tags | no for the selection; tags have their own translations | one value for all languages |
Untick Translatable on date and selection attributes in the class editor before content is created
(Content languages).
Related pages #
Become an Exponential Partner
Partners share their information, provide funding, contribute back and
develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for
mid-2027: please become a partner today to speed up our growth rate and land new features faster.