1.2.0 • Published 5 months ago

fhir-tools v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

fhir-backup

A command line tool for performing common tasks on FHIR® resources.

Installation

# Install globally
npm install fhir-tools -g
# Clone and install
git clone https://github.com/lantanagroup/fhir-tools
cd fhir-tools
npm install 

Commands

# If installed globally
spec-tools <command> <parameters> --options
# If running from cloned repo
node index.js <command> <parameters> --options
CommandDescription
create-bundleCreates a bundle from one or more paths in the form of directories, package.tgz files on the file system, or urls to package.tgz files
fixidsFix number-only ids of resources in a bundle so they can be imported with HAPI
deleteDelete all resources from a FHIR server
transferTransfer resources from one server to another
importImport resources from a Bundle file onto the specified server
bulk-analyzeAnalyze resources from bulk ndjson files in a directory
compareCompare the resources from one FHIR server to another
exportExport data from a FHIR server
get-all-resource-idsGets all resource ids for the specified resource types from a FHIR server
xml-to-jsonConverts a XML file (or all XML files in a directory) to JSON. Stores the JSON file as the same file name as the XML file, but with an JSON extension, instead.
json-to-xmlConverts a JSON file (or all JSON files in a directory) to XML. Stores the JSON file as the same file name as the XML file, but with an JSON extension, instead.
create-code-systemCreate a code system from a source file, such as RXNorm or SNOMED-CT. This command is VERY basic and does not currently account for many of the complexities of SNOMED and RXNORM code systems. This is only intended as a starting point and should not be used in production systems that require reliability.
transactionExecute a bundle as a transaction on the destination fhir server
bundleUpdates an existing bundle to be a specific type of bundle. If batch or transaction, ensures that all entries have a request

Help

# If installed globally:
fhir-tools --help
fhir-tools <command> --help
# If running from cloned repo
node index.js --help
node index.js <command> --help
1.2.0

5 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.0.0

12 months ago