"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "createSurveyResponse", {
    enumerable: true,
    get: function() {
        return createSurveyResponse;
    }
});
const _utilities = require("@tamanu/database/demoData/utilities");
const _index = require("../../fake/index.js");
const createSurveyResponse = async ({ models, encounterId, surveyId })=>{
    const { SurveyResponse } = models;
    await SurveyResponse.create((0, _index.fake)(SurveyResponse, {
        surveyId: surveyId || await (0, _utilities.randomRecordId)(models, 'Survey'),
        encounterId: encounterId || await (0, _utilities.randomRecordId)(models, 'Encounter')
    }));
};

//# sourceMappingURL=survey.js.map