"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.questionnaireResponseWithIdSchema = exports.questionnaireResponseSchema = exports.creatingQuestionnaireResponsesSchema = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const zod_1 = require("zod");
const reference_zod_1 = require("./reference.zod");
exports.creatingQuestionnaireResponsesSchema = zod_1.z.object({
    resourceType: zod_1.z.literal('QuestionnaireResponse'),
    questionnaire: (0, reference_zod_1.createReferenceSchema)('Questionnaire'),
    subject: zod_1.z.object({
        reference: (0, reference_zod_1.createReferenceSchema)('Patient'),
    }),
    authored: extensions_core_1.DateTimeSchema.optional(),
    author: zod_1.z
        .object({
        reference: (0, reference_zod_1.createReferenceSchema)('Practitioner'),
    })
        .optional(),
    item: zod_1.z.array(zod_1.z.any()),
});
exports.questionnaireResponseSchema = exports.creatingQuestionnaireResponsesSchema.extend({
    meta: zod_1.z.object({
        versionId: zod_1.z.string(),
        lastUpdated: zod_1.z.string(),
    }),
    status: zod_1.z.string(),
});
exports.questionnaireResponseWithIdSchema = exports.questionnaireResponseSchema.extend({
    id: zod_1.z.string(),
});
//# sourceMappingURL=questionnaireResponses.zod.js.map