clinical:hl7-resource-medication

v1.3.4Published 6 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-medication

Licensing

MIT License

Integration & Verification Tests

CircleCI

API Reference

The resource in this package implements Medication resource schema, specified at https://www.hl7.org/fhir/DSTU2/medication.html.

Installation

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

# 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}
61Medications.insert(nyQuill);

Extending the Schema

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

Utilities

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

Acknowledgements

Many thanks to DxRx Medical, NY Methodist Hospital, and the New Orleans Pharmacy Museum for research and studies conducted in support of this library.