canvas 0.2.5__py3-none-any.whl → 0.2.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of canvas might be problematic. Click here for more details.

Files changed (86) hide show
  1. {canvas-0.2.5.dist-info → canvas-0.2.11.dist-info}/METADATA +4 -1
  2. canvas-0.2.11.dist-info/RECORD +144 -0
  3. canvas_cli/apps/plugin/plugin.py +51 -9
  4. canvas_cli/apps/plugin/tests.py +51 -0
  5. canvas_cli/tests.py +193 -4
  6. canvas_cli/utils/validators/manifest_schema.py +1 -0
  7. canvas_generated/messages/effects_pb2.py +2 -2
  8. canvas_generated/messages/effects_pb2.pyi +136 -0
  9. canvas_generated/messages/events_pb2.py +3 -3
  10. canvas_generated/messages/events_pb2.pyi +614 -0
  11. canvas_sdk/__init__.py +7 -0
  12. canvas_sdk/base.py +6 -2
  13. canvas_sdk/commands/__init__.py +26 -0
  14. canvas_sdk/commands/base.py +35 -32
  15. canvas_sdk/commands/commands/allergy.py +49 -0
  16. canvas_sdk/commands/commands/assess.py +1 -1
  17. canvas_sdk/commands/commands/close_goal.py +22 -0
  18. canvas_sdk/commands/commands/diagnose.py +3 -3
  19. canvas_sdk/commands/commands/family_history.py +18 -0
  20. canvas_sdk/commands/commands/goal.py +3 -3
  21. canvas_sdk/commands/commands/history_present_illness.py +1 -1
  22. canvas_sdk/commands/commands/instruct.py +17 -0
  23. canvas_sdk/commands/commands/lab_order.py +33 -0
  24. canvas_sdk/commands/commands/medical_history.py +34 -0
  25. canvas_sdk/commands/commands/medication_statement.py +1 -1
  26. canvas_sdk/commands/commands/past_surgical_history.py +28 -0
  27. canvas_sdk/commands/commands/perform.py +17 -0
  28. canvas_sdk/commands/commands/plan.py +2 -2
  29. canvas_sdk/commands/commands/prescribe.py +10 -7
  30. canvas_sdk/commands/commands/questionnaire.py +1 -1
  31. canvas_sdk/commands/commands/refill.py +16 -0
  32. canvas_sdk/commands/commands/remove_allergy.py +26 -0
  33. canvas_sdk/commands/commands/stop_medication.py +1 -1
  34. canvas_sdk/commands/commands/task.py +52 -0
  35. canvas_sdk/commands/commands/update_diagnosis.py +27 -0
  36. canvas_sdk/commands/commands/update_goal.py +1 -1
  37. canvas_sdk/commands/commands/vitals.py +78 -0
  38. canvas_sdk/commands/constants.py +7 -0
  39. canvas_sdk/commands/tests/protocol/__init__.py +0 -0
  40. canvas_sdk/commands/tests/protocol/tests.py +55 -0
  41. canvas_sdk/commands/tests/schema/__init__.py +0 -0
  42. canvas_sdk/commands/tests/schema/tests.py +104 -0
  43. canvas_sdk/commands/tests/test_utils.py +170 -6
  44. canvas_sdk/commands/tests/unit/__init__.py +0 -0
  45. canvas_sdk/commands/tests/{tests.py → unit/tests.py} +20 -194
  46. canvas_sdk/effects/banner_alert/add_banner_alert.py +8 -7
  47. canvas_sdk/effects/banner_alert/remove_banner_alert.py +3 -2
  48. canvas_sdk/effects/banner_alert/tests.py +224 -0
  49. canvas_sdk/effects/base.py +3 -5
  50. canvas_sdk/effects/patient_chart_summary_configuration.py +39 -0
  51. canvas_sdk/effects/protocol_card/__init__.py +1 -0
  52. canvas_sdk/effects/protocol_card/protocol_card.py +83 -0
  53. canvas_sdk/effects/protocol_card/tests.py +184 -0
  54. canvas_sdk/protocols/clinical_quality_measure.py +41 -0
  55. canvas_sdk/utils/db.py +17 -0
  56. canvas_sdk/v1/__init__.py +0 -0
  57. canvas_sdk/v1/data/__init__.py +3 -0
  58. canvas_sdk/v1/data/allergy_intolerance.py +63 -0
  59. canvas_sdk/v1/data/base.py +47 -0
  60. canvas_sdk/v1/data/condition.py +48 -0
  61. canvas_sdk/v1/data/lab.py +96 -0
  62. canvas_sdk/v1/data/medication.py +54 -0
  63. canvas_sdk/v1/data/patient.py +49 -0
  64. canvas_sdk/v1/data/user.py +10 -0
  65. canvas_sdk/value_set/tests/test_value_sets.py +65 -0
  66. canvas_sdk/value_set/v2022/adverse_event.py +33 -0
  67. canvas_sdk/value_set/v2022/allergy.py +232 -0
  68. canvas_sdk/value_set/v2022/assessment.py +215 -0
  69. canvas_sdk/value_set/v2022/communication.py +325 -0
  70. canvas_sdk/value_set/v2022/condition.py +40654 -0
  71. canvas_sdk/value_set/v2022/device.py +174 -0
  72. canvas_sdk/value_set/v2022/diagnostic_study.py +4967 -0
  73. canvas_sdk/value_set/v2022/encounter.py +2564 -0
  74. canvas_sdk/value_set/v2022/immunization.py +341 -0
  75. canvas_sdk/value_set/v2022/individual_characteristic.py +307 -0
  76. canvas_sdk/value_set/v2022/intervention.py +1356 -0
  77. canvas_sdk/value_set/v2022/laboratory_test.py +1250 -0
  78. canvas_sdk/value_set/v2022/medication.py +5130 -0
  79. canvas_sdk/value_set/v2022/physical_exam.py +201 -0
  80. canvas_sdk/value_set/v2022/procedure.py +4037 -0
  81. canvas_sdk/value_set/v2022/symptom.py +176 -0
  82. canvas_sdk/value_set/value_set.py +91 -0
  83. settings.py +43 -0
  84. canvas-0.2.5.dist-info/RECORD +0 -91
  85. {canvas-0.2.5.dist-info → canvas-0.2.11.dist-info}/WHEEL +0 -0
  86. {canvas-0.2.5.dist-info → canvas-0.2.11.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,174 @@
1
+ from ..value_set import ValueSet
2
+
3
+
4
+ class FrailtyDevice(ValueSet):
5
+ """
6
+ **Clinical Focus:** The purpose of this value set is to represent concepts of devices for durable medical equipment (DME) used by frail patients.
7
+
8
+ **Data Element Scope:** This value set may use a model element related to Device.
9
+
10
+ **Inclusion Criteria:** Includes concepts that represent durable medical equipment (DME) or devices for frailty.
11
+
12
+ **Exclusion Criteria:** No exclusions.
13
+
14
+ ** Used in:** CMS134v10, CMS165v10, CMS131v10, CMS122v10, CMS125v10, CMS130v10
15
+ """
16
+
17
+ VALUE_SET_NAME = "Frailty Device"
18
+ OID = "2.16.840.1.113883.3.464.1003.118.12.1300"
19
+ DEFINITION_VERSION = "20200310"
20
+ EXPANSION_VERSION = "eCQM Update 2021-05-06"
21
+
22
+ SNOMEDCT = {
23
+ "23366006", # Motorized wheelchair device (physical object)
24
+ "23562009", # Household ventilator, device (physical object)
25
+ "37874008", # Continuing positive airway pressure unit, device (physical object)
26
+ "58938008", # Wheelchair device (physical object)
27
+ "66435007", # Electric bed, device (physical object)
28
+ "71545009", # Household humidifier, device (physical object)
29
+ "87405001", # Cane, device (physical object)
30
+ "183240000", # Self-propelled wheelchair (physical object)
31
+ "183241001", # Pedal powered wheelchair (physical object)
32
+ "183248007", # Attendant powered wheelchair (physical object)
33
+ "228869008", # Manual wheelchair (physical object)
34
+ "261323006", # Portable oxygen cylinder (physical object)
35
+ "262177002", # Static oxygen cylinder (physical object)
36
+ "360006004", # Walking stick (physical object)
37
+ "360008003", # Commode (physical object)
38
+ "360299009", # Long cane (physical object)
39
+ "371786002", # Pressure support ventilator (physical object)
40
+ "391685000", # Oxygen gas cylinder DD (physical object)
41
+ "391686004", # Oxygen gas cylinder HD (physical object)
42
+ "391687008", # Oxygen gas cylinder RD (physical object)
43
+ "391688003", # Oxygen gas cylinder DF (physical object)
44
+ "391689006", # Oxygen gas cylinder HX (physical object)
45
+ "391880008", # Oxygen gas cylinder F (physical object)
46
+ "391881007", # Oxygen gas cylinder AF (physical object)
47
+ "401953003", # Oxygen composite cylinder with integral headset 1360 liters (physical object)
48
+ "401954009", # Oxygen cylinder 1360 liters (physical object)
49
+ "401955005", # Oxygen cylinder 300 liters (physical object)
50
+ "426160001", # Oxygen ventilator (physical object)
51
+ "462987000", # Patient/medical device walker (physical object)
52
+ "463093001", # Patient/medical device walker, home-use (physical object)
53
+ "464002006", # Portable ventilator, electric (physical object)
54
+ "464157006", # Multiple-base walking stick (physical object)
55
+ "464405003", # Multi-terrain sports wheelchair, attendant/occupant-driven (physical object)
56
+ "464443000", # Stand-up wheelchair (physical object)
57
+ "464571009", # Multi-terrain sports wheelchair, electric-motor-driven (physical object)
58
+ "464752005", # Multi-terrain sports wheelchair, occupant-driven (physical object)
59
+ "465159000", # Stair-climbing wheelchair (physical object)
60
+ "465556004", # Single-base walking stick (physical object)
61
+ "465565006", # Transport wheelchair, collapsible (physical object)
62
+ "465921009", # Ventilation rocking bed (physical object)
63
+ "466182009", # Wheelchair, occupant-driven, front-wheels-operated, non-collapsible (physical object)
64
+ "466193006", # Wheelchair, power-assisted, occupant-controlled, non-collapsible (physical object)
65
+ "466213002", # Wheelchair, electric-motor-driven, occupant-controlled, manual-steering, collapsible (physical object)
66
+ "466229005", # Wheelchair, occupant-driven, bimanual-lever-operated, non-collapsible (physical object)
67
+ "466284002", # Wheelchair, attendant/occupant-driven, bimanual-lever-operated, collapsible (physical object)
68
+ "466316007", # Wheelchair, combustion-engine-driven, non-collapsible (physical object)
69
+ "466317003", # Basic walker, foldable (physical object)
70
+ "466322003", # Wheelchair, power-assisted, attendant/occupant-controlled, non-collapsible (physical object)
71
+ "466331003", # Wheelchair, attendant/occupant-driven, single-rear-wheel-operated, non-collapsible (physical object)
72
+ "466337004", # Wheelchair, attendant/occupant-driven, foot-operated, non-collapsible (physical object)
73
+ "466340004", # Wheelchair, occupant-driven, bimanual-lever-operated, collapsible (physical object)
74
+ "466344008", # Wheelchair, electric-motor-driven, occupant-controlled, powered-steering, non-collapsible (physical object)
75
+ "466351004", # Walking chair, foldable (physical object)
76
+ "466364003", # Wheelchair, attendant/occupant-driven, rear-wheels-operated, collapsible (physical object)
77
+ "466365002", # Wheelchair, electric-motor-driven, attendant/occupant-controlled, manual-steering, collapsible (physical object)
78
+ "466366001", # Wheelchair, attendant/occupant-driven, single-lever-operated, non-collapsible (physical object)
79
+ "466378002", # Wheelchair, electric-motor-driven, occupant-controlled, powered-steering, collapsible (physical object)
80
+ "466381007", # Wheelchair, attendant-driven, non-collapsible (physical object)
81
+ "466407009", # Walking stick/seat (physical object)
82
+ "466464004", # Basic walker, non-foldable (physical object)
83
+ "466466002", # Wheelchair, occupant-driven, foot-operated, collapsible (physical object)
84
+ "466473007", # Wheelchair, electric-motor-driven, attendant-controlled, manual-steering, collapsible (physical object)
85
+ "466477008", # Wheelchair, electric-motor-driven, occupant-controlled, manual-steering, non-collapsible (physical object)
86
+ "466486003", # Wheelchair, attendant/occupant-driven, bimanual-lever-operated, non-collapsible (physical object)
87
+ "466494005", # Wheelchair, power-assisted, attendant-controlled, collapsible (physical object)
88
+ "466524001", # Wheelchair, attendant-driven, collapsible (physical object)
89
+ "466533004", # Wheelchair, attendant/occupant-driven, foot-operated, collapsible (physical object)
90
+ "466538008", # Room humidifier (physical object)
91
+ "466550002", # Wheelchair, attendant/occupant-driven, rear-wheels-operated, non-collapsible (physical object)
92
+ "466553000", # Wheelchair, occupant-driven, single-lever-operated, collapsible (physical object)
93
+ "466576002", # Wheelchair, occupant-driven, bimanual-chain-operated, collapsible (physical object)
94
+ "466607002", # Wheelchair, attendant/occupant-driven, single-lever-operated, collapsible (physical object)
95
+ "466616003", # Wheelchair, attendant/occupant-driven, single-rear-wheel-operated, collapsible (physical object)
96
+ "466619005", # Wheelchair, attendant/occupant-driven, bimanual-chain-operated, non-collapsible (physical object)
97
+ "466644002", # Wheelchair, occupant-driven, bimanual-chain-operated, non-collapsible (physical object)
98
+ "466671002", # Wheelchair, combustion-engine-driven, collapsible (physical object)
99
+ "466695000", # Wheelchair, attendant/occupant-driven, single-front-wheel-operated, collapsible (physical object)
100
+ "466699006", # Wheelchair, power-assisted, attendant/occupant-controlled, collapsible (physical object)
101
+ "466721007", # Wheelchair, power-assisted, attendant-controlled, non-collapsible (physical object)
102
+ "466739003", # Wheelchair, occupant-driven, front-wheels-operated, collapsible (physical object)
103
+ "466758007", # Wheelchair, electric-motor-driven, attendant-controlled, manual-steering, non-collapsible (physical object)
104
+ "466786004", # Basic electric hospital bed (physical object)
105
+ "466809001", # Wheelchair, attendant/occupant-driven, bimanual-chain-operated, collapsible (physical object)
106
+ "466813008", # Wheelchair, electric-motor-driven, attendant-controlled, powered-steering, non-collapsible (physical object)
107
+ "466851008", # Wheelchair, attendant/occupant-driven, front-wheels-operated, collapsible (physical object)
108
+ "466871004", # Wheelchair, electric-motor-driven, attendant/occupant-controlled, powered-steering, non-collapsible (physical object)
109
+ "466889003", # Wheelchair, attendant/occupant-driven, single-front-wheel-operated, non-collapsible (physical object)
110
+ "466926008", # Wheelchair, occupant-driven, rear-wheels-operated, collapsible (physical object)
111
+ "466927004", # Wheelchair, electric-motor-driven, attendant/occupant-controlled, powered-steering, collapsible (physical object)
112
+ "466938004", # Wheelchair, occupant-driven, single-rear-wheel-operated, collapsible (physical object)
113
+ "466947007", # Wheelchair, occupant-driven, rear-wheels-operated, non-collapsible (physical object)
114
+ "466966007", # Wheelchair, occupant-driven, foot-operated, non-collapsible (physical object)
115
+ "466986006", # Walking table (physical object)
116
+ "466989004", # Wheelchair, attendant/occupant-driven, front-wheels-operated, non-collapsible (physical object)
117
+ "466999009", # Wheelchair, electric-motor-driven, attendant-controlled, powered-steering, collapsible (physical object)
118
+ "467018005", # Wheelchair, occupant-driven, single-lever-operated, non-collapsible (physical object)
119
+ "467065004", # Wheelchair, occupant-driven, single-front-wheel-operated, collapsible (physical object)
120
+ "467077009", # Wheelchair, electric-motor-driven, attendant/occupant-controlled, manual-steering, non-collapsible (physical object)
121
+ "467095007", # Wheelchair, power-assisted, occupant-controlled, collapsible (physical object)
122
+ "467137003", # Wheelchair, occupant-driven, single-rear-wheel-operated, non-collapsible (physical object)
123
+ "467155007", # Walking chair, non-foldable (physical object)
124
+ "467163008", # Wheelchair, occupant-driven, single-front-wheel-operated, non-collapsible (physical object)
125
+ "469361005", # Heat/moisture exchanger, reusable (physical object)
126
+ "469860004", # All-plastic conventional wheelchair (physical object)
127
+ "470119002", # Heat/moisture exchanger, single-use (physical object)
128
+ "470174002", # Heat/moisture exchanger insertable filter (physical object)
129
+ "700593005", # Heated respiratory humidifier (physical object)
130
+ "700705005", # Non-heated respiratory humidifier (physical object)
131
+ "700910000", # Ultrasonic respiratory humidifier (physical object)
132
+ "702172008", # Home continuous positive airway pressure unit (physical object)
133
+ "702173003", # Home bilevel positive airway pressure unit (physical object)
134
+ "705404007", # Walker/Walking frame (physical object)
135
+ "705406009", # Walker (physical object)
136
+ "705419008", # Special-function wheelchair (physical object)
137
+ "705421003", # Sports wheelchair (physical object)
138
+ "705422005", # Power-driven wheelchair (physical object)
139
+ "705423000", # Electric-motor-driven wheelchair (physical object)
140
+ "705425007", # Attendant/occupant-controlled electric-motor-driven wheelchair (physical object)
141
+ "705426008", # Attendant-controlled electric-motor-driven wheelchair (physical object)
142
+ "705427004", # Power-assisted wheelchair (physical object)
143
+ "705428009", # Manual-driven wheelchair (physical object)
144
+ "706180003", # Respiratory humidifier (physical object)
145
+ "714700001", # Bilevel positive airway pressure unit hand held (physical object)
146
+ "781471009", # Gait rehabilitation electronic walker (physical object)
147
+ }
148
+
149
+
150
+ class CardiacPacer(ValueSet):
151
+ """
152
+ **Clinical Focus:** The purpose of this value set is to represent concepts for a cardiac pacer device.
153
+
154
+ **Data Element Scope:** This value set may use a model element related to Device.
155
+
156
+ **Inclusion Criteria:** Includes concepts that represent a device that is a cardiac pacer.
157
+
158
+ **Exclusion Criteria:** No exclusions.
159
+
160
+ ** Used in:** CMS144v10, CMS145v10
161
+ """
162
+
163
+ VALUE_SET_NAME = "Cardiac Pacer"
164
+ OID = "2.16.840.1.113883.3.526.3.1193"
165
+ DEFINITION_VERSION = "20170504"
166
+ EXPANSION_VERSION = "eCQM Update 2021-05-06"
167
+
168
+ SNOMEDCT = {
169
+ "14106009", # Cardiac pacemaker, device (physical object)
170
+ "56961003", # Cardiac transvenous pacemaker, device (physical object)
171
+ "360127006", # Intravenous cardiac pacemaker system (physical object)
172
+ "360128001", # Intravenous triggered cardiac pacemaker system (physical object)
173
+ "424921004", # Permanent cardiac pacemaker, device (physical object)
174
+ }