In general I think it is correct to have some mandatory elements in many archetypes. These are elements which defines the archetype. I.e. problem element in Problem/Diagnosis.
We have implemented several strategies to cope with this: · First of all the container must be initialized to make an element mandatory. o I.e. one of the element in the Problem/Diagnosis archetype must have a value to "force" the mandatory element to have a value in the archetype. o Of course the container (the entry archetype) must not be mandatory, but that's another topic · We have added some extra annotations to our Form Designer/ Form Renderer to relax the constraints when the container is empty. · We have the possibility to add "NULL_FLAVOUR" if the user are not able to give any reasonable data into the element. Example of Null Flavours - for those who might have forgotten. <group name="null flavours"> <concept id="253" rubric="unknown"/> <concept id="271" rubric="no information"/> <concept id="272" rubric="masked"/> <concept id="273" rubric="not applicable"/> </group> Vennlig hilsen Bjørn Næss Produktansvarlig DIPS ASA Mobil +47 93 43 29 10<tel:+47%2093%2043%2029%2010> From: openEHR-implementers [mailto:openehr-implementers-boun...@lists.openehr.org] On Behalf Of Bakke, Silje Ljosland Sent: fredag 10. november 2017 11:48 To: openehr-implementers@lists.openehr.org; For openEHR clinical discussions (openehr-clini...@lists.openehr.org) <openehr-clini...@lists.openehr.org> Subject: Mandatory elements in archetypes, and user interfaces Crossposting this between the clinical and implementers lists, since it belongs in both: In some archetypes, one or more elements are set as mandatory (typically occurrences 1..1 or 1..*), because the rest of the concept makes no sense without this particular element recorded. Examples are Problem/diagnosis name in Problem/diagnosis, and Temperature in Body temperature. This is not intended to mean that it's mandatory to enter data into the element in a UI, but that this particular element is mandatory in any persisted composition that uses the archetype. Recently however, we received a request to change the Head circumference element in the Head circumference archetype from 1..1 to 0..1 because the element being mandatory in the archetype automatically made the UI form builder mandate the entering of data into the UI field, and removing the archetype on the fly made more unnecessary clicks. In a fit of mental hiccups, I agreed with and performed this change, but have since realised this is wrong, because: · A mandatory archetype element is not the same as a mandatory UI field · A mandatory UI field is more like a field where you only allow persisting non null values, while a mandatory archetype element can be persisted with a null value without a problem. How are implementers actually handling this? Do you separate UI field mandation and archetype element mandation? Kind regards, Silje Ljosland Bakke Information Architect, RN Coordinator, National Editorial Board for Archetypes Nasjonal IKT HF, Norway Tel. +47 40203298 Web: http://arketyper.no<http://arketyper.no/> / Twitter: @arketyper_no<https://twitter.com/arketyper_no>
_______________________________________________ openEHR-implementers mailing list openEHR-implementers@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-implementers_lists.openehr.org