"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get buildEncounterPatientIdSelect () {
        return buildEncounterPatientIdSelect;
    },
    get buildPatientLinkedLookupFilter () {
        return buildPatientLinkedLookupFilter;
    }
});
const _buildSyncLookupSelect = require("./buildSyncLookupSelect");
async function buildPatientLinkedLookupFilter(model) {
    return {
        select: await (0, _buildSyncLookupSelect.buildSyncLookupSelect)(model, {
            patientId: `${model.tableName}.patient_id`
        })
    };
}
async function buildEncounterPatientIdSelect(model) {
    return (0, _buildSyncLookupSelect.buildSyncLookupSelect)(model, {
        patientId: 'encounters.patient_id'
    });
}

//# sourceMappingURL=buildPatientLinkedLookupFilter.js.map