Using aql for data set in DV_CODED_TEXT

HI,

I am just wondering if it is possible to embed an AQL into the archetype so that the data set for a DV_CODED_TEXT is formed out of existing compositions.

For example, a hospital registration form that asks for a person’s allergies. Instead of an empty field, it can be populated from existing data through a query so that the front desk can just validate the data. Can this be modeled into the archetype? Or should it be an implementation detail?

regards

Hi Dileep!

Functionality like you describe should be part of the application implementation, not the archetype.

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 / Twitter: @arketyper_no

It could be an application detail.

Or in ADL 2 it can be a query function in the rules section, as defined in the specs. Not sure if you want this in basic archetypes, but you can certainly do this in adl 2 templates.

I'm not sure what you can do in GDL.

Regards,

Pieter Bos
Nedap Healthcare

Hi
We have implemented this in the form based on the operational template.
Then we put reuse information with AQL to query structures to be reused for different purposes.
Works perfectly well :slight_smile:

Regards
Bjørn Næss
Product owner Arena EHR
DIPS ASA

Mobil +47 93 43 29 10

Hi Dileep,

You are mixing modeling/design with implementation/runtime. Archetypes can define terminology bindings at design time. Those should be resolved at runtime.

You can just create other files with AQLs, and another file that maps archetype paths to the AQL files. Your app will be able to load the archetype, load the AQL and execute AQL to resolve the term subset for each DV_CODED_TEXT in your archetype, and use that on a GUI.

Of course files are just examples, implementation can be at a database level.

Hope that helps :slight_smile: