mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
14 lines
349 B
Python
14 lines
349 B
Python
import pandas as pd
|
|
|
|
from fmp import FMP
|
|
|
|
fmp_model = FMP("20200303_chihaiti", "hjohnson", "hjohnson")
|
|
|
|
pk_visit_id = "pk_visit_id"
|
|
fk_clinic_id = "fk_clinic_id"
|
|
|
|
print(fmp_model.get_tablename_from_fieldname(pk_visit_id)) # expect this to be "visits"
|
|
print(
|
|
fmp_model.get_tablename_from_fieldname(fk_clinic_id)
|
|
) # expect this to be "clinics"
|