Reference data

In some cases, it is enough to reference external data (like a web page) via a link. GNUmed provides for these in a variety of menus and configurable buttons.

In other cases, it is necessary to import reference data into GNUmed, to enable it to form part of the patient record (medication use, diagnostic and therapeutic codes, etc.).

While such importing can be done manually by using such tools as psql (together of course with the gm-dbo password), GNUmed release 1.0 brought support for scripted data packs.

Data packs

Data packs are GNUmed's way to make available a wide variety of reference data on an as-needed, on-demand basis. By such means,

Currently-available data packs can

Configuration file in which these packs are referenced:

General data pack preparation instructions:

Overview of reference data constraints and requirements

packaging Medication reference data

Medication reference data may include, from potentially multiple sources:

Branded drugs gets foreign-key referenced in two directions. Most commonly-used will be the link ref.lnk_substance2brand.pk by which means the consumption of a brand can be linked to a patient's record of substance_use. The second direction is that of vaccines, where the brand key is directly referenced in the table of vaccines clin.vaccine.

You can track the source of your praxis' brands data by use of ref.branded_drug columns fk_data_source, external_code and external_code_type.

Clinical records capture, in the case of each substance used by a patient, needs a minimum of the consumable_substance that is being used or, in the case of a branded drug, a link to the brand. The brand is a much more manageable way to capture a drug combination (whose parts cannot be taken independently of each other) and brands are a convenient way to capture drugs that are being supplied and taken in multiple strengths, for example, a triphasic oral contraceptive pill.

When reference data wants updating, it must further be taken into account that emptying the branded drug and consumable substances tables may be inadvisable even when their records not been used (hence bound by foreign keys), because these tables may also be holding: function to re-create those should any happen to get removed)

Having said that, if it should be desirable to clean out brands data, the above-described ref.branded_drug columns provide the means to keep clear the records of interest.

When aiming to remove brands, it may help to point out that

When adding brands, the job is not completed until:

altering Medication names

This can be done in-place, for example: