Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
Schema 

...

See several examples of the description medications+ingredients+innms on page "DB model (new)" in file: Medications model

Entities (tables)

Innms

This entity defines INNMs (International Nonpatended Name for Medications) information structure.

Name
Type
M/O
Description and constraints
iduuidM
namevarcharM
name_originalvarcharMunique
SCTIDvarchar, uniqueOReference: SCTID - SNOMED IDs
is_activeboolean M
inserted_attimestampM
inserted_byuuidM
updated_attimestampM
updated_byuuidM

Medications

...

Name
Type
M/O
Description and constraints
iduuidM
namevarcharM
is_activebooleanM
typevarchar (Dictionary: MEDICATION_TYPE)MINNM_DOSAGE or BRAND
formvarchar (Dictionary: MEDICATION_FORM)M
containerDosage: jsonbO
package_qtynumberO
package_min_qtynumberO
code_atcarrayO
manufacturerManufacturer: jsonbO
certificatevarcharO
certificate_expired_atdateO
inserted_attimestampM
inserted_byuuidM
updated_attimestampM
updated_byuuidM

Ingredients

...

Name
Type
M/O
Description and constraints
iduuidM
dosageDosage: jsonbM
is_primarybooleanM
parent_iduuidMWhich ingredients described
innm_child_iduuidOChild innm id (for parent with type = INNM_DOSAGE)
medication_child_iduuidO

Child medication id (for parent with type = BRAND)

inserted_attimestampM
inserted_byuuidM
updated_attimestampM
updated_byuuidM

Medical_programs

...

Name
Type
M/O
Description and constraints
iduuidM
is_activebooleanM
namevarcharM
inserted_attimestampM
inserted_byuuidM
updated_attimestampM
updated_byuuidM

same_mrrmnn_in_treatment_period

booleanMdefault = true

...

This entity defines cross medications & programs information structure.
Unique constraint `medication_id+medical_program_id`.

Name
Type
M/O
Description and constraints
iduuidM
medication_iduuidM
medical_program_iduuidM
is_activebooleanM

medication_request_allowed

booleanM
reimbursementjsonbM

Reimbursement : jsonb

inserted_attimestampM
inserted_byuuidM
updated_attimestampM
updated_byuuidM


Data structures

...


Name
Type
M/O
Description and constraints
numerator_unitvarchar (Dictionary: MEDICATION_UNIT)M


numerator_valuenumberM
denumerator_unitvarchar (Dictionary: MEDICATION_UNIT)M
denumerator_valuenumberM

Examples : 5mg/1tab, 25mg/1ml, 100UE/1ml, 0.1mg/1dose


Manufacturer

This entity defines information about manufacturer of medications.


Name
Type
M/O
Description and constraints
manufacturer varchar M


countryvarchar (Dictionary: COUNTRY)M


Reimbursement

This entity defines reimbursement structure.

Name
Type
M/O
Description and constraints
typestringM[fixed, external]
reimbursement_amountnumberOthe reimbursement amount for the medication package





...