@aehrc/sdc-populate
v3.0.1
Published
Performs the $populate operation from the HL7 FHIR SDC (Structured Data Capture) specification: http://hl7.org/fhir/uv/sdc
Downloads
1,615
Readme
SDC-Populate
A Typescript reference implementation of the $populate operation from the HL7 FHIR Structured Data Capture Specification designed for Form Population.
Check out the API Reference for technical specifications.
Note for Vite users (or if you facing CommonJS/ESM issues)
If you are using Vite, you might need to add the following to your vite.config.ts
file:
This package is a CommonJS module for backwards compatibility with Node.js, so this configuration is required so that Vite can correctly bundle the module.
export default defineConfig({
// ...
optimizeDeps: {
include: [
'@aehrc/sdc-populate',
// other modules as required...
],
},
build: {
commonjsOptions: {
include: [
/node_modules/,
'@aehrc/sdc-populate',
// other modules as required...
]
}
},
resolve: { preserveSymlinks: true }
});
During development, please change the module
element in tsconfig.json
to "ES6"
and comment out the above changes. Otherwise tsc -w
will not work properly.