clinical:hl7-resource-observation

v1.4.29Published 5 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-observation

Licensing

MIT License

Integration & Verification Tests

CircleCI

API Reference

The resource in this package implements the FHIR Observation Resource DTSU2 schema provided at https://www.hl7.org/fhir/DSTU2/observation.html.

Installation

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

# to initialize default data
INITIALIZE=true meteor

Example

1var newObservation = {
2  category: { 
3    coding: {
4      system : "",
5      code: "123.1",
6      version: "1",
7      display: "foo",
8      userSelected: false
9    }, 
10    text: "Foo"
11  },
12  valueQuantity: { 
13    value: 123,
14    unit: "kg",
15    system: "http://unitsofmeasure.org"
16  },
17  subject: {
18    display: "...",
19    reference:  "Patient/...."
20  }
21}
22Observations.insert(newObservation);

Extending the Schema

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

Utilities

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

Acknowledgements

Many thanks to iHealth Labs, DxRx Medical, VisExcell, Parkland Center for Care Innovation, and many others for their support in creating this library.