fix(patient-guarantor): remove zip_code as param required in create and update
This commit is contained in:
@ -185,7 +185,7 @@ export class PatientGuarantorController {
|
||||
administrativu: Joi.string().allow(null, "").label("Administrativu ID"),
|
||||
aldeia: Joi.string().allow(null, "").label("Aldeia ID"),
|
||||
suco: Joi.string().allow(null, "").label("Suco ID"),
|
||||
zip_code: Joi.string().max(10).required().label('Zip Code'),
|
||||
// zip_code: Joi.string().max(10).required().label('Zip Code'),
|
||||
agreement_no: Joi.string().max(50).required().label('Agreement No.'),
|
||||
agreement_desc: Joi.string().max(512).optional().label('Agreement Description'),
|
||||
patient_group_id: Joi.string().guid({ version: 'uuidv4' }).required().label('Patient Group'),
|
||||
@ -211,7 +211,7 @@ export class PatientGuarantorController {
|
||||
data.suco = param.suco;
|
||||
data.aldeia = param.aldeia;
|
||||
data.munisipo = param.munisipo;
|
||||
data.zip_code = param.zip_code;
|
||||
// data.zip_code = param.zip_code;
|
||||
data.agreement_no = param.agreement_no;
|
||||
data.agreement_desc = param.agreement_desc;
|
||||
data.patient_group = param.patient_group_id;
|
||||
@ -269,7 +269,7 @@ export class PatientGuarantorController {
|
||||
administrativu: Joi.string().allow(null, "").label("Administrativu ID"),
|
||||
aldeia: Joi.string().allow(null, "").label("Aldeia ID"),
|
||||
suco: Joi.string().allow(null, "").label("Suco ID"),
|
||||
zip_code: Joi.string().max(10).required().label('Zip Code'),
|
||||
// zip_code: Joi.string().max(10).required().label('Zip Code'),
|
||||
agreement_no: Joi.string().max(50).required().label('Agreement No.'),
|
||||
agreement_desc: Joi.string().max(512).optional().label('Agreement Description'),
|
||||
patient_group_id: Joi.string().guid({ version: 'uuidv4' }).required().label('Patient Group'),
|
||||
@ -302,7 +302,7 @@ export class PatientGuarantorController {
|
||||
data.suco = param.suco;
|
||||
data.aldeia = param.aldeia;
|
||||
data.munisipo = param.munisipo;
|
||||
data.zip_code = param.zip_code;
|
||||
// data.zip_code = param.zip_code;
|
||||
data.agreement_no = param.agreement_no;
|
||||
data.agreement_desc = param.agreement_desc;
|
||||
data.patient_group = param.patient_group_id;
|
||||
|
||||
@ -378,7 +378,7 @@ const doc = {
|
||||
$administrativu: "2e1a1b33-bbb2-4f33-b2c4-cff5976f3f95", // Administrativu (UUID)
|
||||
$aldeia: "2e1a1b33-bbb2-4f33-b2c4-cff5976f3f95", // Aldeia (UUID)
|
||||
$suco: "2e1a1b33-bbb2-4f33-b2c4-cff5976f3f95", // Suco (UUID)
|
||||
$zip_code: "40123", // Kode Pos
|
||||
// $zip_code: "40123", // Kode Pos
|
||||
$agreement_no: "AG123456789", // Nomor Perjanjian
|
||||
$agreement_desc: "Health Insurance Agreement", // Deskripsi Perjanjian (opsional)
|
||||
$patient_group_id: "2e1a1b33-bbb2-4f33-b2c4-cff5976f3f95", // Patient Group (UUID)
|
||||
|
||||
Reference in New Issue
Block a user