
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
questionnaire-version-converter
Advanced tools
For converting FHIR questionnaires between FHIR versions.
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.
[1.0.2] - 2025-04-10
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.