"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FieldsValidationSchema = exports.fields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const serviceRequest_schema_1 = require("../../../fhir/schemas/resources/serviceRequest.schema");
const ServiceRequest_1 = require("../../../../../src/lib/fhir/schemas/ServiceRequest");
exports.fields = {
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'ID of the patient in Medplum',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    status: {
        id: 'status',
        label: 'Status',
        description: 'The status of the order',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        options: {
            dropdownOptions: Object.values(ServiceRequest_1.ServiceRequestStatusSchema.enum).map((status) => ({
                label: status,
                value: status,
            })),
        },
    },
    intent: {
        id: 'intent',
        label: 'Mobile phone',
        description: 'Whether the request is a proposal, plan, an original order or a reflex order.',
        type: extensions_core_1.FieldType.STRING,
        required: true,
        options: {
            dropdownOptions: Object.values(ServiceRequest_1.ServiceRequestIntentSchema.enum).map((intent) => ({
                label: intent,
                value: intent,
            })),
        },
    },
    priority: {
        id: 'priority',
        label: 'Priority',
        description: 'The priority of the order',
        type: extensions_core_1.FieldType.STRING,
        required: false,
        options: {
            dropdownOptions: Object.values(ServiceRequest_1.PrioritySchema.enum).map((priority) => ({
                label: priority,
                value: priority,
            })),
        },
    },
};
exports.FieldsValidationSchema = serviceRequest_schema_1.CreateServiceRequestSchema;
//# sourceMappingURL=fields.js.map