This package is a stand-alone lightweight nodejs library for generating medical reports in a PDF format.
using this command.
npm install @medicus.ai/medicus-report-pdf-generator
const {generateMedicusPDF} = require('@medicus.ai/medicus-report-pdf-generator');
async function generatePDF(json) {
try {
const data = await generateMedicusPDF(json);
return data;
}
catch (e) {
throw new Meteor.Error(500, 'error', e);
}
}