The drugs subfolder contains CSV import files for saving drugs in bulk. This is a possible example of its content:
drugs/
\_ drugs.csv
\_ ...
Here is an example of a drug header line:
Uuid | Void/Retire | Name | Description | Concept Drug | ... | _version:1 | _order:1000 |
---|
Let's review some important headers.
The value under this header links to the concept representing the drug. The concept can either be provided by
- Name, eg.
"Cetirizine"
; - Concept mapping, eg.
"WHO:R06AE07"
; - UUID, eg.
"2bcf7212-d218-4572-8893-25c4b5b71934"
.
REMARK: since the Drug
object requires an underlying concept to be referenced to as part of its definition, it is wise to ensure that the concept indeed exists in the first place. To help work around this possible issue the drugs domain is processed after the concepts domain.
The value under this header links to the concept representing the dosage form. The same way as for the concept drug its value can be provided as a concept name, concept mapping or UUID.
Eg. "10ml"
, "500mg"
... etc.
Here is an example of valid basic CSV line to defining a drug:
Uuid | Name | Concept Drug | Concept Dosage Form | Strength |
---|---|---|---|---|
Cetirizine 10mg Tablet | Cetirizine | Tablet | 10mg |
In this example both "Cetirizine"
and "Tablet"
are assumed to be names of existing concepts.
Please look at the test configuration folder for sample import files for all domains, see here.