clinical:hl7-resource-message-header 1.2.0

HL7 FHIR Resource - Message Header

Platform: Meteor

Language: JavaScript

Repository: https://github.com/clinical-meteor/hl7-resource-message-header

View on registry: https://atmospherejs.com/clinical/hl7-resource-message-header

Install: meteor add clinical:hl7-resource-message-header@=1.2.0


clinical:hl7-resource-message-header

HL7 FHIR Resource - MessageHeader

Conformance Statement

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

Installation

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

# to initialize default data
INITIALIZE=true meteor

Example

var nyQuill = {
  code: {
    text: "NyQuill"
  },
  isBrand: true,
  manufacturer: {
    display: 'VICKS',
    reference: ''
  },
  product: {
    form: {
      text: 'liquid'
    },
    ingredient: [{
      item: {
        resourceType: 'Substance',
        code: {
          text: 'Acetaminophen'
        },
        description: 'Pain reliever/fever reducer.'
      },
      instance: [{
        quantity: '650 mg'
      }]
    },{
      item: {
        resourceType: 'Substance',
        code: {
          text: 'Dextromethorphan HBr'
        },
        description: 'Cough suppressant.'
      },
      instance: [{
        quantity: '30 mg'
      }]
    },{
      item: {
        resourceType: 'Substance',
        code: {
          text: 'Doxylamine succinate'
        },
        description: 'Antihistamine.'
      },
      instance: [{
        quantity: '12.5 mg'
      }]
    }]
  },
  package: {
    container: {
      text: 'vial'
    },
    content: [{
      amount: {
        value: 12,
        unit: 'fl oz'
      }
    }]
  }
}
MessageHeaders.insert(nyQuill);

Extending the Schema

ExtendedMessageHeaderSchema = new SimpleSchema([
  MessageHeaderSchema,
  {
    "createdAt": {
      "type": Date,
      "optional": true
    }
  }
]);
MessageHeaders.attachSchema( ExtendedMessageHeaderSchema );

Utilities

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

Licensing

MIT License

Releases

  • 1.2.0 - December 21, 2016 02:37
  • 1.1.8 - December 01, 2016 18:36
  • 1.1.7 - November 30, 2016 06:41
  • 1.1.4 - November 25, 2016 03:38

Project Statistics

SourceRank 0
Dependent repositories 0
Total releases 4
Latest release
First release
Stars 0
Forks 0
Watchers 1
Contributors 1
Repo Size: 6.84 KB

Top Contributors See all

Abigail Watson

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2016-12-21 08:06:31 UTC

Login to resync this project