clinical:hl7-resource-message-header

HL7 FHIR Resource - Message Header


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

Documentation

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