ac-fhir-models
Advanced tools
Comparing version 7.7.0 to 7.7.1
{ | ||
"name": "ac-fhir-models", | ||
"version": "7.7.0", | ||
"version": "7.7.1", | ||
"author": "Henrik Joreteg <henrik@anesthesiacharting.com>", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -35,2 +35,5 @@ // @ts-check | ||
const nsCompositionSections = | ||
'https://ns.anesthesiacharting.com/composition-sections' | ||
const compositionFields = { | ||
@@ -284,3 +287,3 @@ resourceType: 'str', | ||
coding: { | ||
system: 'https://ns.anesthesiacharting.com/composition-sections', | ||
system: nsCompositionSections, | ||
code: 'signature', | ||
@@ -344,2 +347,11 @@ display: 'Signature', | ||
caseData: getContainedObjectProp('caseData'), | ||
healthHistoryId: getCompositionSectionProp({ | ||
title: 'Health History', | ||
coding: { | ||
system: nsCompositionSections, | ||
code: 'health-history', | ||
display: 'Health History', | ||
}, | ||
singularEntry: true, | ||
}), | ||
}, | ||
@@ -346,0 +358,0 @@ definition: buildDefinition(compositionFields, fhirFieldTypes), |
@@ -45,2 +45,3 @@ // @ts-check | ||
patientId: 'blah', | ||
healthHistoryId: 'Composition/12345', | ||
}) | ||
@@ -64,2 +65,18 @@ t.deepEqual( | ||
}, | ||
section: [ | ||
{ | ||
title: 'Health History', | ||
code: { | ||
coding: [ | ||
{ | ||
system: | ||
'https://ns.anesthesiacharting.com/composition-sections', | ||
code: 'health-history', | ||
display: 'Health History', | ||
}, | ||
], | ||
}, | ||
entry: [{ reference: 'Composition/12345' }], | ||
}, | ||
], | ||
}, | ||
@@ -71,2 +88,3 @@ 'should properly set patientID' | ||
t.deepEqual(values.title, 'Anesthesia Case') | ||
t.deepEqual(values.healthHistoryId, 'Composition/12345') | ||
t.end() | ||
@@ -73,0 +91,0 @@ }) |
Sorry, the diff of this file is too big to display
211319
7290