diff --git a/api/FHIR/Patient/index.js b/api/FHIR/Patient/index.js index 854f3755..3337aad9 100644 --- a/api/FHIR/Patient/index.js +++ b/api/FHIR/Patient/index.js @@ -10,7 +10,9 @@ const config = require('../../../config/config'); if (_.get(config, "Patient.interaction.search", true)) { router.get('/', FHIRValidateParams({ "_offset": joi.number().integer(), - "_count": joi.number().integer() + "_count": joi.number().integer(), + "_pretty": joi.boolean().default(true), + "_total": joi.string().allow("none", "estimate", "accurate").default("estimate") }, "query", { allowUnknown: true }), require('./controller/getPatient')); diff --git a/api_generator/API_Generator_V2.js b/api_generator/API_Generator_V2.js index d450333c..db1509df 100644 --- a/api_generator/API_Generator_V2.js +++ b/api_generator/API_Generator_V2.js @@ -251,7 +251,9 @@ function generateAPI(option) { if (_.get(config, "${res}.interaction.search", true)) { router.get('/', FHIRValidateParams({ "_offset": joi.number().integer(), - "_count": joi.number().integer() + "_count": joi.number().integer(), + "_pretty": joi.boolean().default(true), + "_total": joi.string().allow("none", "estimate", "accurate").default("estimate") }, "query", { allowUnknown: true }), require('./controller/get${res}'));