bluehalo / node-fhir-server-core

An Open Source secure REST implementation for the HL7 FHIR Specification. For API documentation, please see https://github.com/Asymmetrik/node-fhir-server-core/wiki.
https://asymmetrik.com/healthcare
MIT License
389 stars 120 forks source link

feat: allow to specify request body size limit #345

Open jancabadaj opened 1 year ago

jancabadaj commented 1 year ago

This change will add the ability to specify maximum request body size.

Reason: The FHIR type Attachment allows to transfer data as base64 string. However, request body size limit is currently not specified, so default 100kb from body-parser library is used. If the data is larger, request fails with the following error: "Unexpected: request entity too large"