canvas 0.2.5__py3-none-any.whl → 0.2.10__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.
- {canvas-0.2.5.dist-info → canvas-0.2.10.dist-info}/METADATA +4 -1
- canvas-0.2.10.dist-info/RECORD +143 -0
- canvas_cli/apps/plugin/plugin.py +51 -9
- canvas_cli/apps/plugin/tests.py +51 -0
- canvas_cli/tests.py +193 -4
- canvas_cli/utils/validators/manifest_schema.py +1 -0
- canvas_generated/messages/effects_pb2.py +2 -2
- canvas_generated/messages/effects_pb2.pyi +136 -0
- canvas_generated/messages/events_pb2.py +3 -3
- canvas_generated/messages/events_pb2.pyi +614 -0
- canvas_sdk/__init__.py +7 -0
- canvas_sdk/base.py +6 -2
- canvas_sdk/commands/__init__.py +26 -0
- canvas_sdk/commands/base.py +35 -32
- canvas_sdk/commands/commands/allergy.py +49 -0
- canvas_sdk/commands/commands/assess.py +1 -1
- canvas_sdk/commands/commands/close_goal.py +22 -0
- canvas_sdk/commands/commands/diagnose.py +3 -3
- canvas_sdk/commands/commands/family_history.py +18 -0
- canvas_sdk/commands/commands/goal.py +3 -3
- canvas_sdk/commands/commands/history_present_illness.py +1 -1
- canvas_sdk/commands/commands/instruct.py +17 -0
- canvas_sdk/commands/commands/lab_order.py +33 -0
- canvas_sdk/commands/commands/medical_history.py +34 -0
- canvas_sdk/commands/commands/medication_statement.py +1 -1
- canvas_sdk/commands/commands/past_surgical_history.py +28 -0
- canvas_sdk/commands/commands/perform.py +17 -0
- canvas_sdk/commands/commands/plan.py +2 -2
- canvas_sdk/commands/commands/prescribe.py +10 -7
- canvas_sdk/commands/commands/questionnaire.py +1 -1
- canvas_sdk/commands/commands/refill.py +16 -0
- canvas_sdk/commands/commands/remove_allergy.py +26 -0
- canvas_sdk/commands/commands/stop_medication.py +1 -1
- canvas_sdk/commands/commands/task.py +52 -0
- canvas_sdk/commands/commands/update_diagnosis.py +27 -0
- canvas_sdk/commands/commands/update_goal.py +1 -1
- canvas_sdk/commands/commands/vitals.py +78 -0
- canvas_sdk/commands/constants.py +7 -0
- canvas_sdk/commands/tests/protocol/__init__.py +0 -0
- canvas_sdk/commands/tests/protocol/tests.py +55 -0
- canvas_sdk/commands/tests/schema/__init__.py +0 -0
- canvas_sdk/commands/tests/schema/tests.py +104 -0
- canvas_sdk/commands/tests/test_utils.py +170 -6
- canvas_sdk/commands/tests/unit/__init__.py +0 -0
- canvas_sdk/commands/tests/{tests.py → unit/tests.py} +20 -194
- canvas_sdk/effects/banner_alert/add_banner_alert.py +8 -7
- canvas_sdk/effects/banner_alert/remove_banner_alert.py +3 -2
- canvas_sdk/effects/banner_alert/tests.py +224 -0
- canvas_sdk/effects/base.py +3 -5
- canvas_sdk/effects/patient_chart_summary_configuration.py +39 -0
- canvas_sdk/effects/protocol_card/__init__.py +1 -0
- canvas_sdk/effects/protocol_card/protocol_card.py +83 -0
- canvas_sdk/effects/protocol_card/tests.py +184 -0
- canvas_sdk/protocols/clinical_quality_measure.py +41 -0
- canvas_sdk/utils/db.py +17 -0
- canvas_sdk/v1/__init__.py +0 -0
- canvas_sdk/v1/data/__init__.py +3 -0
- canvas_sdk/v1/data/allergy_intolerance.py +63 -0
- canvas_sdk/v1/data/base.py +47 -0
- canvas_sdk/v1/data/condition.py +48 -0
- canvas_sdk/v1/data/lab.py +96 -0
- canvas_sdk/v1/data/medication.py +54 -0
- canvas_sdk/v1/data/patient.py +49 -0
- canvas_sdk/v1/data/user.py +10 -0
- canvas_sdk/value_set/tests/test_value_sets.py +65 -0
- canvas_sdk/value_set/v2022/adverse_event.py +33 -0
- canvas_sdk/value_set/v2022/allergy.py +232 -0
- canvas_sdk/value_set/v2022/assessment.py +215 -0
- canvas_sdk/value_set/v2022/communication.py +325 -0
- canvas_sdk/value_set/v2022/condition.py +40654 -0
- canvas_sdk/value_set/v2022/device.py +174 -0
- canvas_sdk/value_set/v2022/diagnostic_study.py +4967 -0
- canvas_sdk/value_set/v2022/encounter.py +2564 -0
- canvas_sdk/value_set/v2022/immunization.py +341 -0
- canvas_sdk/value_set/v2022/individual_characteristic.py +307 -0
- canvas_sdk/value_set/v2022/intervention.py +1356 -0
- canvas_sdk/value_set/v2022/laboratory_test.py +1250 -0
- canvas_sdk/value_set/v2022/medication.py +5130 -0
- canvas_sdk/value_set/v2022/physical_exam.py +201 -0
- canvas_sdk/value_set/v2022/procedure.py +4037 -0
- canvas_sdk/value_set/v2022/symptom.py +176 -0
- canvas_sdk/value_set/value_set.py +91 -0
- canvas-0.2.5.dist-info/RECORD +0 -91
- {canvas-0.2.5.dist-info → canvas-0.2.10.dist-info}/WHEEL +0 -0
- {canvas-0.2.5.dist-info → canvas-0.2.10.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
from ..value_set import ValueSet
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RetinalOrDilatedEyeExam(ValueSet):
|
|
5
|
+
"""
|
|
6
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts for a physical exam where a retinal or dilated eye exam was performed.
|
|
7
|
+
|
|
8
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
9
|
+
|
|
10
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam during which a retinal or dilated eye exam occurred.
|
|
11
|
+
|
|
12
|
+
**Exclusion Criteria:** No exclusions.
|
|
13
|
+
|
|
14
|
+
** Used in:** CMS131v10
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
VALUE_SET_NAME = "Retinal or Dilated Eye Exam"
|
|
18
|
+
OID = "2.16.840.1.113883.3.464.1003.115.12.1088"
|
|
19
|
+
DEFINITION_VERSION = "20170504"
|
|
20
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
21
|
+
|
|
22
|
+
SNOMEDCT = {
|
|
23
|
+
"6615001", # Electroretinography (procedure)
|
|
24
|
+
"252779009", # Single bright white flash electroretinography (procedure)
|
|
25
|
+
"252780007", # Dark adapted single bright flash electroretinography (procedure)
|
|
26
|
+
"252781006", # Pre-dark-adapted single bright flash electroretinography (procedure)
|
|
27
|
+
"252782004", # Photopic electroretinography (procedure)
|
|
28
|
+
"252783009", # Scotopic rod electroretinography (procedure)
|
|
29
|
+
"252784003", # Flicker electroretinography (procedure)
|
|
30
|
+
"252788000", # Chromatic electroretinography (procedure)
|
|
31
|
+
"252789008", # Early receptor potential electroretinography (procedure)
|
|
32
|
+
"252790004", # Focal electroretinography (procedure)
|
|
33
|
+
"274795007", # Examination of optic disc (procedure)
|
|
34
|
+
"274798009", # Examination of retina (procedure)
|
|
35
|
+
"308110009", # Direct fundoscopy following mydriatic (procedure)
|
|
36
|
+
"314971001", # Camera fundoscopy (procedure)
|
|
37
|
+
"314972008", # Indirect fundoscopy following mydriatic (procedure)
|
|
38
|
+
"410451008", # Indirect ophthalmoscopy (procedure)
|
|
39
|
+
"410452001", # Monocular indirect ophthalmoscopy (procedure)
|
|
40
|
+
"410453006", # Binocular indirect ophthalmoscopy (procedure)
|
|
41
|
+
"410455004", # Slit lamp fundus examination (procedure)
|
|
42
|
+
"420213007", # Multifocal electroretinography (procedure)
|
|
43
|
+
"425816006", # Ultrasonic evaluation of retina (procedure)
|
|
44
|
+
"427478009", # Evaluation of retina (procedure)
|
|
45
|
+
"722161008", # Diabetic retinal eye exam (procedure)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class BestCorrectedVisualAcuityExamUsingSnellenChart(ValueSet):
|
|
50
|
+
"""
|
|
51
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts of a physical exam for visual acuity exams using a Snellen chart.
|
|
52
|
+
|
|
53
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
54
|
+
|
|
55
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam for visual acuity using a Snellen chart.
|
|
56
|
+
|
|
57
|
+
**Exclusion Criteria:** No exclusions.
|
|
58
|
+
|
|
59
|
+
** Used in:** CMS133v10
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
VALUE_SET_NAME = "Best Corrected Visual Acuity Exam Using Snellen Chart"
|
|
63
|
+
OID = "2.16.840.1.113883.3.526.3.1560"
|
|
64
|
+
DEFINITION_VERSION = "20210210"
|
|
65
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
66
|
+
|
|
67
|
+
LOINC = {
|
|
68
|
+
"79880-1", # Visual acuity best corrected Right eye by Snellen eye chart
|
|
69
|
+
"79881-9", # Visual acuity best corrected Left eye by Snellen eye chart
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class HeartRate(ValueSet):
|
|
74
|
+
"""
|
|
75
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts of a physical exam measuring heart rate.
|
|
76
|
+
|
|
77
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
78
|
+
|
|
79
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam for obtaining heart rate.
|
|
80
|
+
|
|
81
|
+
**Exclusion Criteria:** No exclusions.
|
|
82
|
+
|
|
83
|
+
** Used in:** CMS144v10, CMS145v10
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
VALUE_SET_NAME = "Heart Rate"
|
|
87
|
+
OID = "2.16.840.1.113883.3.526.3.1176"
|
|
88
|
+
DEFINITION_VERSION = "20170504"
|
|
89
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
90
|
+
|
|
91
|
+
LOINC = {
|
|
92
|
+
"68999-2", # Heart rate --supine
|
|
93
|
+
"69000-8", # Heart rate --sitting
|
|
94
|
+
"69001-6", # Heart rate --standing
|
|
95
|
+
"8867-4", # Heart rate
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class BmiPercentile(ValueSet):
|
|
100
|
+
"""
|
|
101
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts for a physical exam where a body mass index (BMI) percentile is calculated.
|
|
102
|
+
|
|
103
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
104
|
+
|
|
105
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam with a BMI percentile measurement.
|
|
106
|
+
|
|
107
|
+
**Exclusion Criteria:** No exclusions.
|
|
108
|
+
|
|
109
|
+
** Used in:** CMS155v10
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
VALUE_SET_NAME = "BMI percentile"
|
|
113
|
+
OID = "2.16.840.1.113883.3.464.1003.121.12.1012"
|
|
114
|
+
DEFINITION_VERSION = "20170504"
|
|
115
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
116
|
+
|
|
117
|
+
LOINC = {
|
|
118
|
+
"59574-4", # Body mass index (BMI) [Percentile]
|
|
119
|
+
"59575-1", # Body mass index (BMI) [Percentile] Per age
|
|
120
|
+
"59576-9", # Body mass index (BMI) [Percentile] Per age and sex
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class Height(ValueSet):
|
|
125
|
+
"""
|
|
126
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts for a physical exam with measured height.
|
|
127
|
+
|
|
128
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
129
|
+
|
|
130
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam with a patient height measurement.
|
|
131
|
+
|
|
132
|
+
**Exclusion Criteria:** Excludes concepts that represent patient reported height, a percentile for height or an estimated height.
|
|
133
|
+
|
|
134
|
+
** Used in:** CMS155v10
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
VALUE_SET_NAME = "Height"
|
|
138
|
+
OID = "2.16.840.1.113883.3.464.1003.121.12.1014"
|
|
139
|
+
DEFINITION_VERSION = "20170504"
|
|
140
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
141
|
+
|
|
142
|
+
LOINC = {
|
|
143
|
+
"3137-7", # Body height Measured
|
|
144
|
+
"8302-2", # Body height
|
|
145
|
+
"8306-3", # Body height --lying
|
|
146
|
+
"8307-1", # Body height --preoperative
|
|
147
|
+
"8308-9", # Body height --standing
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class Weight(ValueSet):
|
|
152
|
+
"""
|
|
153
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts for a physical exam with measured weight.
|
|
154
|
+
|
|
155
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
156
|
+
|
|
157
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam with a patient weight measurement.
|
|
158
|
+
|
|
159
|
+
**Exclusion Criteria:** Excludes concepts that represent an ideal body weight, estimated body weight or a body fat measurement.
|
|
160
|
+
|
|
161
|
+
** Used in:** CMS155v10
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
VALUE_SET_NAME = "Weight"
|
|
165
|
+
OID = "2.16.840.1.113883.3.464.1003.121.12.1015"
|
|
166
|
+
DEFINITION_VERSION = "20170504"
|
|
167
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
168
|
+
|
|
169
|
+
LOINC = {
|
|
170
|
+
"18833-4", # First Body weight
|
|
171
|
+
"29463-7", # Body weight
|
|
172
|
+
"3141-9", # Body weight Measured
|
|
173
|
+
"3142-7", # Body weight Stated
|
|
174
|
+
"8341-0", # Dry body weight Measured
|
|
175
|
+
"8349-3", # Body weight Measured --preoperative
|
|
176
|
+
"8350-1", # Body weight Measured --with clothes
|
|
177
|
+
"8351-9", # Body weight Measured --without clothes
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class BmiRatio(ValueSet):
|
|
182
|
+
"""
|
|
183
|
+
**Clinical Focus:** The purpose of this value set is to represent concepts for a physical exam where a body mass index (BMI) ratio is calculated.
|
|
184
|
+
|
|
185
|
+
**Data Element Scope:** This value set may use a model element related to Physical Exam.
|
|
186
|
+
|
|
187
|
+
**Inclusion Criteria:** Includes concepts that represent a physical exam with a body mass index (BMI) ratio measurement.
|
|
188
|
+
|
|
189
|
+
**Exclusion Criteria:** No exclusions.
|
|
190
|
+
|
|
191
|
+
** Used in:** CMS249v4
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
VALUE_SET_NAME = "BMI Ratio"
|
|
195
|
+
OID = "2.16.840.1.113883.3.600.1.1490"
|
|
196
|
+
DEFINITION_VERSION = "20140502"
|
|
197
|
+
EXPANSION_VERSION = "eCQM Update 2021-05-06"
|
|
198
|
+
|
|
199
|
+
LOINC = {
|
|
200
|
+
"39156-5", # Body mass index (BMI) [Ratio]
|
|
201
|
+
}
|