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

ac-fhir-models

Package Overview
Dependencies
Maintainers
0
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-fhir-models - npm Package Compare versions

Comparing version 7.8.0-rc.3 to 7.8.0-rc.4

2

package.json
{
"name": "ac-fhir-models",
"version": "7.8.0-rc.3",
"version": "7.8.0-rc.4",
"author": "Henrik Joreteg <henrik@anesthesiacharting.com>",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -602,3 +602,3 @@ // @ts-check

date: 'date',
caseData: getContainedObjectProp('hhxData'),
caseData: getContainedObjectProp('caseData'),
},

@@ -605,0 +605,0 @@ definition: buildDefinition(compositionFields, fhirFieldTypes),

// @ts-check
import test from 'tape'
import { compositionDefinition } from './composition'
import { compositionDefinition, hhxDefinition } from './composition'
test('hhxDefinition', t => {
const composition = hhxDefinition.create({
caseData: { something: 'random' },
})
t.deepEqual(
composition,
{
resourceType: 'Composition',
title: 'Health History',
type: {
coding: [
{
system: 'http://loinc.org',
code: '35089-2',
display: 'History and Physical Panel',
},
],
},
contained: [
{
resourceType: 'Binary',
id: 'caseData',
contentType: 'application/json',
data: 'ewAiAHMAbwBtAGUAdABoAGkAbgBnACIAOgAiAHIAYQBuAGQAbwBtACIAfQA=',
},
],
},
'should produce a composition resource with a contained binary'
)
t.deepEqual(hhxDefinition.getValues(composition).caseData, {
something: 'random',
})
t.end()
})
test('compositionDefinition', t => {

@@ -6,0 +41,0 @@ const composition = compositionDefinition.create({

Sorry, the diff of this file is too big to display

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