"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddVitalsInputSchema = exports.measurementInputSchema = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const z = __importStar(require("zod"));
// Define the shape for each object in the array
exports.measurementInputSchema = z.object({
    value: z
        .string()
        .max(10)
        .describe('Measurement value (string up to 10 characters)'),
    note: z
        .string()
        .max(250)
        .optional()
        .describe('Optional note (string up to 250 characters)'),
});
exports.AddVitalsInputSchema = z
    .object({
    patient: extensions_core_1.NumericIdSchema,
    practice: extensions_core_1.NumericIdSchema,
    visit_note: extensions_core_1.NumericIdSchema.optional(),
    non_visit_note: extensions_core_1.NumericIdSchema.optional(),
    bmi: z.number().optional(),
    height: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Height; only one item allowed'),
    weight: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Weight; only one item allowed'),
    oxygen: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Oxygen; only one item allowed'),
    rr: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Respiratory rate; only one item allowed'),
    hr: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Heart rate; only one item allowed'),
    hc: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Head circumference; only one item allowed'),
    temperature: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Temperature; only one item allowed'),
    bp: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Blood pressure; multiple items allowed'),
    // we are skipping the ketone for now because of lack of documentation on the supported observations
    // ketone: z.array(measurementInputSchema).optional().describe("Optional ketone; see Vital Object Definition for supported observations"),
    bodyfat: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Optional body fat; only one item allowed'),
    dlm: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Optional DLM; only one item allowed'),
    bfm: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Optional BFM; only one item allowed'),
    wc: z
        .array(exports.measurementInputSchema)
        .optional()
        .describe('Optional WC; only one item allowed'),
})
    .strict();
//# sourceMappingURL=vitals.js.map