"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "createProcedure", {
    enumerable: true,
    get: function() {
        return createProcedure;
    }
});
const _randomRecord = require("../randomRecord.js");
const _index = require("../../fake/index.js");
const createProcedure = async ({ models, encounterId, locationId, physicianId })=>{
    const { Procedure } = models;
    await Procedure.create((0, _index.fake)(Procedure, {
        encounterId: encounterId || await (0, _randomRecord.randomRecordId)(models, 'Encounter'),
        locationId: locationId || await (0, _randomRecord.randomRecordId)(models, 'Location'),
        physicianId: physicianId || await (0, _randomRecord.randomRecordId)(models, 'User'),
        date: (0, _index.fakeDate)().toISOString(),
        completed: _index.chance.bool()
    }));
};

//# sourceMappingURL=procedure.js.map