
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
fhir-helpers
Advanced tools
FHIR helpers to assist in the building and formatting of FHIR bundles
This library is intended to deliver helper methods for forming FHIR resources that follow the hl7 FHIR standard.
var fhir = require('fhir-helpers')
var obj = {
emr: 'FooBar',
value: 'medication',
onset: '2010-03-01',
recordedDate: '2010-03-01',
codingSystem: 'http:\/\/www.nlm.nih.gov\/research\/umls\/rxnorm',
code: '314422',
codingDisplay: 'ALLERGENIC EXTRACT, PENICILLIN',
status: 'unconfirmed',
criticality: 'CRITU',
category: 'medication'
}
var allergyResource = fhir.createAllergy(obj)
/* → {
resource: {
resourceType: 'AllergyIntolerance',
identifier: [{
system: 'FooBar',
value: 'medication'
}],
onset: '2010-03-01',
recordedDate: '2010-03-01',
substance: {
coding: [{
system: 'http:\/\/www.nlm.nih.gov\/research\/umls\/rxnorm',
code: '314422',
display: 'ALLERGENIC EXTRACT, PENICILLIN'
}]
},
status: 'unconfirmed',
criticality: 'CRITU',
category: 'medication'
}
}
*/
var fhir = require('fhir-helpers')
var obj = {
emr: 'EMRNAME',
value: '1234',
dateWritten: '2014-01-21',
status: 'active',
medicationName: 'Phentermine 37.5 mg Oral Capsule',
code: '803348',
codingSystem: 'urn:oid:2.16.840.1.113883.6.88',
codingDisplay: 'Phentermine 37.5 mg Oral Capsule',
codingPrimary: true,
codingText: 'RxNorm',
medicationIsBrand: false,
medicationKind: 'product',
dosageFrequency: '2',
dosageDuration: '1',
dosageUnits: 'd',
dosageAsNeeded: false
}
var medicationOrderResource = fhir.createMedicationOrder(obj)
/* → {
resource: {
resourceType: 'medicationOrder',
identifier: [{
system: 'EMRNAME',
value: '1234'
}],
dateWritten: '2014-01-21',
status: 'active',
medication: {
name: 'Phentermine 37.5 mg Oral Capsule',
code: {
coding: [{
code: '803348',
system: 'urn:oid:2.16.840.1.113883.6.88',
display: 'Phentermine 37.5 mg Oral Capsule',
primary: true
}],
text: 'RxNorm'
},
isBrand: false,
kind: 'product'
},
dosageInstruction: [{
timing: {
repeat: {
frequency: '2',
duration: '1',
units: 'd'
}
},
asNeeded: false
}]
}
}
*/
var fhir = require('fhir-helpers')
var obj = {
emr: 'EMRNAME',
value: '1222',
medicationName: 'Diazepam 5MG Tablet',
code: '197591',
codingSystem: 'urn:oid:2.16.840.1.113883.6.88',
codingDisplay: 'Diazepam 5MG Tablet',
codingPrimary: true,
codingText: 'RxNorm',
medicationIsBrand: false,
medicationKind: 'product',
frequency: '2',
duration: '1',
units: 'd',
dosageAsNeeded: false
}
var medicationStatementResource = fhir.createMedicationStatement(obj)
/* → {
resource: {
resourceType: 'medicationStatement',
identifier: [{
system: 'EMRNAME',
value: '1222'
}],
medication: {
name: 'Diazepam 5MG Tablet',
code: {
coding: [{
code: '197591',
system: 'urn:oid:2.16.840.1.113883.6.88',
display: 'Diazepam 5MG Tablet',
primary: true
}],
text: 'RxNorm'
},
isBrand: false,
kind: 'product'
},
dosage: [{
timing: {
repeat: {
frequency: '2',
duration: '1',
units: 'd'
}
},
asNeeded: false
}]
}
}
*/
var fhir = require('fhir-helpers')
var obj = {
system: 'orgSystem',
value: '123456',
name: 'testOrg'
}
var organizationResource = fhir.createOrganization(obj)
/* → {
resource:
{
resourceType: 'organization',
identifier: {
system: 'orgSystem',
value: '123456'
},
name: 'testOrg'
}
}
*/
var fhir = require('fhir-helpers')
var obj = {
emr: 'testName',
id: '1234',
ssn: '123-45-6789',
familyName: 'smith',
givenName: 'Taylor',
phone: '123-456-7890',
gender: 'male',
birthDate: '05-04-1989'
}
var patientResource = fhir.createPatient(obj)
/* → {
resource:
{
resourceType: 'patient',
identifier: [{
system: 'testName',
value: '1234'
}, {
system: 'SSN',
value: '123-45-6789'
}],
name: {
family: ['smith'],
given: ['Taylor']
},
gender: 'male',
birthDate: '05-04-1989',
telecom: {}
}
}
*/
var fhir = require('fhir-helpers')
var obj = {
emr: 'testName',
id: '1234',
npi: '123456789',
familyName: 'smith',
givenName: 'Taylor',
birthDate: '05-04-1989',
gender: 'male'
}
var practitionerResource = fhir.createPractitioner(obj)
/* → {
resource:
{
resourceType: 'practitioner',
identifier: [{
system: 'testName',
value: '1234'
}, {
system: 'NPI',
value: '123456789'
}],
name: {
family: ['smith'],
given: ['Taylor']
},
gender: 'male',
birthDate: '05-04-1989'
}
}
*/
For feature requests or suggestions, please post an issue.
All developers are encourage to provide feedback, comments, update the readme, etc.
This Project follows the StandardJS style guide.
To Contribute:
npm install| Kevin Collins |
| Tom Wilson |
FHIR-helpers is available under the MIT license.
FAQs
FHIR helpers to assist in the building and formatting of FHIR bundles
The npm package fhir-helpers receives a total of 0 weekly downloads. As such, fhir-helpers popularity was classified as not popular.
We found that fhir-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.

Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.

Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.