Data file
File: Medications&Innm2Load
Page: "Original-2017-08-26"
Upload steps & logic
Step 1- Load Innms
- Source page "innm"
- Mapping:
- innm_identifier = column `C`
- name = column `A`
- Check exist by `innm_identifier`
- If not exist - Insert new.
- status=INACTIVE (DICTIONARY: innm_status)
- is_active=TRUE
- If not exist - Insert new.
Step 2 - Load Routes
- Source page: "Dic: route"
- Mapping:
- name = column `A`
- Check exist by `value`
- If not exist - Insert new.
Step 3 - Add Countries
- Manually add new values into Dictionary: COUNTRY
- TBD !!!!
Step 3 - Load Medications
- Source page: "Original-2017-07-26"
- Delete * from medications (delete old data)
- Mapping:
- name = column `C`(3)
is_active = TRUE
- start_at = `2017/07/26`
- end_at = `3000/01/01`
- route = column `D`(4) + search in Dictionary `medication_route` by name
- container_dosage
- numerator_value = column `E`(5) + Mapping procedure Dosage
- package_qty = column `G`(6)
- package_min_qty = column `G`(6)
- code_ATX = column `H`(7)
- manufacturer_name_country =column `I`(8) + Parsing procedure Manufacturer & Country
- certificate = column `J`(9)
- expired_certificate_date = column `K`(10) + format `DD.MM.YYYY`
Mapping procedure Dosage
dsvds
Mapping procedure Container Dosage
dsfdsfd
Parsing procedure Manufacturer & Country
- Parsing string by format: `manufacturer_name`,`country_name`
- Examples:
- Юнікем Лабораторіз Лімітед , Індія;
- Асіно Фарма АГ , Швейцарія
- Mapping for structure Manufacturer_info
- name = `manufacturer_name`
- country = `country_name` search in Dictionary `Country` by name