clinical:hl7-resource-careplan

v1.4.2Published 3 years ago

clinical:hl7-resource-careplan

Licensing

MIT License

Integration & Verification Tests

CircleCI

API Reference

This package implements the FHIR List resource schema provided at https://www.hl7.org/fhir/DSTU2/careplan.html.

Installation

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

# to initialize default data
INITIALIZE=true meteor

Example

If you are going to use the CarePlanDesignerPage, you will need to set the following keys in your Meteor.settings file.

{
  "public": {
    "modules": {
      "fhir": {
        "CarePlans": {
            "displayGoalsCard": true,
            "displayMedicationsCard": true,
            "displayActivitiesCard": true,
            "displayQuestionnairesCard": true
          }
      }
    }
  }
}

Example

1var newCarePlan = {
2  resourceType: "CarePlan",
3  identifier: [],
4  subject: {
5    display: "Jane Doe",
6    reference: "Patients/p3wQgM6YeWq8DZCkg"
7  },
8  status: "active",
9  context: {
10    display: "2016-09-20",
11    reference: "Encounters/6zfKfRpMWmfXo69e5"
12  },
13  period: {
14    start: new Date(2016, 09, 20),
15    end: new Date(2016, 09, 21)
16  },
17  author: {
18    display: "System",
19    reference: "Meteor.users/System"
20  },
21  description: "Daily exercise plan",
22  addresses: {
23    display: "Overweight",
24    reference: "Conditions/CGZMzf92YzNNy9QXg"
25  },
26  relatedPlan: [{
27    code: 'fullfills',
28    plan: {
29      display: "Daily Exercise Template",
30      reference: "CarePlans/Ezmogee2PZ2ShhYu5"
31    }
32  }],
33  participant: [{
34    role: {
35      text: "Primary Care Physician"
36    },
37    member: {
38      display: "Dr. Gregory House",
39      reference: "Practitioners/rY4Yxup43mNm5PTPB"
40    }
41  }],
42  goal: [{
43    display: "10,000 Steps per Day",
44    reference: "Goals/5swyrDw6ajMfYD2qA"    
45  }],
46  activity: [{
47    actionResulting: [],
48    progress: [],
49    reference: [],
50    detail: {
51      category: {
52        text: 'diet'
53      },
54      reasonCode: [],
55      reasonReference: [],
56      goal: [],
57      status: "in-progress",
58      statusReason: {},
59      prohibited: false,
60      scheduledPeriod: {
61        start: new Date(2016, 09, 20),
62        end: new Date(2016, 09, 21)
63      },
64      location: {},
65      performer: {
66        display: "Jane Doe",
67        reference: "Patients/p3wQgM6YeWq8DZCkg"
68      },
69      productReference: {
70        display: "Water",
71        reference: "Medications/3NxeHc7RcTiSvncFy"
72      },
73      dailyAmount: {
74        value: 250,
75        comparator: ">",
76        unit: "ml",
77        system: "http://unitsofmeasure.org"
78      }
79      quantity: {},
80      description: "Keep hydrated as you exercise."
81    }
82  }]
83
84
85}
86CarePlans.insert(newCarePlan);

Extending the Schema

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

Utilities

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

References

The following may be useful for determining Goals and Activities.
[https://loinc.org/sdh/](LOINC - Social Determinants of Health)


Acknowledgements

Many thanks to DxRx Medical, the HL7 Argonaut Project, Clinicians on FHIR, UPenn Medical, and Parkland Center for Care Innovation for helping sponsor this package.