Fingerprinting GNUmed database ...

                Name: gnumed_v20
         Schema hash: baed1901ed4c2f272b56c8cb2c6d88e8
                Size: 62 MB
            Patients: 15
            Contacts: 8
            Episodes: 5
              Issues: 2
             Results: 5
        Vaccinations: 1
           Documents: 3
             Objects: 4
       Organizations: 8
Organizational units: 10
        Version (PG): 9.4.0
       Encoding (PG): UTF8
     LC_COLLATE (PG): de_DE.UTF-8
       LC_CTYPE (PG): de_DE.UTF-8

TABLE:ref.tag_image
PK:ref.tag_image.pk::integer
COL:ref.tag_image.image::bytea
COL:ref.tag_image.description::text
COL:ref.tag_image.filename::text
COL:ref.tag_image.row_version::int4
COL:ref.tag_image.modified_when::timestamptz
COL:ref.tag_image.pk::int4
COL:ref.tag_image.pk_audit::int4
COL:ref.tag_image.modified_by::name
TABLE:ref.icd9
PK:ref.icd9.pk::integer
COL:ref.icd9.pk_coding_system::int4
COL:ref.icd9.fk_data_source::int4
COL:ref.icd9.comment::text
COL:ref.icd9.term::text
COL:ref.icd9.code::text
COL:ref.icd9.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.org_category
PK:dem.org_category.pk::integer
COL:dem.org_category.description::text
COL:dem.org_category.pk::int4
TABLE:clin.test_type
PK:clin.test_type.pk::integer
COL:clin.test_type.name::text
COL:clin.test_type.comment::text
COL:clin.test_type.fk_meta_test_type::int4
COL:clin.test_type.fk_test_org::int4
COL:clin.test_type.row_version::int4
COL:clin.test_type.modified_when::timestamptz
COL:clin.test_type.abbrev::text
COL:clin.test_type.pk::int4
COL:clin.test_type.loinc::text
COL:clin.test_type.pk_audit::int4
COL:clin.test_type.modified_by::name
COL:clin.test_type.reference_unit::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_test_org)_REFERENCES_clin.test_org(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_meta_test_type)_REFERENCES_clin.meta_test_type(pk)::active=true
TABLE:clin.lnk_substance2episode
PK:clin.lnk_substance2episode.pk::integer
COL:clin.lnk_substance2episode.fk_substance::int4
COL:clin.lnk_substance2episode.row_version::int4
COL:clin.lnk_substance2episode.modified_when::timestamptz
COL:clin.lnk_substance2episode.fk_episode::int4
COL:clin.lnk_substance2episode.pk::int4
COL:clin.lnk_substance2episode.pk_audit::int4
COL:clin.lnk_substance2episode.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_substance)_REFERENCES_clin.substance_intake(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_data
PK:cfg.cfg_data.pk::integer
COL:cfg.cfg_data.fk_item::int4
COL:cfg.cfg_data.pk::int4
COL:cfg.cfg_data.value::bytea
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_cfg.cfg_item(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:cfg.report_query
PK:cfg.report_query.pk::integer
COL:cfg.report_query.label::text
COL:cfg.report_query.cmd::text
COL:cfg.report_query.row_version::int4
COL:cfg.report_query.modified_when::timestamptz
COL:cfg.report_query.pk::int4
COL:cfg.report_query.pk_audit::int4
COL:cfg.report_query.modified_by::name
TABLE:clin.export_item
PK:clin.export_item.pk::integer
COL:clin.export_item.description::text
COL:clin.export_item.filename::text
COL:clin.export_item.created_by::name
COL:clin.export_item.designation::text
COL:clin.export_item.data::bytea
COL:clin.export_item.fk_identity::int4
COL:clin.export_item.fk_doc_obj::int4
COL:clin.export_item.pk::int4
COL:clin.export_item.created_when::timestamptz
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_clin.patient(fk_identity)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_doc_obj)_REFERENCES_blobs.doc_obj(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:i18n.curr_lang
PK:i18n.curr_lang.pk::integer
COL:i18n.curr_lang.db_user::name
COL:i18n.curr_lang.lang::text
COL:i18n.curr_lang.pk::int4
TABLE:clin.test_panel
PK:clin.test_panel.pk::integer
COL:clin.test_panel.comment::text
COL:clin.test_panel.description::text
COL:clin.test_panel.row_version::int4
COL:clin.test_panel.modified_when::timestamptz
COL:clin.test_panel.pk::int4
COL:clin.test_panel.fk_test_types::_int4
COL:clin.test_panel.pk_audit::int4
COL:clin.test_panel.modified_by::name
TABLE:clin.vaccination_schedule
PK:clin.vaccination_schedule.pk::integer
COL:clin.vaccination_schedule.name::text
COL:clin.vaccination_schedule.comment::text
COL:clin.vaccination_schedule.row_version::int4
COL:clin.vaccination_schedule.modified_when::timestamptz
COL:clin.vaccination_schedule.pk::int4
COL:clin.vaccination_schedule.pk_audit::int4
COL:clin.vaccination_schedule.modified_by::name
TABLE:clin.vaccine
PK:clin.vaccine.pk::integer
COL:clin.vaccine.id_route::int4
COL:clin.vaccine.comment::text
COL:clin.vaccine.fk_brand::int4
COL:clin.vaccine.is_live::bool
COL:clin.vaccine.max_age::interval
COL:clin.vaccine.row_version::int4
COL:clin.vaccine.modified_when::timestamptz
COL:clin.vaccine.pk::int4
COL:clin.vaccine.min_age::interval
COL:clin.vaccine.pk_audit::int4
COL:clin.vaccine.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(id_route)_REFERENCES_clin.vacc_route(id)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_brand)_REFERENCES_ref.branded_drug(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.identity_tag
PK:dem.identity_tag.pk::integer
COL:dem.identity_tag.comment::text
COL:dem.identity_tag.fk_tag::int4
COL:dem.identity_tag.row_version::int4
COL:dem.identity_tag.fk_identity::int4
COL:dem.identity_tag.modified_when::timestamptz
COL:dem.identity_tag.pk::int4
COL:dem.identity_tag.pk_audit::int4
COL:dem.identity_tag.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_tag)_REFERENCES_ref.tag_image(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.config
PK:cfg.config.id::integer
COL:cfg.config.profile::bpchar
COL:cfg.config.ddb::int4
COL:cfg.config.pwd_hash::text
COL:cfg.config.id::int4
COL:cfg.config.hash_algo::text
COL:cfg.config.crypt_algo::text
COL:cfg.config.db::int4
COL:cfg.config.username::bpchar
COL:cfg.config.crypt_pwd::text
TABLE:clin.encounter_type
PK:clin.encounter_type.pk::integer
COL:clin.encounter_type.description::text
COL:clin.encounter_type.pk::int4
TABLE:dem.occupation
PK:dem.occupation.id::integer
COL:dem.occupation.name::text
COL:dem.occupation.id::int4
COL:dem.occupation.row_version::int4
COL:dem.occupation.modified_when::timestamptz
COL:dem.occupation.pk_audit::int4
COL:dem.occupation.modified_by::name
TABLE:clin.reviewed_test_results
PK:clin.reviewed_test_results.pk::integer
COL:clin.reviewed_test_results.comment::text
COL:clin.reviewed_test_results.clinically_relevant::bool
COL:clin.reviewed_test_results.fk_reviewed_row::int4
COL:clin.reviewed_test_results.is_technically_abnormal::bool
COL:clin.reviewed_test_results.row_version::int4
COL:clin.reviewed_test_results.modified_when::timestamptz
COL:clin.reviewed_test_results.pk::int4
COL:clin.reviewed_test_results.fk_reviewer::int4
COL:clin.reviewed_test_results.pk_audit::int4
COL:clin.reviewed_test_results.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_reviewer)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_reviewed_row)_REFERENCES_clin.test_result(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.gender_label
PK:dem.gender_label.pk::integer
COL:dem.gender_label.label::text
COL:dem.gender_label.comment::text
COL:dem.gender_label.tag::text
COL:dem.gender_label.sort_weight::int4
COL:dem.gender_label.row_version::int4
COL:dem.gender_label.modified_when::timestamptz
COL:dem.gender_label.pk::int4
COL:dem.gender_label.pk_audit::int4
COL:dem.gender_label.modified_by::name
TABLE:clin.lnk_vaccination_course2schedule
PK:clin.lnk_vaccination_course2schedule.pk::integer
COL:clin.lnk_vaccination_course2schedule.fk_course::int4
COL:clin.lnk_vaccination_course2schedule.fk_schedule::int4
COL:clin.lnk_vaccination_course2schedule.row_version::int4
COL:clin.lnk_vaccination_course2schedule.modified_when::timestamptz
COL:clin.lnk_vaccination_course2schedule.pk::int4
COL:clin.lnk_vaccination_course2schedule.pk_audit::int4
COL:clin.lnk_vaccination_course2schedule.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_course)_REFERENCES_clin.vaccination_course(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_schedule)_REFERENCES_clin.vaccination_schedule(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.incoming_data_unmatched
PK:clin.incoming_data_unmatched.pk::integer
COL:clin.incoming_data_unmatched.lastnames::text
COL:clin.incoming_data_unmatched.external_data_id::text
COL:clin.incoming_data_unmatched.fk_provider_disambiguated::int4
COL:clin.incoming_data_unmatched.comment::text
COL:clin.incoming_data_unmatched.type::text
COL:clin.incoming_data_unmatched.requestor::text
COL:clin.incoming_data_unmatched.gender::text
COL:clin.incoming_data_unmatched.firstnames::text
COL:clin.incoming_data_unmatched.data::bytea
COL:clin.incoming_data_unmatched.row_version::int4
COL:clin.incoming_data_unmatched.modified_when::timestamptz
COL:clin.incoming_data_unmatched.other_info::text
COL:clin.incoming_data_unmatched.pk::int4
COL:clin.incoming_data_unmatched.pk_audit::int4
COL:clin.incoming_data_unmatched.fk_patient_candidates::_int4
COL:clin.incoming_data_unmatched.modified_by::name
COL:clin.incoming_data_unmatched.request_id::text
COL:clin.incoming_data_unmatched.postcode::text
COL:clin.incoming_data_unmatched.dob::date
COL:clin.incoming_data_unmatched.fk_identity_disambiguated::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_provider_disambiguated)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity_disambiguated)_REFERENCES_clin.patient(fk_identity)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:blobs.lnk_doc2hospital_stay
PK:blobs.lnk_doc2hospital_stay.pk::integer
COL:blobs.lnk_doc2hospital_stay.fk_stay::int4
COL:blobs.lnk_doc2hospital_stay.fk_document::int4
COL:blobs.lnk_doc2hospital_stay.row_version::int4
COL:blobs.lnk_doc2hospital_stay.modified_when::timestamptz
COL:blobs.lnk_doc2hospital_stay.pk::int4
COL:blobs.lnk_doc2hospital_stay.pk_audit::int4
COL:blobs.lnk_doc2hospital_stay.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_stay)_REFERENCES_clin.hospital_stay(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_document)_REFERENCES_blobs.doc_med(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:blobs.reviewed_doc_objs
PK:blobs.reviewed_doc_objs.pk::integer
COL:blobs.reviewed_doc_objs.comment::text
COL:blobs.reviewed_doc_objs.clinically_relevant::bool
COL:blobs.reviewed_doc_objs.fk_reviewed_row::int4
COL:blobs.reviewed_doc_objs.is_technically_abnormal::bool
COL:blobs.reviewed_doc_objs.row_version::int4
COL:blobs.reviewed_doc_objs.modified_when::timestamptz
COL:blobs.reviewed_doc_objs.pk::int4
COL:blobs.reviewed_doc_objs.fk_reviewer::int4
COL:blobs.reviewed_doc_objs.pk_audit::int4
COL:blobs.reviewed_doc_objs.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_reviewed_row)_REFERENCES_blobs.doc_obj(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.vaccine_batches
PK:clin.vaccine_batches.pk::integer
COL:clin.vaccine_batches.fk_vaccine::int4
COL:clin.vaccine_batches.batch_no::text
COL:clin.vaccine_batches.row_version::int4
COL:clin.vaccine_batches.modified_when::timestamptz
COL:clin.vaccine_batches.pk::int4
COL:clin.vaccine_batches.pk_audit::int4
COL:clin.vaccine_batches.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_vaccine)_REFERENCES_clin.vaccine(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.encounter
PK:clin.encounter.pk::integer
COL:clin.encounter.fk_location::int4
COL:clin.encounter.reason_for_encounter::text
COL:clin.encounter.source_time_zone::interval
COL:clin.encounter.fk_patient::int4
COL:clin.encounter.last_affirmed::timestamptz
COL:clin.encounter.row_version::int4
COL:clin.encounter.modified_when::timestamptz
COL:clin.encounter.pk::int4
COL:clin.encounter.fk_type::int4
COL:clin.encounter.pk_audit::int4
COL:clin.encounter.assessment_of_encounter::text
COL:clin.encounter.modified_by::name
COL:clin.encounter.started::timestamptz
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_clin.encounter_type(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_patient)_REFERENCES_clin.patient(fk_identity)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_location)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.message_inbox
PK:dem.message_inbox.pk::integer
COL:dem.message_inbox.fk_staff::int4
COL:dem.message_inbox.comment::text
COL:dem.message_inbox.due_date::date
COL:dem.message_inbox.importance::int2
COL:dem.message_inbox.fk_patient::int4
COL:dem.message_inbox.row_version::int4
COL:dem.message_inbox.modified_when::timestamptz
COL:dem.message_inbox.data::text
COL:dem.message_inbox.expiry_date::date
COL:dem.message_inbox.pk::int4
COL:dem.message_inbox.pk_audit::int4
COL:dem.message_inbox.fk_inbox_item_type::int4
COL:dem.message_inbox.modified_by::name
COL:dem.message_inbox.ufk_context::_int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_patient)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_staff)_REFERENCES_dem.staff(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_inbox_item_type)_REFERENCES_dem.inbox_item_type(pk)::active=true
TABLE:dem.enum_comm_types
PK:dem.enum_comm_types.pk::integer
COL:dem.enum_comm_types.description::text
COL:dem.enum_comm_types.pk::int4
TABLE:clin.vaccination_course
PK:clin.vaccination_course.pk::integer
COL:clin.vaccination_course.is_active::bool
COL:clin.vaccination_course.comment::text
COL:clin.vaccination_course.fk_indication::int4
COL:clin.vaccination_course.row_version::int4
COL:clin.vaccination_course.modified_when::timestamptz
COL:clin.vaccination_course.pk::int4
COL:clin.vaccination_course.fk_recommended_by::int4
COL:clin.vaccination_course.pk_audit::int4
COL:clin.vaccination_course.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_indication)_REFERENCES_clin.vacc_indication(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_string
PK:cfg.cfg_string.pk::integer
COL:cfg.cfg_string.fk_item::int4
COL:cfg.cfg_string.value::text
COL:cfg.cfg_string.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_cfg.cfg_item(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.allergy
PK:clin.allergy.pk::integer
COL:clin.allergy.fk_encounter::int4
COL:clin.allergy.generics::text
COL:clin.allergy.substance_code::text
COL:clin.allergy.definite::bool
COL:clin.allergy.narrative::text
COL:clin.allergy.atc_code::text
COL:clin.allergy.allergene::text
COL:clin.allergy.row_version::int4
COL:clin.allergy.clin_when::timestamptz
COL:clin.allergy.modified_when::timestamptz
COL:clin.allergy.pk_item::int4
COL:clin.allergy.soap_cat::text
COL:clin.allergy.fk_episode::int4
COL:clin.allergy.generic_specific::bool
COL:clin.allergy.pk::int4
COL:clin.allergy.fk_type::int4
COL:clin.allergy.substance::text
COL:clin.allergy.pk_audit::int4
COL:clin.allergy.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_clin._enum_allergy_type(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.identity
PK:dem.identity.pk::integer
COL:dem.identity.cob::bpchar
COL:dem.identity.title::text
COL:dem.identity.dob_is_estimated::bool
COL:dem.identity.comment::text
COL:dem.identity.fk_marital_status::int4
COL:dem.identity.deceased::timestamptz
COL:dem.identity.fk_primary_provider::int4
COL:dem.identity.gender::text
COL:dem.identity.deleted::bool
COL:dem.identity.emergency_contact::text
COL:dem.identity.fk_emergency_contact::int4
COL:dem.identity.row_version::int4
COL:dem.identity.modified_when::timestamptz
COL:dem.identity.tob::time
COL:dem.identity.pk::int4
COL:dem.identity.pk_audit::int4
COL:dem.identity.modified_by::name
COL:dem.identity.pupic::bpchar
COL:dem.identity.dob::timestamptz
CONSTRAINT:type=f:FOREIGN_KEY_(fk_emergency_contact)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_marital_status)_REFERENCES_dem.marital_status(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_primary_provider)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(gender)_REFERENCES_dem.gender_label(tag)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.vaccination
PK:clin.vaccination.pk::integer
COL:clin.vaccination.fk_provider::int4
COL:clin.vaccination.fk_encounter::int4
COL:clin.vaccination.reaction::text
COL:clin.vaccination.fk_vaccine::int4
COL:clin.vaccination.narrative::text
COL:clin.vaccination.batch_no::text
COL:clin.vaccination.row_version::int4
COL:clin.vaccination.clin_when::timestamptz
COL:clin.vaccination.modified_when::timestamptz
COL:clin.vaccination.pk_item::int4
COL:clin.vaccination.soap_cat::text
COL:clin.vaccination.fk_episode::int4
COL:clin.vaccination.site::text
COL:clin.vaccination.pk::int4
COL:clin.vaccination.pk_audit::int4
COL:clin.vaccination.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_vaccine)_REFERENCES_clin.vaccine(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_provider)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.icpc
PK:ref.icpc.pk::integer
COL:ref.icpc.exclusions::_text
COL:ref.icpc.pk_coding_system::int4
COL:ref.icpc.fk_data_source::int4
COL:ref.icpc.comment::text
COL:ref.icpc.code_extension::text
COL:ref.icpc.term::text
COL:ref.icpc.inclusions::text
COL:ref.icpc.code::text
COL:ref.icpc.criteria::text
COL:ref.icpc.see_also::_text
COL:ref.icpc.short_description::text
COL:ref.icpc.fk_chapter::bpchar
COL:ref.icpc.pk::int4
COL:ref.icpc.fk_component::int2
COL:ref.icpc.icd10::_text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_component)_REFERENCES_ref.icpc_component(component)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_chapter)_REFERENCES_ref.icpc_chapter(chapter)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.test_org
PK:clin.test_org.pk::integer
COL:clin.test_org.contact::text
COL:clin.test_org.comment::text
COL:clin.test_org.fk_med_contact::int4
COL:clin.test_org.row_version::int4
COL:clin.test_org.modified_when::timestamptz
COL:clin.test_org.pk::int4
COL:clin.test_org.pk_audit::int4
COL:clin.test_org.fk_org_unit::int4
COL:clin.test_org.modified_by::name
COL:clin.test_org.fk_adm_contact::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_adm_contact)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_med_contact)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.procedure
PK:clin.procedure.pk::integer
COL:clin.procedure.fk_encounter::int4
COL:clin.procedure.fk_hospital_stay::int4
COL:clin.procedure.narrative::text
COL:clin.procedure.row_version::int4
COL:clin.procedure.clin_when::timestamptz
COL:clin.procedure.modified_when::timestamptz
COL:clin.procedure.is_ongoing::bool
COL:clin.procedure.pk_item::int4
COL:clin.procedure.clin_end::timestamptz
COL:clin.procedure.soap_cat::text
COL:clin.procedure.fk_episode::int4
COL:clin.procedure.pk::int4
COL:clin.procedure.pk_audit::int4
COL:clin.procedure.fk_org_unit::int4
COL:clin.procedure.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_hospital_stay)_REFERENCES_clin.hospital_stay(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.lnk_org_unit2ext_id
PK:dem.lnk_org_unit2ext_id.pk::integer
COL:dem.lnk_org_unit2ext_id.comment::text
COL:dem.lnk_org_unit2ext_id.row_version::int4
COL:dem.lnk_org_unit2ext_id.modified_when::timestamptz
COL:dem.lnk_org_unit2ext_id.pk::int4
COL:dem.lnk_org_unit2ext_id.fk_type::int4
COL:dem.lnk_org_unit2ext_id.pk_audit::int4
COL:dem.lnk_org_unit2ext_id.fk_org_unit::int4
COL:dem.lnk_org_unit2ext_id.modified_by::name
COL:dem.lnk_org_unit2ext_id.external_id::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_dem.enum_ext_id_types(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.name_gender_map
PK:dem.name_gender_map.id::integer
COL:dem.name_gender_map.name::text
COL:dem.name_gender_map.id::int4
COL:dem.name_gender_map.gender::bpchar
TABLE:ref.branded_drug
PK:ref.branded_drug.pk::integer
COL:ref.branded_drug.fk_data_source::int4
COL:ref.branded_drug.description::text
COL:ref.branded_drug.is_fake::bool
COL:ref.branded_drug.preparation::text
COL:ref.branded_drug.external_code_type::text
COL:ref.branded_drug.atc_code::text
COL:ref.branded_drug.row_version::int4
COL:ref.branded_drug.modified_when::timestamptz
COL:ref.branded_drug.pk::int4
COL:ref.branded_drug.pk_audit::int4
COL:ref.branded_drug.external_code::text
COL:ref.branded_drug.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.meta_test_type
PK:clin.meta_test_type.pk::integer
COL:clin.meta_test_type.name::text
COL:clin.meta_test_type.comment::text
COL:clin.meta_test_type.abbrev::text
COL:clin.meta_test_type.pk::int4
COL:clin.meta_test_type.loinc::text
TABLE:clin.external_care
PK:clin.external_care.pk::integer
COL:clin.external_care.fk_encounter::int4
COL:clin.external_care.fk_health_issue::int4
COL:clin.external_care.provider::text
COL:clin.external_care.comment::text
COL:clin.external_care.row_version::int4
COL:clin.external_care.modified_when::timestamptz
COL:clin.external_care.issue::text
COL:clin.external_care.pk::int4
COL:clin.external_care.pk_audit::int4
COL:clin.external_care.fk_org_unit::int4
COL:clin.external_care.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_health_issue)_REFERENCES_clin.health_issue(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_RESTRICT_ON_DELETE_RESTRICT::active=true
TABLE:clin.form_data
PK:clin.form_data.pk::integer
COL:clin.form_data.fk_instance::int4
COL:clin.form_data.fk_form_field::int4
COL:clin.form_data.value::text
COL:clin.form_data.row_version::int4
COL:clin.form_data.modified_when::timestamptz
COL:clin.form_data.pk::int4
COL:clin.form_data.pk_audit::int4
COL:clin.form_data.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_form_field)_REFERENCES_form_fields(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_instance)_REFERENCES_clin.form_instances(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.icpc_component
PK:ref.icpc_component.pk::integer
COL:ref.icpc_component.description::text
COL:ref.icpc_component.component::int2
COL:ref.icpc_component.typical_soap_cat::_text
COL:ref.icpc_component.pk::int4
TABLE:clin.review_root
PK:clin.review_root.pk::integer
COL:clin.review_root.comment::text
COL:clin.review_root.clinically_relevant::bool
COL:clin.review_root.fk_reviewed_row::int4
COL:clin.review_root.is_technically_abnormal::bool
COL:clin.review_root.row_version::int4
COL:clin.review_root.modified_when::timestamptz
COL:clin.review_root.pk::int4
COL:clin.review_root.fk_reviewer::int4
COL:clin.review_root.pk_audit::int4
COL:clin.review_root.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_reviewer)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.lnk_type2item
PK:clin.lnk_type2item.pk::integer
COL:clin.lnk_type2item.fk_item::int4
COL:clin.lnk_type2item.row_version::int4
COL:clin.lnk_type2item.modified_when::timestamptz
COL:clin.lnk_type2item.pk::int4
COL:clin.lnk_type2item.fk_type::int4
COL:clin.lnk_type2item.pk_audit::int4
COL:clin.lnk_type2item.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_clin.clin_item_type(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.family_history
PK:clin.family_history.pk::integer
COL:clin.family_history.fk_encounter::int4
COL:clin.family_history.age_of_death::interval
COL:clin.family_history.dob_relative::timestamptz
COL:clin.family_history.age_noted::text
COL:clin.family_history.comment::text
COL:clin.family_history.name_relative::text
COL:clin.family_history.contributed_to_death::bool
COL:clin.family_history.narrative::text
COL:clin.family_history.row_version::int4
COL:clin.family_history.clin_when::timestamptz
COL:clin.family_history.modified_when::timestamptz
COL:clin.family_history.pk_item::int4
COL:clin.family_history.soap_cat::text
COL:clin.family_history.fk_episode::int4
COL:clin.family_history.pk::int4
COL:clin.family_history.fk_relation_type::int4
COL:clin.family_history.pk_audit::int4
COL:clin.family_history.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_relation_type)_REFERENCES_clin.fhx_relation_type(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:blobs.doc_obj
PK:blobs.doc_obj.pk::integer
COL:blobs.doc_obj.comment::text
COL:blobs.doc_obj.seq_idx::int4
COL:blobs.doc_obj.filename::text
COL:blobs.doc_obj.data::bytea
COL:blobs.doc_obj.pk::int4
COL:blobs.doc_obj.fk_doc::int4
COL:blobs.doc_obj.fk_intended_reviewer::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_doc)_REFERENCES_blobs.doc_med(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_intended_reviewer)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.icpc_chapter
PK:ref.icpc_chapter.pk::integer
COL:ref.icpc_chapter.description::text
COL:ref.icpc_chapter.pk::int4
COL:ref.icpc_chapter.chapter::bpchar
TABLE:dem.staff
PK:dem.staff.pk::integer
COL:dem.staff.db_user::name
COL:dem.staff.is_active::bool
COL:dem.staff.comment::text
COL:dem.staff.row_version::int4
COL:dem.staff.fk_identity::int4
COL:dem.staff.modified_when::timestamptz
COL:dem.staff.short_alias::text
COL:dem.staff.pk::int4
COL:dem.staff.pk_audit::int4
COL:dem.staff.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.lnk_identity2comm
PK:dem.lnk_identity2comm.pk::integer
COL:dem.lnk_identity2comm.comment::text
COL:dem.lnk_identity2comm.url::text
COL:dem.lnk_identity2comm.fk_identity::int4
COL:dem.lnk_identity2comm.fk_address::int4
COL:dem.lnk_identity2comm.pk::int4
COL:dem.lnk_identity2comm.fk_type::int4
COL:dem.lnk_identity2comm.is_confidential::bool
CONSTRAINT:type=f:FOREIGN_KEY_(fk_address)_REFERENCES_dem.address(id)_ON_UPDATE_SET_NULL_ON_DELETE_SET_NULL::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_dem.enum_comm_types(pk)::active=true
TABLE:clin.clin_diag
PK:clin.clin_diag.pk::integer
COL:clin.clin_diag.is_active::bool
COL:clin.clin_diag.laterality::bpchar
COL:clin.clin_diag.fk_narrative::int4
COL:clin.clin_diag.clinically_relevant::bool
COL:clin.clin_diag.is_definite::bool
COL:clin.clin_diag.row_version::int4
COL:clin.clin_diag.modified_when::timestamptz
COL:clin.clin_diag.is_chronic::bool
COL:clin.clin_diag.pk::int4
COL:clin.clin_diag.pk_audit::int4
COL:clin.clin_diag.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_narrative)_REFERENCES_clin.clin_narrative(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.address
PK:dem.address.id::integer
COL:dem.address.number::text
COL:dem.address.subunit::text
COL:dem.address.id::int4
COL:dem.address.lat_lon::point
COL:dem.address.aux_street::text
COL:dem.address.id_street::int4
COL:dem.address.addendum::text
COL:dem.address.row_version::int4
COL:dem.address.modified_when::timestamptz
COL:dem.address.pk_audit::int4
COL:dem.address.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(id_street)_REFERENCES_dem.street(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.address_type
PK:dem.address_type.id::integer
COL:dem.address_type.name::text
COL:dem.address_type.id::int4
TABLE:clin.lnk_code2fhx
PK:clin.lnk_code2fhx.pk::integer
COL:clin.lnk_code2fhx.fk_generic_code::int4
COL:clin.lnk_code2fhx.fk_item::int4
COL:clin.lnk_code2fhx.pk_lnk_code2item::int4
COL:clin.lnk_code2fhx.code_modifier::text
COL:clin.lnk_code2fhx.row_version::int4
COL:clin.lnk_code2fhx.modified_when::timestamptz
COL:clin.lnk_code2fhx.pk::int4
COL:clin.lnk_code2fhx.pk_audit::int4
COL:clin.lnk_code2fhx.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.family_history(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:i18n.keys
PK:i18n.keys.pk::integer
COL:i18n.keys.orig::text
COL:i18n.keys.pk::int4
TABLE:clin.soap_cat_ranks
PK:clin.soap_cat_ranks.pk::integer
COL:clin.soap_cat_ranks.pk::int4
COL:clin.soap_cat_ranks.rank::int4
COL:clin.soap_cat_ranks.soap_cat::bpchar
TABLE:ref.papersizes
PK:ref.papersizes.pk::integer
COL:ref.papersizes.name::text
COL:ref.papersizes.size::point
COL:ref.papersizes.pk::int4
TABLE:blobs.doc_med
PK:blobs.doc_med.pk::integer
COL:blobs.doc_med.fk_encounter::int4
COL:blobs.doc_med.comment::text
COL:blobs.doc_med.ext_ref::text
COL:blobs.doc_med.row_version::int4
COL:blobs.doc_med.clin_when::timestamptz
COL:blobs.doc_med.modified_when::timestamptz
COL:blobs.doc_med.fk_episode::int4
COL:blobs.doc_med.pk::int4
COL:blobs.doc_med.fk_type::int4
COL:blobs.doc_med.pk_audit::int4
COL:blobs.doc_med.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_blobs.doc_type(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.health_issue
PK:clin.health_issue.pk::integer
COL:clin.health_issue.is_cause_of_death::bool
COL:clin.health_issue.is_active::bool
COL:clin.health_issue.fk_encounter::int4
COL:clin.health_issue.age_noted::interval
COL:clin.health_issue.description::text
COL:clin.health_issue.laterality::varchar
COL:clin.health_issue.grouping::text
COL:clin.health_issue.summary::text
COL:clin.health_issue.clinically_relevant::bool
COL:clin.health_issue.row_version::int4
COL:clin.health_issue.modified_when::timestamptz
COL:clin.health_issue.pk::int4
COL:clin.health_issue.diagnostic_certainty_classification::text
COL:clin.health_issue.pk_audit::int4
COL:clin.health_issue.is_confidential::bool
COL:clin.health_issue.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.inbox_item_type
PK:dem.inbox_item_type.pk::integer
COL:dem.inbox_item_type.description::text
COL:dem.inbox_item_type.fk_inbox_item_category::int4
COL:dem.inbox_item_type.row_version::int4
COL:dem.inbox_item_type.modified_when::timestamptz
COL:dem.inbox_item_type.pk::int4
COL:dem.inbox_item_type.is_user::bool
COL:dem.inbox_item_type.pk_audit::int4
COL:dem.inbox_item_type.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_inbox_item_category)_REFERENCES_dem.inbox_item_category(pk)::active=true
TABLE:clin.allergy_state
PK:clin.allergy_state.pk::integer
COL:clin.allergy_state.has_allergy::int4
COL:clin.allergy_state.fk_encounter::int4
COL:clin.allergy_state.comment::text
COL:clin.allergy_state.last_confirmed::timestamptz
COL:clin.allergy_state.row_version::int4
COL:clin.allergy_state.modified_when::timestamptz
COL:clin.allergy_state.pk::int4
COL:clin.allergy_state.pk_audit::int4
COL:clin.allergy_state.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)::active=true
TABLE:ref.consumable_substance
PK:ref.consumable_substance.pk::integer
COL:ref.consumable_substance.amount::numeric
COL:ref.consumable_substance.description::text
COL:ref.consumable_substance.atc_code::text
COL:ref.consumable_substance.row_version::int4
COL:ref.consumable_substance.modified_when::timestamptz
COL:ref.consumable_substance.pk::int4
COL:ref.consumable_substance.unit::text
COL:ref.consumable_substance.pk_audit::int4
COL:ref.consumable_substance.modified_by::name
TABLE:clin.incoming_data_unmatchable
PK:clin.incoming_data_unmatchable.pk::integer
COL:clin.incoming_data_unmatchable.lastnames::text
COL:clin.incoming_data_unmatchable.external_data_id::text
COL:clin.incoming_data_unmatchable.type::text
COL:clin.incoming_data_unmatchable.requestor::text
COL:clin.incoming_data_unmatchable.gender::text
COL:clin.incoming_data_unmatchable.firstnames::text
COL:clin.incoming_data_unmatchable.data::bytea
COL:clin.incoming_data_unmatchable.row_version::int4
COL:clin.incoming_data_unmatchable.modified_when::timestamptz
COL:clin.incoming_data_unmatchable.other_info::text
COL:clin.incoming_data_unmatchable.pk::int4
COL:clin.incoming_data_unmatchable.pk_audit::int4
COL:clin.incoming_data_unmatchable.fk_patient_candidates::_int4
COL:clin.incoming_data_unmatchable.modified_by::name
COL:clin.incoming_data_unmatchable.request_id::text
COL:clin.incoming_data_unmatchable.postcode::text
COL:clin.incoming_data_unmatchable.dob::date
COL:clin.incoming_data_unmatchable.fk_identity_disambiguated::int4
TABLE:dem.marital_status
PK:dem.marital_status.pk::integer
COL:dem.marital_status.name::text
COL:dem.marital_status.pk::int4
TABLE:clin.vaccination_course_constraint
PK:clin.vaccination_course_constraint.pk::integer
COL:clin.vaccination_course_constraint.description::text
COL:clin.vaccination_course_constraint.row_version::int4
COL:clin.vaccination_course_constraint.modified_when::timestamptz
COL:clin.vaccination_course_constraint.pk::int4
COL:clin.vaccination_course_constraint.pk_audit::int4
COL:clin.vaccination_course_constraint.modified_by::name
TABLE:clin.lnk_code2h_issue
PK:clin.lnk_code2h_issue.pk::integer
COL:clin.lnk_code2h_issue.fk_generic_code::int4
COL:clin.lnk_code2h_issue.fk_item::int4
COL:clin.lnk_code2h_issue.pk_lnk_code2item::int4
COL:clin.lnk_code2h_issue.code_modifier::text
COL:clin.lnk_code2h_issue.row_version::int4
COL:clin.lnk_code2h_issue.modified_when::timestamptz
COL:clin.lnk_code2h_issue.pk::int4
COL:clin.lnk_code2h_issue.pk_audit::int4
COL:clin.lnk_code2h_issue.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.health_issue(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.form_instances
PK:clin.form_instances.pk::integer
COL:clin.form_instances.fk_encounter::int4
COL:clin.form_instances.fk_form_def::int4
COL:clin.form_instances.narrative::text
COL:clin.form_instances.form_name::text
COL:clin.form_instances.row_version::int4
COL:clin.form_instances.clin_when::timestamptz
COL:clin.form_instances.modified_when::timestamptz
COL:clin.form_instances.pk_item::int4
COL:clin.form_instances.soap_cat::text
COL:clin.form_instances.fk_episode::int4
COL:clin.form_instances.pk::int4
COL:clin.form_instances.pk_audit::int4
COL:clin.form_instances.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_form_def)_REFERENCES_ref.paperwork_templates(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.atc_staging
COL:ref.atc_staging.name::text
COL:ref.atc_staging.adro::text
COL:ref.atc_staging.comment::text
COL:ref.atc_staging.atc::text
COL:ref.atc_staging.ddd::text
COL:ref.atc_staging.unit::text
TABLE:clin.lnk_pat2vaccination_course
PK:clin.lnk_pat2vaccination_course.pk::integer
COL:clin.lnk_pat2vaccination_course.fk_course::int4
COL:clin.lnk_pat2vaccination_course.fk_patient::int4
COL:clin.lnk_pat2vaccination_course.row_version::int4
COL:clin.lnk_pat2vaccination_course.modified_when::timestamptz
COL:clin.lnk_pat2vaccination_course.pk::int4
COL:clin.lnk_pat2vaccination_course.pk_audit::int4
COL:clin.lnk_pat2vaccination_course.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_course)_REFERENCES_clin.vaccination_course(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_patient)_REFERENCES_clin.patient(fk_identity)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.keyword_expansion
PK:ref.keyword_expansion.pk::integer
COL:ref.keyword_expansion.fk_staff::int4
COL:ref.keyword_expansion.binary_data::bytea
COL:ref.keyword_expansion.encrypted::bool
COL:ref.keyword_expansion.keyword::text
COL:ref.keyword_expansion.textual_data::text
COL:ref.keyword_expansion.owner::text
COL:ref.keyword_expansion.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_staff)_REFERENCES_dem.staff(pk)::active=true
TABLE:clin.lnk_code2procedure
PK:clin.lnk_code2procedure.pk::integer
COL:clin.lnk_code2procedure.fk_generic_code::int4
COL:clin.lnk_code2procedure.fk_item::int4
COL:clin.lnk_code2procedure.pk_lnk_code2item::int4
COL:clin.lnk_code2procedure.code_modifier::text
COL:clin.lnk_code2procedure.row_version::int4
COL:clin.lnk_code2procedure.modified_when::timestamptz
COL:clin.lnk_code2procedure.pk::int4
COL:clin.lnk_code2procedure.pk_audit::int4
COL:clin.lnk_code2procedure.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.procedure(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_code2tst_pnl
PK:clin.lnk_code2tst_pnl.pk::integer
COL:clin.lnk_code2tst_pnl.fk_generic_code::int4
COL:clin.lnk_code2tst_pnl.fk_item::int4
COL:clin.lnk_code2tst_pnl.pk_lnk_code2item::int4
COL:clin.lnk_code2tst_pnl.code_modifier::text
COL:clin.lnk_code2tst_pnl.row_version::int4
COL:clin.lnk_code2tst_pnl.modified_when::timestamptz
COL:clin.lnk_code2tst_pnl.pk::int4
COL:clin.lnk_code2tst_pnl.pk_audit::int4
COL:clin.lnk_code2tst_pnl.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.test_panel(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.street
PK:dem.street.id::integer
COL:dem.street.name::text
COL:dem.street.id::int4
COL:dem.street.lat_lon::point
COL:dem.street.suburb::text
COL:dem.street.id_urb::int4
COL:dem.street.row_version::int4
COL:dem.street.modified_when::timestamptz
COL:dem.street.pk_audit::int4
COL:dem.street.modified_by::name
COL:dem.street.postcode::text
CONSTRAINT:type=f:FOREIGN_KEY_(id_urb)_REFERENCES_dem.urb(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.auto_hint
PK:ref.auto_hint.pk::integer
COL:ref.auto_hint.hint::text
COL:ref.auto_hint.title::text
COL:ref.auto_hint.lang::text
COL:ref.auto_hint.source::text
COL:ref.auto_hint.is_active::bool
COL:ref.auto_hint.query::text
COL:ref.auto_hint.row_version::int4
COL:ref.auto_hint.url::text
COL:ref.auto_hint.modified_when::timestamptz
COL:ref.auto_hint.pk::int4
COL:ref.auto_hint.pk_audit::int4
COL:ref.auto_hint.modified_by::name
TABLE:clin.clin_aux_note
PK:clin.clin_aux_note.pk::integer
COL:clin.clin_aux_note.fk_encounter::int4
COL:clin.clin_aux_note.narrative::text
COL:clin.clin_aux_note.row_version::int4
COL:clin.clin_aux_note.clin_when::timestamptz
COL:clin.clin_aux_note.modified_when::timestamptz
COL:clin.clin_aux_note.pk_item::int4
COL:clin.clin_aux_note.soap_cat::text
COL:clin.clin_aux_note.fk_episode::int4
COL:clin.clin_aux_note.pk::int4
COL:clin.clin_aux_note.pk_audit::int4
COL:clin.clin_aux_note.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_str_array
PK:cfg.cfg_str_array.pk::integer
COL:cfg.cfg_str_array.fk_item::int4
COL:cfg.cfg_str_array.pk::int4
COL:cfg.cfg_str_array.value::_text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_cfg.cfg_item(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.code_thesaurus_root
PK:ref.code_thesaurus_root.pk_thesaurus::integer
COL:ref.code_thesaurus_root.synonym::text
COL:ref.code_thesaurus_root.fk_code::int4
COL:ref.code_thesaurus_root.pk_thesaurus::int4
TABLE:dem.names
PK:dem.names.id::integer
COL:dem.names.lastnames::text
COL:dem.names.active::bool
COL:dem.names.comment::text
COL:dem.names.id::int4
COL:dem.names.firstnames::text
COL:dem.names.preferred::text
COL:dem.names.id_identity::int4
CONSTRAINT:type=f:FOREIGN_KEY_(id_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.org
PK:dem.org.pk::integer
COL:dem.org.fk_category::int4
COL:dem.org.fk_data_source::int4
COL:dem.org.description::text
COL:dem.org.row_version::int4
COL:dem.org.modified_when::timestamptz
COL:dem.org.pk::int4
COL:dem.org.pk_audit::int4
COL:dem.org.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_category)_REFERENCES_dem.org_category(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.lnk_org_unit2comm
PK:dem.lnk_org_unit2comm.pk::integer
COL:dem.lnk_org_unit2comm.comment::text
COL:dem.lnk_org_unit2comm.row_version::int4
COL:dem.lnk_org_unit2comm.url::text
COL:dem.lnk_org_unit2comm.modified_when::timestamptz
COL:dem.lnk_org_unit2comm.pk::int4
COL:dem.lnk_org_unit2comm.fk_type::int4
COL:dem.lnk_org_unit2comm.pk_audit::int4
COL:dem.lnk_org_unit2comm.fk_org_unit::int4
COL:dem.lnk_org_unit2comm.is_confidential::bool
COL:dem.lnk_org_unit2comm.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_dem.enum_comm_types(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:bill.bill_item
PK:bill.bill_item.pk::integer
COL:bill.bill_item.currency::text
COL:bill.bill_item.fk_provider::int4
COL:bill.bill_item.fk_encounter::int4
COL:bill.bill_item.amount_multiplier::numeric
COL:bill.bill_item.description::text
COL:bill.bill_item.net_amount_per_unit::numeric
COL:bill.bill_item.fk_bill::int4
COL:bill.bill_item.row_version::int4
COL:bill.bill_item.fk_billable::int4
COL:bill.bill_item.modified_when::timestamptz
COL:bill.bill_item.unit_count::int4
COL:bill.bill_item.pk::int4
COL:bill.bill_item.date_to_bill::date
COL:bill.bill_item.pk_audit::int4
COL:bill.bill_item.modified_by::name
COL:bill.bill_item.status::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_billable)_REFERENCES_ref.billable(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_bill)_REFERENCES_bill.bill(pk)_ON_UPDATE_CASCADE_ON_DELETE_SET_NULL_DEFERRABLE_INITIALLY_DEFERRED::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_provider)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_type_enum
COL:cfg.cfg_type_enum.name::text
TABLE:dem.lnk_identity2ext_id
PK:dem.lnk_identity2ext_id.id::integer
COL:dem.lnk_identity2ext_id.fk_origin::int4
COL:dem.lnk_identity2ext_id.comment::text
COL:dem.lnk_identity2ext_id.id::int4
COL:dem.lnk_identity2ext_id.row_version::int4
COL:dem.lnk_identity2ext_id.modified_when::timestamptz
COL:dem.lnk_identity2ext_id.pk_audit::int4
COL:dem.lnk_identity2ext_id.modified_by::name
COL:dem.lnk_identity2ext_id.id_identity::int4
COL:dem.lnk_identity2ext_id.external_id::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_origin)_REFERENCES_dem.enum_ext_id_types(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(id_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_code2item_root
PK:clin.lnk_code2item_root.pk_lnk_code2item::integer
COL:clin.lnk_code2item_root.fk_generic_code::int4
COL:clin.lnk_code2item_root.fk_item::int4
COL:clin.lnk_code2item_root.pk_lnk_code2item::int4
COL:clin.lnk_code2item_root.code_modifier::text
COL:clin.lnk_code2item_root.row_version::int4
COL:clin.lnk_code2item_root.modified_when::timestamptz
COL:clin.lnk_code2item_root.pk_audit::int4
COL:clin.lnk_code2item_root.modified_by::name
TABLE:clin.waiting_list
PK:clin.waiting_list.pk::integer
COL:clin.waiting_list.area::text
COL:clin.waiting_list.comment::text
COL:clin.waiting_list.registered::timestamptz
COL:clin.waiting_list.list_position::int4
COL:clin.waiting_list.fk_patient::int4
COL:clin.waiting_list.row_version::int4
COL:clin.waiting_list.modified_when::timestamptz
COL:clin.waiting_list.pk::int4
COL:clin.waiting_list.urgency::int4
COL:clin.waiting_list.pk_audit::int4
COL:clin.waiting_list.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_patient)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.episode
PK:clin.episode.pk::integer
COL:clin.episode.fk_encounter::int4
COL:clin.episode.fk_health_issue::int4
COL:clin.episode.description::text
COL:clin.episode.summary::text
COL:clin.episode.row_version::int4
COL:clin.episode.modified_when::timestamptz
COL:clin.episode.pk::int4
COL:clin.episode.diagnostic_certainty_classification::text
COL:clin.episode.pk_audit::int4
COL:clin.episode.modified_by::name
COL:clin.episode.is_open::bool
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_health_issue)_REFERENCES_clin.health_issue(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.lab_request
PK:clin.lab_request.pk::integer
COL:clin.lab_request.request_status::text
COL:clin.lab_request.lab_request_id::text
COL:clin.lab_request.fk_encounter::int4
COL:clin.lab_request.is_pending::bool
COL:clin.lab_request.ordered_service::text
COL:clin.lab_request.narrative::text
COL:clin.lab_request.fk_test_org::int4
COL:clin.lab_request.results_reported_when::timestamptz
COL:clin.lab_request.fk_requestor::int4
COL:clin.lab_request.row_version::int4
COL:clin.lab_request.clin_when::timestamptz
COL:clin.lab_request.modified_when::timestamptz
COL:clin.lab_request.pk_item::int4
COL:clin.lab_request.soap_cat::text
COL:clin.lab_request.fk_episode::int4
COL:clin.lab_request.lab_rxd_when::timestamptz
COL:clin.lab_request.pk::int4
COL:clin.lab_request.note_test_org::text
COL:clin.lab_request.pk_audit::int4
COL:clin.lab_request.modified_by::name
COL:clin.lab_request.request_id::text
COL:clin.lab_request.diagnostic_service_section::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_requestor)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_test_org)_REFERENCES_clin.test_org(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.fhx_relation_type
PK:clin.fhx_relation_type.pk::integer
COL:clin.fhx_relation_type.is_genetic::bool
COL:clin.fhx_relation_type.description::text
COL:clin.fhx_relation_type.row_version::int4
COL:clin.fhx_relation_type.modified_when::timestamptz
COL:clin.fhx_relation_type.pk::int4
COL:clin.fhx_relation_type.pk_audit::int4
COL:clin.fhx_relation_type.modified_by::name
TABLE:cfg.cfg_item
PK:cfg.cfg_item.pk::integer
COL:cfg.cfg_item.fk_template::int4
COL:cfg.cfg_item.workplace::text
COL:cfg.cfg_item.owner::name
COL:cfg.cfg_item.pk::int4
COL:cfg.cfg_item.cookie::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_template)_REFERENCES_cfg.cfg_template(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_code2episode
PK:clin.lnk_code2episode.pk::integer
COL:clin.lnk_code2episode.fk_generic_code::int4
COL:clin.lnk_code2episode.fk_item::int4
COL:clin.lnk_code2episode.pk_lnk_code2item::int4
COL:clin.lnk_code2episode.code_modifier::text
COL:clin.lnk_code2episode.row_version::int4
COL:clin.lnk_code2episode.modified_when::timestamptz
COL:clin.lnk_code2episode.pk::int4
COL:clin.lnk_code2episode.pk_audit::int4
COL:clin.lnk_code2episode.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.form_types
PK:ref.form_types.pk::integer
COL:ref.form_types.name::text
COL:ref.form_types.pk::int4
TABLE:clin.vaccination_definition
PK:clin.vaccination_definition.id::integer
COL:clin.vaccination_definition.fk_course::int4
COL:clin.vaccination_definition.seq_no::int4
COL:clin.vaccination_definition.min_interval::interval
COL:clin.vaccination_definition.comment::text
COL:clin.vaccination_definition.id::int4
COL:clin.vaccination_definition.max_age_due::interval
COL:clin.vaccination_definition.row_version::int4
COL:clin.vaccination_definition.modified_when::timestamptz
COL:clin.vaccination_definition.min_age_due::interval
COL:clin.vaccination_definition.pk_audit::int4
COL:clin.vaccination_definition.modified_by::name
COL:clin.vaccination_definition.is_booster::bool
CONSTRAINT:type=f:FOREIGN_KEY_(fk_course)_REFERENCES_clin.vaccination_course(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.inbox_item_category
PK:dem.inbox_item_category.pk::integer
COL:dem.inbox_item_category.description::text
COL:dem.inbox_item_category.row_version::int4
COL:dem.inbox_item_category.modified_when::timestamptz
COL:dem.inbox_item_category.pk::int4
COL:dem.inbox_item_category.is_user::bool
COL:dem.inbox_item_category.pk_audit::int4
COL:dem.inbox_item_category.modified_by::name
TABLE:dem.lnk_job2person
PK:dem.lnk_job2person.pk::integer
COL:dem.lnk_job2person.row_version::int4
COL:dem.lnk_job2person.fk_occupation::int4
COL:dem.lnk_job2person.fk_identity::int4
COL:dem.lnk_job2person.modified_when::timestamptz
COL:dem.lnk_job2person.pk::int4
COL:dem.lnk_job2person.activities::text
COL:dem.lnk_job2person.pk_audit::int4
COL:dem.lnk_job2person.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_occupation)_REFERENCES_dem.occupation(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_code2aoe
PK:clin.lnk_code2aoe.pk::integer
COL:clin.lnk_code2aoe.fk_generic_code::int4
COL:clin.lnk_code2aoe.fk_item::int4
COL:clin.lnk_code2aoe.pk_lnk_code2item::int4
COL:clin.lnk_code2aoe.code_modifier::text
COL:clin.lnk_code2aoe.row_version::int4
COL:clin.lnk_code2aoe.modified_when::timestamptz
COL:clin.lnk_code2aoe.pk::int4
COL:clin.lnk_code2aoe.pk_audit::int4
COL:clin.lnk_code2aoe.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:dem.country
PK:dem.country.id::integer
COL:dem.country.name::text
COL:dem.country.deprecated::date
COL:dem.country.id::int4
COL:dem.country.code::bpchar
TABLE:clin.lnk_code2narrative
PK:clin.lnk_code2narrative.pk::integer
COL:clin.lnk_code2narrative.fk_generic_code::int4
COL:clin.lnk_code2narrative.fk_item::int4
COL:clin.lnk_code2narrative.pk_lnk_code2item::int4
COL:clin.lnk_code2narrative.code_modifier::text
COL:clin.lnk_code2narrative.row_version::int4
COL:clin.lnk_code2narrative.modified_when::timestamptz
COL:clin.lnk_code2narrative.pk::int4
COL:clin.lnk_code2narrative.pk_audit::int4
COL:clin.lnk_code2narrative.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.clin_narrative(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_vaccine2inds
PK:clin.lnk_vaccine2inds.id::integer
COL:clin.lnk_vaccine2inds.id::int4
COL:clin.lnk_vaccine2inds.fk_vaccine::int4
COL:clin.lnk_vaccine2inds.fk_indication::int4
COL:clin.lnk_vaccine2inds.row_version::int4
COL:clin.lnk_vaccine2inds.modified_when::timestamptz
COL:clin.lnk_vaccine2inds.pk_audit::int4
COL:clin.lnk_vaccine2inds.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_vaccine)_REFERENCES_clin.vaccine(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_indication)_REFERENCES_clin.vacc_indication(id)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:bill.lnk_enc_type2billable
PK:bill.lnk_enc_type2billable.pk::integer
COL:bill.lnk_enc_type2billable.fk_encounter_type::int4
COL:bill.lnk_enc_type2billable.fk_billable::int4
COL:bill.lnk_enc_type2billable.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_billable)_REFERENCES_ref.billable(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter_type)_REFERENCES_clin.encounter_type(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.lnk_code2rfe
PK:clin.lnk_code2rfe.pk::integer
COL:clin.lnk_code2rfe.fk_generic_code::int4
COL:clin.lnk_code2rfe.fk_item::int4
COL:clin.lnk_code2rfe.pk_lnk_code2item::int4
COL:clin.lnk_code2rfe.code_modifier::text
COL:clin.lnk_code2rfe.row_version::int4
COL:clin.lnk_code2rfe.modified_when::timestamptz
COL:clin.lnk_code2rfe.pk::int4
COL:clin.lnk_code2rfe.pk_audit::int4
COL:clin.lnk_code2rfe.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.icd10
PK:ref.icd10.pk::integer
COL:ref.icd10.pk_coding_system::int4
COL:ref.icd10.fk_data_source::int4
COL:ref.icd10.comment::text
COL:ref.icd10.term::text
COL:ref.icd10.code::text
COL:ref.icd10.aux_code::text
COL:ref.icd10.star_code::text
COL:ref.icd10.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.hospital_stay
PK:clin.hospital_stay.pk::integer
COL:clin.hospital_stay.fk_encounter::int4
COL:clin.hospital_stay.discharge::timestamptz
COL:clin.hospital_stay.narrative::text
COL:clin.hospital_stay.row_version::int4
COL:clin.hospital_stay.clin_when::timestamptz
COL:clin.hospital_stay.modified_when::timestamptz
COL:clin.hospital_stay.pk_item::int4
COL:clin.hospital_stay.soap_cat::text
COL:clin.hospital_stay.fk_episode::int4
COL:clin.hospital_stay.pk::int4
COL:clin.hospital_stay.pk_audit::int4
COL:clin.hospital_stay.fk_org_unit::int4
COL:clin.hospital_stay.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org_unit)_REFERENCES_dem.org_unit(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.atc
PK:ref.atc.pk::integer
COL:ref.atc.pk_coding_system::int4
COL:ref.atc.fk_data_source::int4
COL:ref.atc.comment::text
COL:ref.atc.term::text
COL:ref.atc.code::text
COL:ref.atc.administration_route::text
COL:ref.atc.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin._enum_allergy_type
PK:clin._enum_allergy_type.pk::integer
COL:clin._enum_allergy_type.value::text
COL:clin._enum_allergy_type.pk::int4
TABLE:clin.clin_narrative
PK:clin.clin_narrative.pk::integer
COL:clin.clin_narrative.fk_encounter::int4
COL:clin.clin_narrative.narrative::text
COL:clin.clin_narrative.row_version::int4
COL:clin.clin_narrative.clin_when::timestamptz
COL:clin.clin_narrative.modified_when::timestamptz
COL:clin.clin_narrative.pk_item::int4
COL:clin.clin_narrative.soap_cat::text
COL:clin.clin_narrative.fk_episode::int4
COL:clin.clin_narrative.pk::int4
COL:clin.clin_narrative.pk_audit::int4
COL:clin.clin_narrative.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.icpc_thesaurus
PK:ref.icpc_thesaurus.pk::integer
COL:ref.icpc_thesaurus.synonym::text
COL:ref.icpc_thesaurus.fk_code::int4
COL:ref.icpc_thesaurus.pk::int4
COL:ref.icpc_thesaurus.pk_thesaurus::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_code)_REFERENCES_ref.icpc(pk_coding_system)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_numeric
PK:cfg.cfg_numeric.pk::integer
COL:cfg.cfg_numeric.fk_item::int4
COL:cfg.cfg_numeric.value::numeric
COL:cfg.cfg_numeric.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_item)_REFERENCES_cfg.cfg_item(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.document_type
PK:ref.document_type.pk::integer
COL:ref.document_type.description::text
COL:ref.document_type.scope::text
COL:ref.document_type.pk::int4
TABLE:dem.lnk_person_org_address
PK:dem.lnk_person_org_address.id::integer
COL:dem.lnk_person_org_address.id::int4
COL:dem.lnk_person_org_address.id_type::int4
COL:dem.lnk_person_org_address.address_source::text
COL:dem.lnk_person_org_address.id_address::int4
COL:dem.lnk_person_org_address.id_org::int4
COL:dem.lnk_person_org_address.id_identity::int4
CONSTRAINT:type=f:FOREIGN_KEY_(id_identity)_REFERENCES_dem.identity(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(id_address)_REFERENCES_dem.address(id)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(id_type)_REFERENCES_dem.address_type(id)::active=true
TABLE:blobs.doc_desc
PK:blobs.doc_desc.pk::integer
COL:blobs.doc_desc.row_version::int4
COL:blobs.doc_desc.modified_when::timestamptz
COL:blobs.doc_desc.pk::int4
COL:blobs.doc_desc.fk_doc::int4
COL:blobs.doc_desc.pk_audit::int4
COL:blobs.doc_desc.modified_by::name
COL:blobs.doc_desc.text::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_doc)_REFERENCES_blobs.doc_med(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:i18n.translations
PK:i18n.translations.pk::integer
COL:i18n.translations.lang::text
COL:i18n.translations.orig::text
COL:i18n.translations.trans::text
COL:i18n.translations.pk::int4
TABLE:clin.clin_root_item
PK:clin.clin_root_item.pk_item::integer
COL:clin.clin_root_item.fk_encounter::int4
COL:clin.clin_root_item.narrative::text
COL:clin.clin_root_item.row_version::int4
COL:clin.clin_root_item.clin_when::timestamptz
COL:clin.clin_root_item.modified_when::timestamptz
COL:clin.clin_root_item.pk_item::int4
COL:clin.clin_root_item.soap_cat::text
COL:clin.clin_root_item.fk_episode::int4
COL:clin.clin_root_item.pk_audit::int4
COL:clin.clin_root_item.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.relation_types
PK:dem.relation_types.id::integer
COL:dem.relation_types.id::int4
COL:dem.relation_types.description::text
COL:dem.relation_types.biological::bool
COL:dem.relation_types.inverse::int4
COL:dem.relation_types.row_version::int4
COL:dem.relation_types.modified_when::timestamptz
COL:dem.relation_types.biol_verified::bool
COL:dem.relation_types.pk_audit::int4
COL:dem.relation_types.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(inverse)_REFERENCES_dem.relation_types(id)::active=true
TABLE:clin.lnk_tst2norm
PK:clin.lnk_tst2norm.id::integer
COL:clin.lnk_tst2norm.id_test::int4
COL:clin.lnk_tst2norm.id::int4
COL:clin.lnk_tst2norm.row_version::int4
COL:clin.lnk_tst2norm.modified_when::timestamptz
COL:clin.lnk_tst2norm.pk_audit::int4
COL:clin.lnk_tst2norm.modified_by::name
COL:clin.lnk_tst2norm.id_norm::int4
CONSTRAINT:type=f:FOREIGN_KEY_(id_test)_REFERENCES_clin.test_type(pk)::active=true
TABLE:dem.lnk_person2relative
PK:dem.lnk_person2relative.id::integer
COL:dem.lnk_person2relative.started::date
COL:dem.lnk_person2relative.id::int4
COL:dem.lnk_person2relative.id_relation_type::int4
COL:dem.lnk_person2relative.id_relative::int4
COL:dem.lnk_person2relative.row_version::int4
COL:dem.lnk_person2relative.modified_when::timestamptz
COL:dem.lnk_person2relative.ended::date
COL:dem.lnk_person2relative.pk_audit::int4
COL:dem.lnk_person2relative.modified_by::name
COL:dem.lnk_person2relative.id_identity::int4
CONSTRAINT:type=f:FOREIGN_KEY_(id_identity)_REFERENCES_dem.identity(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(id_relative)_REFERENCES_dem.identity(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(id_relation_type)_REFERENCES_dem.relation_types(id)::active=true
TABLE:ref.other_code
PK:ref.other_code.pk::integer
COL:ref.other_code.pk_coding_system::int4
COL:ref.other_code.fk_data_source::int4
COL:ref.other_code.comment::text
COL:ref.other_code.term::text
COL:ref.other_code.code::text
COL:ref.other_code.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.data_source
PK:ref.data_source.pk::integer
COL:ref.data_source.lang::text
COL:ref.data_source.source::text
COL:ref.data_source.description::text
COL:ref.data_source.name_long::text
COL:ref.data_source.name_short::text
COL:ref.data_source.row_version::int4
COL:ref.data_source.modified_when::timestamptz
COL:ref.data_source.version::text
COL:ref.data_source.pk::int4
COL:ref.data_source.pk_audit::int4
COL:ref.data_source.modified_by::name
TABLE:ref.paperwork_templates
PK:ref.paperwork_templates.pk::integer
COL:ref.paperwork_templates.gnumed_revision::float8
COL:ref.paperwork_templates.filename::text
COL:ref.paperwork_templates.instance_type::text
COL:ref.paperwork_templates.fk_template_type::int4
COL:ref.paperwork_templates.in_use::bool
COL:ref.paperwork_templates.name_long::text
COL:ref.paperwork_templates.data::bytea
COL:ref.paperwork_templates.name_short::text
COL:ref.paperwork_templates.row_version::int4
COL:ref.paperwork_templates.modified_when::timestamptz
COL:ref.paperwork_templates.edit_after_substitution::bool
COL:ref.paperwork_templates.pk::int4
COL:ref.paperwork_templates.external_version::text
COL:ref.paperwork_templates.pk_audit::int4
COL:ref.paperwork_templates.engine::text
COL:ref.paperwork_templates.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_template_type)_REFERENCES_ref.form_types(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.enum_ext_id_types
PK:dem.enum_ext_id_types.pk::integer
COL:dem.enum_ext_id_types.name::text
COL:dem.enum_ext_id_types.issuer::text
COL:dem.enum_ext_id_types.pk::int4
TABLE:clin.patient
PK:clin.patient.pk::integer
COL:clin.patient.row_version::int4
COL:clin.patient.edc::date
COL:clin.patient.fk_identity::int4
COL:clin.patient.modified_when::timestamptz
COL:clin.patient.pk::int4
COL:clin.patient.pk_audit::int4
COL:clin.patient.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.test_result
PK:clin.test_result.pk::integer
COL:clin.test_result.source_data::text
COL:clin.test_result.val_grouping::text
COL:clin.test_result.fk_encounter::int4
COL:clin.test_result.abnormality_indicator::text
COL:clin.test_result.val_unit::text
COL:clin.test_result.norm_ref_group::text
COL:clin.test_result.val_num::numeric
COL:clin.test_result.val_target_range::text
COL:clin.test_result.narrative::text
COL:clin.test_result.fk_request::int4
COL:clin.test_result.val_target_min::numeric
COL:clin.test_result.val_target_max::numeric
COL:clin.test_result.val_normal_max::numeric
COL:clin.test_result.row_version::int4
COL:clin.test_result.clin_when::timestamptz
COL:clin.test_result.val_alpha::text
COL:clin.test_result.modified_when::timestamptz
COL:clin.test_result.pk_item::int4
COL:clin.test_result.val_normal_min::numeric
COL:clin.test_result.soap_cat::text
COL:clin.test_result.fk_episode::int4
COL:clin.test_result.material_detail::text
COL:clin.test_result.pk::int4
COL:clin.test_result.note_test_org::text
COL:clin.test_result.fk_type::int4
COL:clin.test_result.val_normal_range::text
COL:clin.test_result.pk_audit::int4
COL:clin.test_result.modified_by::name
COL:clin.test_result.material::text
COL:clin.test_result.status::text
COL:clin.test_result.fk_intended_reviewer::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_type)_REFERENCES_clin.test_type(pk)::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_request)_REFERENCES_clin.lab_request(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_intended_reviewer)_REFERENCES_dem.staff(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.ops
PK:ref.ops.pk::integer
COL:ref.ops.pk_coding_system::int4
COL:ref.ops.requires_laterality::bool
COL:ref.ops.fk_data_source::int4
COL:ref.ops.comment::text
COL:ref.ops.term::text
COL:ref.ops.code::text
COL:ref.ops.pk::int4
COL:ref.ops.second_code::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.substance_intake
PK:clin.substance_intake.pk::integer
COL:clin.substance_intake.fk_encounter::int4
COL:clin.substance_intake.duration::interval
COL:clin.substance_intake.discontinue_reason::text
COL:clin.substance_intake.is_long_term::bool
COL:clin.substance_intake.aim::text
COL:clin.substance_intake.fk_substance::int4
COL:clin.substance_intake.preparation::text
COL:clin.substance_intake.discontinued::timestamptz
COL:clin.substance_intake.narrative::text
COL:clin.substance_intake.row_version::int4
COL:clin.substance_intake.clin_when::timestamptz
COL:clin.substance_intake.modified_when::timestamptz
COL:clin.substance_intake.pk_item::int4
COL:clin.substance_intake.soap_cat::text
COL:clin.substance_intake.fk_episode::int4
COL:clin.substance_intake.pk::int4
COL:clin.substance_intake.pk_audit::int4
COL:clin.substance_intake.intake_is_approved_of::bool
COL:clin.substance_intake.modified_by::name
COL:clin.substance_intake.fk_drug_component::int4
COL:clin.substance_intake.schedule::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_drug_component)_REFERENCES_ref.lnk_substance2brand(pk)_ON_UPDATE_RESTRICT_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_substance)_REFERENCES_ref.consumable_substance(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:clin.clin_item_type
PK:clin.clin_item_type.pk::integer
COL:clin.clin_item_type.type::text
COL:clin.clin_item_type.code::text
COL:clin.clin_item_type.row_version::int4
COL:clin.clin_item_type.modified_when::timestamptz
COL:clin.clin_item_type.pk::int4
COL:clin.clin_item_type.pk_audit::int4
COL:clin.clin_item_type.modified_by::name
TABLE:clin.vacc_indication
PK:clin.vacc_indication.id::integer
COL:clin.vacc_indication.id::int4
COL:clin.vacc_indication.description::text
COL:clin.vacc_indication.atcs_combi_indication::_text
COL:clin.vacc_indication.atcs_single_indication::_text
COL:clin.vacc_indication.row_version::int4
COL:clin.vacc_indication.modified_when::timestamptz
COL:clin.vacc_indication.pk_audit::int4
COL:clin.vacc_indication.modified_by::name
TABLE:clin.suppressed_hint
PK:clin.suppressed_hint.pk::integer
COL:clin.suppressed_hint.fk_hint::int4
COL:clin.suppressed_hint.fk_encounter::int4
COL:clin.suppressed_hint.md5_sum::text
COL:clin.suppressed_hint.suppressed_when::timestamptz
COL:clin.suppressed_hint.row_version::int4
COL:clin.suppressed_hint.modified_when::timestamptz
COL:clin.suppressed_hint.rationale::text
COL:clin.suppressed_hint.pk::int4
COL:clin.suppressed_hint.pk_audit::int4
COL:clin.suppressed_hint.modified_by::name
COL:clin.suppressed_hint.suppressed_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_hint)_REFERENCES_ref.auto_hint(pk)_ON_UPDATE_RESTRICT_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_encounter)_REFERENCES_clin.encounter(pk)_ON_UPDATE_RESTRICT_ON_DELETE_RESTRICT::active=true
TABLE:dem.urb
PK:dem.urb.id::integer
COL:dem.urb.name::text
COL:dem.urb.id::int4
COL:dem.urb.lat_lon::point
COL:dem.urb.row_version::int4
COL:dem.urb.modified_when::timestamptz
COL:dem.urb.id_state::int4
COL:dem.urb.pk_audit::int4
COL:dem.urb.modified_by::name
COL:dem.urb.postcode::text
CONSTRAINT:type=f:FOREIGN_KEY_(id_state)_REFERENCES_dem.state(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.lnk_constraint2vacc_course
PK:clin.lnk_constraint2vacc_course.pk::integer
COL:clin.lnk_constraint2vacc_course.row_version::int4
COL:clin.lnk_constraint2vacc_course.modified_when::timestamptz
COL:clin.lnk_constraint2vacc_course.fk_constraint::int4
COL:clin.lnk_constraint2vacc_course.pk::int4
COL:clin.lnk_constraint2vacc_course.fk_vaccination_course::int4
COL:clin.lnk_constraint2vacc_course.pk_audit::int4
COL:clin.lnk_constraint2vacc_course.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_vaccination_course)_REFERENCES_clin.vaccination_course(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_constraint)_REFERENCES_clin.vaccination_course_constraint(pk)_ON_UPDATE_CASCADE_ON_DELETE_CASCADE::active=true
TABLE:ref.billable
PK:ref.billable.pk::integer
COL:ref.billable.currency::text
COL:ref.billable.vat_multiplier::numeric
COL:ref.billable.pk_coding_system::int4
COL:ref.billable.active::bool
COL:ref.billable.amount::numeric
COL:ref.billable.fk_data_source::int4
COL:ref.billable.comment::text
COL:ref.billable.discountable::bool
COL:ref.billable.term::text
COL:ref.billable.code::text
COL:ref.billable.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:cfg.cfg_template
PK:cfg.cfg_template.pk::integer
COL:cfg.cfg_template.name::text
COL:cfg.cfg_template.type::text
COL:cfg.cfg_template.description::text
COL:cfg.cfg_template.cfg_group::text
COL:cfg.cfg_template.pk::int4
CONSTRAINT:type=f:FOREIGN_KEY_(type)_REFERENCES_cfg.cfg_type_enum(name)::active=true
TABLE:dem.praxis_branch
PK:dem.praxis_branch.pk::integer
COL:dem.praxis_branch.row_version::int4
COL:dem.praxis_branch.modified_when::timestamptz
COL:dem.praxis_branch.pk::int4
COL:dem.praxis_branch.pk_audit::int4
COL:dem.praxis_branch.fk_org_unit::int4
COL:dem.praxis_branch.modified_by::name
TABLE:blobs.lnk_doc_med2episode
PK:blobs.lnk_doc_med2episode.pk::integer
COL:blobs.lnk_doc_med2episode.fk_doc_med::int4
COL:blobs.lnk_doc_med2episode.row_version::int4
COL:blobs.lnk_doc_med2episode.modified_when::timestamptz
COL:blobs.lnk_doc_med2episode.fk_episode::int4
COL:blobs.lnk_doc_med2episode.pk::int4
COL:blobs.lnk_doc_med2episode.pk_audit::int4
COL:blobs.lnk_doc_med2episode.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_doc_med)_REFERENCES_blobs.doc_med(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_episode)_REFERENCES_clin.episode(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.lnk_substance2brand
PK:ref.lnk_substance2brand.pk::integer
COL:ref.lnk_substance2brand.fk_substance::int4
COL:ref.lnk_substance2brand.fk_brand::int4
COL:ref.lnk_substance2brand.row_version::int4
COL:ref.lnk_substance2brand.modified_when::timestamptz
COL:ref.lnk_substance2brand.pk::int4
COL:ref.lnk_substance2brand.pk_audit::int4
COL:ref.lnk_substance2brand.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_brand)_REFERENCES_ref.branded_drug(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_substance)_REFERENCES_ref.consumable_substance(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.coding_system_root
PK:ref.coding_system_root.pk_coding_system::integer
COL:ref.coding_system_root.pk_coding_system::int4
COL:ref.coding_system_root.fk_data_source::int4
COL:ref.coding_system_root.comment::text
COL:ref.coding_system_root.term::text
COL:ref.coding_system_root.code::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:dem.org_unit
PK:dem.org_unit.pk::integer
COL:dem.org_unit.fk_category::int4
COL:dem.org_unit.description::text
COL:dem.org_unit.fk_org::int4
COL:dem.org_unit.row_version::int4
COL:dem.org_unit.modified_when::timestamptz
COL:dem.org_unit.fk_address::int4
COL:dem.org_unit.pk::int4
COL:dem.org_unit.pk_audit::int4
COL:dem.org_unit.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_address)_REFERENCES_dem.address(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_category)_REFERENCES_dem.org_category(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_org)_REFERENCES_dem.org(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:blobs.doc_type
PK:blobs.doc_type.pk::integer
COL:blobs.doc_type.name::text
COL:blobs.doc_type.pk::int4
TABLE:bill.bill
PK:bill.bill.pk::integer
COL:bill.bill.invoice_id::text
COL:bill.bill.comment::text
COL:bill.bill.apply_vat::bool
COL:bill.bill.row_version::int4
COL:bill.bill.modified_when::timestamptz
COL:bill.bill.pk::int4
COL:bill.bill.close_date::timestamptz
COL:bill.bill.fk_doc::int4
COL:bill.bill.fk_receiver_address::int4
COL:bill.bill.pk_audit::int4
COL:bill.bill.fk_receiver_identity::int4
COL:bill.bill.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(fk_doc)_REFERENCES_blobs.doc_med(pk)_ON_UPDATE_CASCADE_ON_DELETE_SET_NULL::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_receiver_address)_REFERENCES_dem.lnk_person_org_address(id)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
CONSTRAINT:type=f:FOREIGN_KEY_(fk_receiver_identity)_REFERENCES_dem.identity(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.loinc
PK:ref.loinc.pk::integer
COL:ref.loinc.grouping_class::text
COL:ref.loinc.answer_list::text
COL:ref.loinc.panel_elements::text
COL:ref.loinc.example_units::text
COL:ref.loinc.cdisc_common_tests::text
COL:ref.loinc.inpc_percentage::text
COL:ref.loinc.units_required::text
COL:ref.loinc.example_answers::text
COL:ref.loinc.pk_coding_system::int4
COL:ref.loinc.system::text
COL:ref.loinc.reference::text
COL:ref.loinc.order_obs::text
COL:ref.loinc.hl7_field_subfield_id::text
COL:ref.loinc.fk_data_source::int4
COL:ref.loinc.comment::text
COL:ref.loinc.base_name::text
COL:ref.loinc.species::text
COL:ref.loinc.short_name::text
COL:ref.loinc.maps_to::text
COL:ref.loinc.dt_last_change::text
COL:ref.loinc.long_common_name::text
COL:ref.loinc.ipcc_units::text
COL:ref.loinc.term::text
COL:ref.loinc.code_status::text
COL:ref.loinc.grouping_class_type::int2
COL:ref.loinc.naa_ccr_id::text
COL:ref.loinc.change_type::text
COL:ref.loinc.scope::text
COL:ref.loinc.external_copyright_notice::text
COL:ref.loinc.code::text
COL:ref.loinc.component::text
COL:ref.loinc.molar_mass::text
COL:ref.loinc.formula::text
COL:ref.loinc.time_aspect::text
COL:ref.loinc.related_names_2::text
COL:ref.loinc.method_type::text
COL:ref.loinc.survey_question_text::text
COL:ref.loinc.final::text
COL:ref.loinc.property::text
COL:ref.loinc.code_table::text
COL:ref.loinc.loinc_internal_source::text
COL:ref.loinc.pk::int4
COL:ref.loinc.submitted_units::text
COL:ref.loinc.exact_component_synonym::text
COL:ref.loinc.related_names_1_old::text
COL:ref.loinc.acs_synonyms::text
COL:ref.loinc.normal_range::text
COL:ref.loinc.is_set_root::bool
COL:ref.loinc.scale_type::text
COL:ref.loinc.survey_question_source::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:ref.coda
PK:ref.coda.pk::integer
COL:ref.coda.pk_coding_system::int4
COL:ref.coda.fk_data_source::int4
COL:ref.coda.comment::text
COL:ref.coda.term::text
COL:ref.coda.code::text
COL:ref.coda.pk::int4
COL:ref.coda.icd10_text::text
CONSTRAINT:type=f:FOREIGN_KEY_(fk_data_source)_REFERENCES_ref.data_source(pk)_ON_UPDATE_CASCADE_ON_DELETE_RESTRICT::active=true
TABLE:clin.vacc_route
PK:clin.vacc_route.id::integer
COL:clin.vacc_route.id::int4
COL:clin.vacc_route.description::text
COL:clin.vacc_route.abbreviation::text
COL:clin.vacc_route.row_version::int4
COL:clin.vacc_route.modified_when::timestamptz
COL:clin.vacc_route.pk_audit::int4
COL:clin.vacc_route.modified_by::name
TABLE:dem.state
PK:dem.state.id::integer
COL:dem.state.name::text
COL:dem.state.id::int4
COL:dem.state.code::text
COL:dem.state.row_version::int4
COL:dem.state.modified_when::timestamptz
COL:dem.state.pk_audit::int4
COL:dem.state.country::bpchar
COL:dem.state.modified_by::name
CONSTRAINT:type=f:FOREIGN_KEY_(country)_REFERENCES_dem.country(code)::active=true
TABLE:cfg.db_logon_banner
COL:cfg.db_logon_banner.singularizer::bool
COL:cfg.db_logon_banner.message::text

