clinical:hl7-resource-list

v1.3.6Published 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-list

HL7 FHIR Resource - List

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

Conformance Statement

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

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

Installation

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

# to initialize default data
INITIALIZE=true meteor

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

Example

1var nyQuill = {
2  "resourceType": "List",
3  "code": {
4    "coding": [
5      {
6        "system": "http://snomed.info/sct",
7        "code": "182836005",
8        "display": "Review of medication"
9      }
10    ],
11    "text": "Medication Review"
12  },
13  "source": {
14    "reference": "Patient/example"
15  },
16  "status": "current",
17  "date": "2013-11-20T23:10:23+11:00",
18  "mode": "changes",
19  "entry": [
20    {
21      "fhir_comments": [
22        "  \n      in a real medications list, we'd actually have medication resources.\n      but this an example to demonstrate a changes list, so we'll just use \n      display  "
23      ],
24      "flag": {
25        "fhir_comments": [
26          "  patient was prescribed hydroxocobalamin. the flag marks this \n       as a prescription. Note that healthcare workers will now get into\n       a long debate the exact implication of \"prescribed\". That's why the\n       spec doesn't fix the flag values  "
27        ],
28        "coding": [
29          {
30            "system": "http://nehta.gov.au/codes/medications/changetype",
31            "code": "01",
32            "display": "Prescribed"
33          }
34        ]
35      },
36      "item": {
37        "display": "hydroxocobalamin"
38      }
39    },
40    {
41      "fhir_comments": [
42        " \n     on this one, we record that the patient was taken off morphine sulfate.\n     because not every system knows the flags, and the ensure there's no confusion,\n     if the flag implies that something was removed from the list, then the\n     deleted element must also be set \n   "
43      ],
44      "flag": {
45        "coding": [
46          {
47            "system": "http://nehta.gov.au/codes/medications/changetype",
48            "code": "02",
49            "display": "Cancelled"
50          }
51        ]
52      },
53      "deleted": true,
54      "item": {
55        "display": "Morphine Sulfate"
56      }
57    }
58  ]
59}
60Lists.insert(nyQuill);

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

Extending the Schema

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

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

Utilities

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

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

Licensing

MIT License