clinical:hl7-resource-bundle

v1.3.13Published 7 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

##clinical:hl7-resource-bundle

HL7 FHIR Resource - Bundle

===============================

Conformance Statement

The resource in this package implements the FHIR Patient Resource schema provided at https://www.hl7.org/fhir/Bundle.html.

===============================

Installation

# to add hl7 resource schemas and rest routes
meteor add clinical:hl7-resource-bundle

# to initialize default data
INITIALIZE=true meteor

===============================

Example

1var nyQuill = {
2  code: {
3    text: "NyQuill"
4  },
5  isBrand: true,
6  manufacturer: {
7    display: 'VICKS',
8    reference: ''
9  },
10  product: {
11    form: {
12      text: 'liquid'
13    },
14    ingredient: [{
15      item: {
16        resourceType: 'Substance',
17        code: {
18          text: 'Acetaminophen'
19        },
20        description: 'Pain reliever/fever reducer.'
21      },
22      instance: [{
23        quantity: '650 mg'
24      }]
25    },{
26      item: {
27        resourceType: 'Substance',
28        code: {
29          text: 'Dextromethorphan HBr'
30        },
31        description: 'Cough suppressant.'
32      },
33      instance: [{
34        quantity: '30 mg'
35      }]
36    },{
37      item: {
38        resourceType: 'Substance',
39        code: {
40          text: 'Doxylamine succinate'
41        },
42        description: 'Antihistamine.'
43      },
44      instance: [{
45        quantity: '12.5 mg'
46      }]
47    }]
48  },
49  package: {
50    container: {
51      text: 'vial'
52    },
53    content: [{
54      amount: {
55        value: 12,
56        unit: 'fl oz'
57      }
58    }]
59  }
60}
61Bundles.insert(nyQuill);

===============================

Extending the Schema

1ExtendedBundleSchema = new SimpleSchema([
2  BundleSchema,
3  {
4    "createdAt": {
5      "type": Date,
6      "optional": true
7    }
8  }
9]);
10Bundles.attachSchema( ExtendedBundleSchema );

===============================

Utilities

If you're working with HL7 FHIR Resources, we recommend using Postman.

===============================

Licensing

MIT License