Constraints on displaying

Hello!

Could you tell me, please, how can I constrain the archetype displaying (or only the one field of the archetype), according to the sex (age) of a patient?

Thank you,

Leysan

Hi Leysan,

Archetypes are for content definition, not to define rules on field displaying on GUI.
That should be part of a GUI directive, maybe inside a GUI Template. http://www.openehr.org/wiki/display/impl/GUI+directives+for+visualization+templates

I think she is referring to something like "if patient is male then
obstetrics field should be null", and those are created as invariants

Hi,

As I understand this is an issue related with semantics rather than presentation as it reads. Therefore I'd say you'd define the rule in Invariant/Rules section of the Archetype (I might be wrong with the naming though).

But as we go into real implementations some dodgy things start to come out; that you can't always separate semantics of information from presentation. For the latter GUI Directives, a new shadow model if you like, will solve the problem. However how to solve the issue with the semantics and link presentation to it consistently is a difficult question. That's why I still believe (sorry purists will hate me but), as they do in CDA - the way clinical information presentation has also a meaning in real practice, and we should be expressing it within Templates if not Archetypes.

Thanks for raising this issue, so let the discussions begin :wink:

Cheers,

-koray

My understanding as well. ADL 1.5 will make this possible e.g., with a rule in the archetype like: where 12345 is the term for female. - thomas