Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lforms-updater

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lforms-updater

Updates lforms form definitions and FHIR resources generated by lforms to the latest lforms version.

  • 30.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by20%
Maintainers
0
Weekly downloads
 
Created
Source

LForms Updater

This package is used to update an LForms form definition from one version of LForms to the latest one. It will also update FHIR resources created by LForms to structures that would be generated by the current LForms package.

Command-line Usage

node bin/updater -f [path to form definition or FHIR resource file]
node bin/updater -f [filepath to a form/resource]
                 -d [directory of form/resource files] -o [output directory]
                 -v [version to be updated to, optional]

Either -f or, -d and -o are required.

Installation as an npm package

npm install lforms-updater

Using the Package in a Program

var lformsUpdater = require('lforms-updater');
var updatedResource = lformsUpdater.update(formDeforResourceToBeUpdated);

Alternatively, you can include the browser/updater.js as a script tag. That will define window.lformsUpdater, which you can use as above.

The lformsUpdater object contains a function "update" which takes the parsed JSON for the form definition or resource. The function also takes a second, optional argument which is the version of lforms at which to stop updating. (This was useful for our tests.)

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc