
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
questionnaire-version-converter
Advanced tools
This questionnaire converter converts FHIR© Questionnaire resources between different FHIR versions. It includes a library and a command line tool. The FHIR versions currently supported include STU3, R4, and R5, and the support for R6 is being considered.
A few general notes:
As with any npm packages, it needs to be installed before use:
npm install questionnaire-version-converter-lhc
To make a conversion within javascript apps/code:
import { convert } from 'questionnaire-version-converter';
let resultOjb = convert(qnJson, 'STU3', 'R4');
or,
import { getConverter } from 'questionnaire-version-converter';
let converter = getConverter('STU3', 'R4');
let resultOjb = converter(qnJson);
Where the result object has 3 fields:
The command line tool may be used to convert questionnaire files, either single resource files or resource bundle files, and the result files are written to the output directory specified on the command line.
To get detailed usage instructions, run
For examples:
Will convert the given questionnaire file (single Questionnaire or bundle) from R4 to R5 and write to the output file /tmp/my-questionnaire-R5.json (note the -R5 suffix in the result file name).
Will process every .json file under /tmp/my-source-dir/ (recursively) and write the output files to /tmp/output, with the same subdirectory structure as the source directory.
FAQs
For converting FHIR questionnaires between FHIR versions.
We found that questionnaire-version-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.