"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteFields = exports.getFields = exports.updateFields = exports.createFields = void 0;
const extensions_core_1 = require("@awell-health/extensions-core");
const fields_1 = require("../../shared/fields");
exports.createFields = {
    facilityId: {
        id: 'facilityId',
        label: 'Facility ID',
        description: `The ID of the facility to create the Patient in`,
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    firstName: {
        id: 'firstName',
        label: 'First Name',
        description: `The Patient's first name`,
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    lastName: {
        id: 'lastName',
        label: 'Last Name',
        description: `The Patient's last name`,
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    dob: {
        id: 'dob',
        label: 'Date of Birth',
        description: `The Patient's date of birth (DOB), formatted YYYY-MM-DD`,
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    genderAtBirth: {
        id: 'genderAtBirth',
        label: 'Gender at Birth',
        description: `The Patient's gender at birth, can be one of M or F`,
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    driversLicenseValue: {
        id: 'driversLicenseValue',
        label: 'Drivers License Value',
        description: `The Patient's driver's license number`,
        type: extensions_core_1.FieldType.STRING,
    },
    driversLicenseState: {
        id: 'driversLicenseState',
        label: 'Drivers License State',
        description: `The 2 letter state acronym where this ID was issued, for example: CA`,
        type: extensions_core_1.FieldType.STRING,
    },
    ...fields_1.address,
    phone: {
        id: 'phone',
        label: 'Phone',
        description: `The Patient's 10 digit phone number, formatted 1234567899`,
        type: extensions_core_1.FieldType.STRING,
    },
    email: {
        id: 'email',
        label: 'Email',
        description: `The Patient's email address`,
        type: extensions_core_1.FieldType.STRING,
    },
};
exports.updateFields = {
    id: {
        id: 'id',
        label: 'Patient ID',
        description: 'The ID of the Patient to update',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
    ...exports.createFields,
};
exports.getFields = {
    patientId: {
        id: 'patientId',
        label: 'Patient ID',
        description: 'The Patient ID',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
exports.deleteFields = {
    ...exports.getFields,
    facilityId: {
        id: 'facilityId',
        label: 'Facility ID',
        description: 'The facility ID',
        type: extensions_core_1.FieldType.STRING,
        required: true,
    },
};
//# sourceMappingURL=fields.js.map