canvas 0.63.0__py3-none-any.whl → 0.89.0__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.
Files changed (185) hide show
  1. {canvas-0.63.0.dist-info → canvas-0.89.0.dist-info}/METADATA +4 -1
  2. {canvas-0.63.0.dist-info → canvas-0.89.0.dist-info}/RECORD +184 -98
  3. {canvas-0.63.0.dist-info → canvas-0.89.0.dist-info}/WHEEL +1 -1
  4. canvas_cli/apps/emit/event_fixtures/UNKNOWN.ndjson +1 -0
  5. canvas_cli/apps/logs/logs.py +386 -22
  6. canvas_cli/main.py +3 -1
  7. canvas_cli/templates/plugins/default/{{ cookiecutter.__project_slug }}/tests/test_models.py +46 -4
  8. canvas_cli/utils/context/context.py +13 -13
  9. canvas_cli/utils/validators/manifest_schema.py +26 -1
  10. canvas_generated/messages/effects_pb2.py +5 -5
  11. canvas_generated/messages/effects_pb2.pyi +108 -2
  12. canvas_generated/messages/events_pb2.py +6 -6
  13. canvas_generated/messages/events_pb2.pyi +282 -2
  14. canvas_sdk/clients/__init__.py +1 -0
  15. canvas_sdk/clients/llms/__init__.py +17 -0
  16. canvas_sdk/clients/llms/libraries/__init__.py +11 -0
  17. canvas_sdk/clients/llms/libraries/llm_anthropic.py +87 -0
  18. canvas_sdk/clients/llms/libraries/llm_api.py +143 -0
  19. canvas_sdk/clients/llms/libraries/llm_google.py +92 -0
  20. canvas_sdk/clients/llms/libraries/llm_openai.py +98 -0
  21. canvas_sdk/clients/llms/structures/__init__.py +9 -0
  22. canvas_sdk/clients/llms/structures/llm_response.py +33 -0
  23. canvas_sdk/clients/llms/structures/llm_tokens.py +53 -0
  24. canvas_sdk/clients/llms/structures/llm_turn.py +47 -0
  25. canvas_sdk/clients/llms/structures/settings/__init__.py +13 -0
  26. canvas_sdk/clients/llms/structures/settings/llm_settings.py +27 -0
  27. canvas_sdk/clients/llms/structures/settings/llm_settings_anthropic.py +43 -0
  28. canvas_sdk/clients/llms/structures/settings/llm_settings_gemini.py +40 -0
  29. canvas_sdk/clients/llms/structures/settings/llm_settings_gpt4.py +40 -0
  30. canvas_sdk/clients/llms/structures/settings/llm_settings_gpt5.py +48 -0
  31. canvas_sdk/clients/third_party.py +3 -0
  32. canvas_sdk/commands/__init__.py +12 -0
  33. canvas_sdk/commands/base.py +33 -2
  34. canvas_sdk/commands/commands/adjust_prescription.py +4 -0
  35. canvas_sdk/commands/commands/custom_command.py +86 -0
  36. canvas_sdk/commands/commands/family_history.py +17 -1
  37. canvas_sdk/commands/commands/immunization_statement.py +42 -2
  38. canvas_sdk/commands/commands/medication_statement.py +16 -1
  39. canvas_sdk/commands/commands/past_surgical_history.py +16 -1
  40. canvas_sdk/commands/commands/perform.py +18 -1
  41. canvas_sdk/commands/commands/prescribe.py +8 -9
  42. canvas_sdk/commands/commands/refill.py +5 -5
  43. canvas_sdk/commands/commands/resolve_condition.py +5 -5
  44. canvas_sdk/commands/commands/review/__init__.py +3 -0
  45. canvas_sdk/commands/commands/review/base.py +72 -0
  46. canvas_sdk/commands/commands/review/imaging.py +13 -0
  47. canvas_sdk/commands/commands/review/lab.py +13 -0
  48. canvas_sdk/commands/commands/review/referral.py +13 -0
  49. canvas_sdk/commands/commands/review/uncategorized_document.py +13 -0
  50. canvas_sdk/commands/validation.py +43 -0
  51. canvas_sdk/effects/batch_originate.py +22 -0
  52. canvas_sdk/effects/calendar/__init__.py +13 -3
  53. canvas_sdk/effects/calendar/{create_calendar.py → calendar.py} +19 -5
  54. canvas_sdk/effects/calendar/event.py +172 -0
  55. canvas_sdk/effects/claim_label.py +93 -0
  56. canvas_sdk/effects/claim_line_item.py +47 -0
  57. canvas_sdk/effects/claim_queue.py +49 -0
  58. canvas_sdk/effects/fax/__init__.py +3 -0
  59. canvas_sdk/effects/fax/base.py +77 -0
  60. canvas_sdk/effects/fax/note.py +42 -0
  61. canvas_sdk/effects/metadata.py +15 -1
  62. canvas_sdk/effects/note/__init__.py +8 -1
  63. canvas_sdk/effects/note/appointment.py +135 -7
  64. canvas_sdk/effects/note/base.py +17 -0
  65. canvas_sdk/effects/note/message.py +22 -14
  66. canvas_sdk/effects/note/note.py +150 -1
  67. canvas_sdk/effects/observation/__init__.py +11 -0
  68. canvas_sdk/effects/observation/base.py +206 -0
  69. canvas_sdk/effects/patient/__init__.py +2 -0
  70. canvas_sdk/effects/patient/base.py +8 -0
  71. canvas_sdk/effects/payment/__init__.py +11 -0
  72. canvas_sdk/effects/payment/base.py +355 -0
  73. canvas_sdk/effects/payment/post_claim_payment.py +49 -0
  74. canvas_sdk/effects/send_contact_verification.py +42 -0
  75. canvas_sdk/effects/task/__init__.py +2 -1
  76. canvas_sdk/effects/task/task.py +30 -0
  77. canvas_sdk/effects/validation/__init__.py +3 -0
  78. canvas_sdk/effects/validation/base.py +92 -0
  79. canvas_sdk/events/base.py +15 -0
  80. canvas_sdk/handlers/application.py +7 -7
  81. canvas_sdk/handlers/simple_api/api.py +1 -4
  82. canvas_sdk/handlers/simple_api/websocket.py +1 -4
  83. canvas_sdk/handlers/utils.py +14 -0
  84. canvas_sdk/questionnaires/utils.py +1 -0
  85. canvas_sdk/templates/utils.py +17 -4
  86. canvas_sdk/test_utils/factories/FACTORY_GUIDE.md +362 -0
  87. canvas_sdk/test_utils/factories/__init__.py +115 -0
  88. canvas_sdk/test_utils/factories/calendar.py +24 -0
  89. canvas_sdk/test_utils/factories/claim.py +81 -0
  90. canvas_sdk/test_utils/factories/claim_diagnosis_code.py +16 -0
  91. canvas_sdk/test_utils/factories/coverage.py +17 -0
  92. canvas_sdk/test_utils/factories/imaging.py +74 -0
  93. canvas_sdk/test_utils/factories/lab.py +192 -0
  94. canvas_sdk/test_utils/factories/medication_history.py +75 -0
  95. canvas_sdk/test_utils/factories/note.py +52 -0
  96. canvas_sdk/test_utils/factories/organization.py +50 -0
  97. canvas_sdk/test_utils/factories/practicelocation.py +88 -0
  98. canvas_sdk/test_utils/factories/referral.py +81 -0
  99. canvas_sdk/test_utils/factories/staff.py +111 -0
  100. canvas_sdk/test_utils/factories/task.py +66 -0
  101. canvas_sdk/test_utils/factories/uncategorized_clinical_document.py +48 -0
  102. canvas_sdk/utils/metrics.py +4 -1
  103. canvas_sdk/v1/data/__init__.py +66 -7
  104. canvas_sdk/v1/data/allergy_intolerance.py +5 -11
  105. canvas_sdk/v1/data/appointment.py +18 -4
  106. canvas_sdk/v1/data/assessment.py +2 -12
  107. canvas_sdk/v1/data/banner_alert.py +2 -4
  108. canvas_sdk/v1/data/base.py +53 -14
  109. canvas_sdk/v1/data/billing.py +8 -11
  110. canvas_sdk/v1/data/calendar.py +64 -0
  111. canvas_sdk/v1/data/care_team.py +4 -10
  112. canvas_sdk/v1/data/claim.py +172 -66
  113. canvas_sdk/v1/data/claim_diagnosis_code.py +19 -0
  114. canvas_sdk/v1/data/claim_line_item.py +2 -5
  115. canvas_sdk/v1/data/coding.py +19 -0
  116. canvas_sdk/v1/data/command.py +2 -4
  117. canvas_sdk/v1/data/common.py +10 -0
  118. canvas_sdk/v1/data/compound_medication.py +3 -4
  119. canvas_sdk/v1/data/condition.py +4 -9
  120. canvas_sdk/v1/data/coverage.py +66 -26
  121. canvas_sdk/v1/data/detected_issue.py +20 -20
  122. canvas_sdk/v1/data/device.py +2 -14
  123. canvas_sdk/v1/data/discount.py +2 -5
  124. canvas_sdk/v1/data/encounter.py +44 -0
  125. canvas_sdk/v1/data/facility.py +1 -0
  126. canvas_sdk/v1/data/goal.py +2 -14
  127. canvas_sdk/v1/data/imaging.py +4 -30
  128. canvas_sdk/v1/data/immunization.py +7 -15
  129. canvas_sdk/v1/data/lab.py +12 -65
  130. canvas_sdk/v1/data/line_item_transaction.py +2 -5
  131. canvas_sdk/v1/data/medication.py +3 -8
  132. canvas_sdk/v1/data/medication_history.py +142 -0
  133. canvas_sdk/v1/data/medication_statement.py +41 -0
  134. canvas_sdk/v1/data/message.py +4 -8
  135. canvas_sdk/v1/data/note.py +37 -38
  136. canvas_sdk/v1/data/observation.py +9 -36
  137. canvas_sdk/v1/data/organization.py +70 -9
  138. canvas_sdk/v1/data/patient.py +8 -12
  139. canvas_sdk/v1/data/patient_consent.py +4 -14
  140. canvas_sdk/v1/data/payment_collection.py +2 -5
  141. canvas_sdk/v1/data/posting.py +3 -9
  142. canvas_sdk/v1/data/practicelocation.py +66 -7
  143. canvas_sdk/v1/data/protocol_override.py +3 -4
  144. canvas_sdk/v1/data/protocol_result.py +3 -3
  145. canvas_sdk/v1/data/questionnaire.py +10 -26
  146. canvas_sdk/v1/data/reason_for_visit.py +2 -6
  147. canvas_sdk/v1/data/referral.py +41 -17
  148. canvas_sdk/v1/data/staff.py +34 -26
  149. canvas_sdk/v1/data/stop_medication_event.py +27 -0
  150. canvas_sdk/v1/data/task.py +30 -11
  151. canvas_sdk/v1/data/team.py +2 -4
  152. canvas_sdk/v1/data/uncategorized_clinical_document.py +84 -0
  153. canvas_sdk/v1/data/user.py +14 -0
  154. canvas_sdk/v1/data/utils.py +5 -0
  155. canvas_sdk/value_set/v2026/__init__.py +1 -0
  156. canvas_sdk/value_set/v2026/adverse_event.py +157 -0
  157. canvas_sdk/value_set/v2026/allergy.py +116 -0
  158. canvas_sdk/value_set/v2026/assessment.py +466 -0
  159. canvas_sdk/value_set/v2026/communication.py +496 -0
  160. canvas_sdk/value_set/v2026/condition.py +52934 -0
  161. canvas_sdk/value_set/v2026/device.py +315 -0
  162. canvas_sdk/value_set/v2026/diagnostic_study.py +5243 -0
  163. canvas_sdk/value_set/v2026/encounter.py +2714 -0
  164. canvas_sdk/value_set/v2026/immunization.py +297 -0
  165. canvas_sdk/value_set/v2026/individual_characteristic.py +339 -0
  166. canvas_sdk/value_set/v2026/intervention.py +1703 -0
  167. canvas_sdk/value_set/v2026/laboratory_test.py +1831 -0
  168. canvas_sdk/value_set/v2026/medication.py +8218 -0
  169. canvas_sdk/value_set/v2026/no_qdm_category_assigned.py +26493 -0
  170. canvas_sdk/value_set/v2026/physical_exam.py +342 -0
  171. canvas_sdk/value_set/v2026/procedure.py +27869 -0
  172. canvas_sdk/value_set/v2026/symptom.py +625 -0
  173. logger/logger.py +30 -31
  174. logger/logstash.py +282 -0
  175. logger/pubsub.py +26 -0
  176. plugin_runner/allowed-module-imports.json +940 -9
  177. plugin_runner/generate_allowed_imports.py +1 -0
  178. plugin_runner/installation.py +2 -2
  179. plugin_runner/plugin_runner.py +21 -24
  180. plugin_runner/sandbox.py +34 -0
  181. protobufs/canvas_generated/messages/effects.proto +65 -0
  182. protobufs/canvas_generated/messages/events.proto +150 -51
  183. settings.py +27 -11
  184. canvas_sdk/effects/calendar/create_event.py +0 -43
  185. {canvas-0.63.0.dist-info → canvas-0.89.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,496 @@
1
+ from ..value_set import ValueSet
2
+
3
+
4
+ class DiabeticRetinopathySeverityLevel(ValueSet):
5
+ """
6
+ **Clinical Focus:** The purpose of this value set is to represent concepts for Diabetic Retinopathy Severity Level.
7
+
8
+ **Data Element Scope:** This value set may use a model element related to Diabetic Retinopathy Severity Level.
9
+
10
+ **Inclusion Criteria:** Includes concepts that represent severe, mild, moderate or no (non) proliferative retinopathy.
11
+
12
+ **Exclusion Criteria:** None
13
+
14
+ ** Used in:** CMS131v14
15
+ """
16
+
17
+ VALUE_SET_NAME = "Diabetic Retinopathy Severity Level"
18
+ OID = "2.16.840.1.113883.3.464.1003.1266"
19
+ DEFINITION_VERSION = "20250109"
20
+ EXPANSION_VERSION = "eCQM Update 2025-05-08"
21
+
22
+ LOINC = {
23
+ "LA18643-9", # No apparent retinopathy
24
+ "LA18644-7", # Mild non-proliferative retinopathy
25
+ "LA18645-4", # Moderate non-proliferative retinopathy
26
+ "LA18646-2", # Severe non-proliferative retinopathy
27
+ "LA18648-8", # Proliferative retinopathy
28
+ }
29
+
30
+
31
+ class AutonomousEyeExamResultOrFinding(ValueSet):
32
+ """
33
+ **Clinical Focus:** The purpose of this value set is to represent concepts for an Autonomous Eye Exam Result or Finding.
34
+
35
+ **Data Element Scope:** This value set was intended to identify patients who had a Autonomous Eye Exam Result or Finding.
36
+
37
+ **Inclusion Criteria:** Includes codes that identify an Autonomous Eye Exam Result or Findings.
38
+
39
+ **Exclusion Criteria:** Exclude order only codes and code that indicate narrative reports.
40
+
41
+ ** Used in:** CMS131v14
42
+ """
43
+
44
+ VALUE_SET_NAME = "Autonomous Eye Exam Result or Finding"
45
+ OID = "2.16.840.1.113883.3.464.1004.2616"
46
+ DEFINITION_VERSION = "20250130"
47
+ EXPANSION_VERSION = "eCQM Update 2025-05-08"
48
+
49
+ LOINC = {
50
+ "LA34398-0", # ETDRS Level 20 or lower, without macular edema
51
+ "LA34399-8", # ETDRS Level 35 or higher, with or without macular edema
52
+ }
53
+
54
+ class LevelOfSeverityOfRetinopathyFindings(ValueSet):
55
+ """
56
+ **Clinical Focus:** The purpose of this value set is to represent concepts for diagnoses of the level of severity of retinopathy.
57
+
58
+ **Data Element Scope:** This value set may use a model element related to Diagnosis or Communication.
59
+
60
+ **Inclusion Criteria:** Includes concepts that represent a diagnosis of mild, moderate, severe, or very severe non-proliferative and proliferative diabetic retinopathy.
61
+
62
+ **Exclusion Criteria:** No exclusions.
63
+ """
64
+
65
+ VALUE_SET_NAME = "Level of Severity of Retinopathy Findings"
66
+ OID = "2.16.840.1.113883.3.526.3.1283"
67
+ DEFINITION_VERSION = "20210209"
68
+ EXPANSION_VERSION = "eCQM Update 2025-05-08"
69
+
70
+ SNOMEDCT = {
71
+ "1306699009", # Stable treated proliferative retinopathy due to diabetes mellitus (disorder)
72
+ "1306700005", # Stable treated proliferative retinopathy of bilateral eyes due to diabetes mellitus (disorder)
73
+ "138881000119106", # Mild nonproliferative retinopathy due to type 1 diabetes mellitus (disorder)
74
+ "138891000119109", # Moderate nonproliferative retinopathy due to type 1 diabetes mellitus (disorder)
75
+ "138901000119108", # Severe nonproliferative retinopathy due to diabetes mellitus type 1 (disorder)
76
+ "138911000119106", # Mild nonproliferative retinopathy due to type 2 diabetes mellitus (disorder)
77
+ "138921000119104", # Moderate nonproliferative retinopathy due to type 2 diabetes mellitus (disorder)
78
+ "138941000119105", # Severe nonproliferative retinopathy due to diabetes mellitus type 2 (disorder)
79
+ "1501000119109", # Proliferative retinopathy due to type 2 diabetes mellitus (disorder)
80
+ "16697421000119103", # Moderate nonproliferative retinopathy of left eye due to diabetes mellitus type 1 (disorder)
81
+ "16697471000119102", # Moderate nonproliferative retinopathy of right eye due to diabetes mellitus type 1 (disorder)
82
+ "16697521000119104", # Moderate nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 1 (disorder)
83
+ "16745411000119104", # Mild nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 1 (disorder)
84
+ "16745531000119108", # Mild nonproliferative retinopathy of left eye due to diabetes mellitus type 2 (disorder)
85
+ "16745611000119102", # Mild nonproliferative retinopathy of right eye due to diabetes mellitus type 1 (disorder)
86
+ "16745651000119101", # Mild nonproliferative retinopathy of right eye due to diabetes mellitus type 2 (disorder)
87
+ "16745891000119105", # Mild nonproliferative retinopathy of left eye due to diabetes mellitus type 1 (disorder)
88
+ "16745931000119102", # Mild nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 2 (disorder)
89
+ "16746131000119105", # Moderate nonproliferative retinopathy of left eye due to diabetes mellitus type 2 (disorder)
90
+ "16746261000119108", # Moderate nonproliferative retinopathy of right eye due to diabetes mellitus type 2 (disorder)
91
+ "16746341000119103", # Moderate nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 2 (disorder)
92
+ "16746901000119101", # Severe nonproliferative retinopathy of left eye due to diabetes mellitus type 2 (disorder)
93
+ "16746941000119104", # Severe nonproliferative retinopathy of left eye due to diabetes mellitus type 1 (disorder)
94
+ "16747021000119109", # Severe nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 2 (disorder)
95
+ "16747101000119101", # Severe nonproliferative retinopathy of bilateral eyes due to diabetes mellitus type 1 (disorder)
96
+ "16747141000119104", # Severe nonproliferative retinopathy of right eye due to diabetes mellitus type 2 (disorder)
97
+ "16747341000119101", # Severe nonproliferative retinopathy of right eye due to diabetes mellitus type 1 (disorder)
98
+ "16747741000119100", # Proliferative retinopathy of left eye due to diabetes mellitus type 1 (disorder)
99
+ "16747901000119104", # Proliferative retinopathy of left eye due to diabetes mellitus type 2 (disorder)
100
+ "16748141000119100", # Proliferative retinopathy of bilateral eyes due to diabetes mellitus type 2 (disorder)
101
+ "16748741000119101", # Proliferative retinopathy of right eye due to diabetes mellitus type 1 (disorder)
102
+ "16749661000119102", # Proliferative retinopathy of right eye due to diabetes mellitus type 2 (disorder)
103
+ "16749781000119101", # Proliferative retinopathy of bilateral eyes due to diabetes mellitus type 1 (disorder)
104
+ "232021008", # Proliferative retinopathy with optic disc neovascularization due to diabetes mellitus (disorder)
105
+ "232022001", # Proliferative retinopathy with neovascularization elsewhere than the optic disc due to diabetes mellitus (disorder)
106
+ "312903003", # Mild nonproliferative retinopathy due to diabetes mellitus (disorder)
107
+ "312904009", # Moderate nonproliferative retinopathy due to diabetes mellitus (disorder)
108
+ "312905005", # Severe nonproliferative retinopathy due to diabetes mellitus (disorder)
109
+ "312906006", # Non-high-risk proliferative retinopathy due to diabetes mellitus (disorder)
110
+ "312907002", # High risk proliferative retinopathy due to diabetes mellitus (disorder)
111
+ "312908007", # Quiescent proliferative retinopathy due to diabetes mellitus (disorder)
112
+ "312909004", # Proliferative retinopathy with iris neovascularization due to diabetes mellitus (disorder)
113
+ "368711000119106", # Mild nonproliferative retinopathy due to secondary diabetes mellitus (disorder)
114
+ "368721000119104", # Non-proliferative retinopathy due to secondary diabetes mellitus (disorder)
115
+ "399862001", # High risk proliferative retinopathy without macular edema due to diabetes mellitus (disorder)
116
+ "399863006", # Very severe nonproliferative retinopathy without macular edema due to diabetes mellitus (disorder)
117
+ "399865004", # Very severe proliferative retinopathy due to diabetes mellitus (disorder)
118
+ "399869005", # High risk proliferative retinopathy not amenable to photocoagulation due to diabetes mellitus (disorder)
119
+ "399870006", # Non-high-risk proliferative retinopathy with no macular edema due to diabetes mellitus (disorder)
120
+ "399872003", # Severe nonproliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
121
+ "399873008", # Severe nonproliferative retinopathy without macular edema due to diabetes mellitus (disorder)
122
+ "399874002", # High risk proliferative retinopathy with clinically significant macula edema due to diabetes mellitus (disorder)
123
+ "399875001", # Non-high-risk proliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
124
+ "399876000", # Very severe nonproliferative retinopathy due to diabetes mellitus (disorder)
125
+ "399877009", # Very severe nonproliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
126
+ "59276001", # Proliferative retinopathy due to diabetes mellitus (disorder)
127
+ "60971000119101", # Proliferative retinopathy due to type 1 diabetes mellitus (disorder)
128
+ "677741000119109", # Non-diabetic proliferative retinopathy of bilateral eyes (disorder)
129
+ "769183005", # Mild nonproliferative retinopathy of right eye due to diabetes mellitus (disorder)
130
+ "769184004", # Mild nonproliferative retinopathy of left eye due to diabetes mellitus (disorder)
131
+ "769185003", # Moderate nonproliferative retinopathy of right eye due to diabetes mellitus (disorder)
132
+ "769186002", # Moderate nonproliferative retinopathy of left eye due to diabetes mellitus (disorder)
133
+ "769187006", # Severe nonproliferative retinopathy of right eye due to diabetes mellitus (disorder)
134
+ "769188001", # Severe nonproliferative retinopathy of left eye due to diabetes mellitus (disorder)
135
+ "769190000", # Very severe nonproliferative retinopathy of right eye due to diabetes mellitus (disorder)
136
+ "769191001", # Very severe nonproliferative retinopathy of left eye due to diabetes mellitus (disorder)
137
+ "770765001", # Proliferative retinopathy of right eye due to diabetes mellitus (disorder)
138
+ "770766000", # Proliferative retinopathy of left eye due to diabetes mellitus (disorder)
139
+ "816961009", # Stable treated proliferative retinopathy of right eye due to diabetes mellitus (disorder)
140
+ "816962002", # Stable treated proliferative retinopathy of left eye due to diabetes mellitus (disorder)
141
+ "870420005", # Severe nonproliferative retinopathy with venous beading of retina due to diabetes mellitus (disorder)
142
+ "97341000119105", # Proliferative retinopathy with retinal edema due to type 2 diabetes mellitus (disorder)
143
+ }
144
+
145
+ class MacularEdemaFindingsPresent(ValueSet):
146
+ """
147
+ **Clinical Focus:** The purpose of this value set is to represent concepts for diagnoses to identify the presence of macular edema.
148
+
149
+ **Data Element Scope:** This value set may use a model element related to Diagnosis.
150
+
151
+ **Inclusion Criteria:** Includes concepts that represent a diagnosis of macular edema.
152
+
153
+ **Exclusion Criteria:** Excludes concepts that represent a diagnosis of non-macular edema.
154
+ """
155
+
156
+ VALUE_SET_NAME = "Macular Edema Findings Present"
157
+ OID = "2.16.840.1.113883.3.526.3.1320"
158
+ DEFINITION_VERSION = "20210209"
159
+ EXPANSION_VERSION = "eCQM Update 2025-05-08"
160
+
161
+ SNOMEDCT = {
162
+ "1217634001", # Cystoid macular edema following cataract surgery (disorder)
163
+ "15639131000119107", # Macular edema of retina of right eye (disorder)
164
+ "15639181000119108", # Macular edema of retina of left eye (disorder)
165
+ "15639231000119102", # Macular edema of retina of bilateral eyes (disorder)
166
+ "193350004", # Advanced maculopathy due to diabetes mellitus (disorder)
167
+ "193387007", # Cystoid macular edema (disorder)
168
+ "232020009", # Disorder of macula due to diabetes mellitus (disorder)
169
+ "232042005", # Macular edema due to juvenile central retinal vein occlusion (disorder)
170
+ "232045007", # Macular edema due to hemispheric retinal vein occlusion (disorder)
171
+ "312911008", # Clinically significant macular edema (disorder)
172
+ "312912001", # Macular edema due to diabetes mellitus (disorder)
173
+ "312920004", # Postoperative cystoid macular edema (disorder)
174
+ "312921000", # Autosomal dominant cystoid macular edema (disorder)
175
+ "312922007", # Uveitis related cystoid macular edema (disorder)
176
+ "314010006", # Diffuse exudative maculopathy due to diabetes mellitus (disorder)
177
+ "314011005", # Focal exudative maculopathy due to diabetes mellitus (disorder)
178
+ "314014002", # Ischemic maculopathy due to diabetes mellitus (disorder)
179
+ "314015001", # Mixed maculopathy due to diabetes mellitus (disorder)
180
+ "335551000119103", # Cystoid macular edema of right retina (disorder)
181
+ "341161000119105", # Cystoid macular edema of left retina (disorder)
182
+ "346421000119104", # Cystoid macular edema of bilateral retinas (disorder)
183
+ "37231002", # Macular retinal edema (disorder)
184
+ "399864000", # Macular edema not clinically significant due to diabetes mellitus (disorder)
185
+ "399872003", # Severe nonproliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
186
+ "399874002", # High risk proliferative retinopathy with clinically significant macula edema due to diabetes mellitus (disorder)
187
+ "399875001", # Non-high-risk proliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
188
+ "399877009", # Very severe nonproliferative retinopathy with clinically significant macular edema due to diabetes mellitus (disorder)
189
+ "420486006", # Exudative maculopathy due to type 1 diabetes mellitus (disorder)
190
+ "421779007", # Exudative maculopathy due to type 2 diabetes mellitus (disorder)
191
+ "432789001", # Noncystoid edema of macula of retina (disorder)
192
+ "769217008", # Macular edema of right eye due to diabetes mellitus (disorder)
193
+ "769218003", # Macular edema of left eye due to diabetes mellitus (disorder)
194
+ "769219006", # Macular edema due to type 1 diabetes mellitus (disorder)
195
+ "769220000", # Macular edema due to type 2 diabetes mellitus (disorder)
196
+ "769221001", # Clinically significant macular edema of right eye due to diabetes mellitus (disorder)
197
+ "769222008", # Clinically significant macular edema of left eye due to diabetes mellitus (disorder)
198
+ "770097006", # Clinically significant macular edema due to diabetes mellitus (disorder)
199
+ "870421009", # Cystoid macular edema due to diabetes mellitus (disorder)
200
+ "870529009", # Persistent macular edema due to diabetes mellitus (disorder)
201
+ "871778008", # Centrally involved macular edema due to diabetes mellitus (disorder)
202
+ "871781003", # Non centrally involved macular edema due to diabetes mellitus (disorder)
203
+ "97331000119101", # Macular edema and retinopathy due to type 2 diabetes mellitus (disorder)
204
+ }
205
+
206
+ class ConsultantReport(ValueSet):
207
+ """
208
+ **Clinical Focus:** The purpose of this value set is to represent concepts for consultant reports.
209
+
210
+ **Data Element Scope:** This value set may use a model element related to Assessment.
211
+
212
+ **Inclusion Criteria:** Includes concepts that represent various consultant reports and notes.
213
+
214
+ **Exclusion Criteria:** No exclusions.
215
+ """
216
+
217
+ VALUE_SET_NAME = "Consultant Report"
218
+ OID = "2.16.840.1.113883.3.464.1003.121.12.1006"
219
+ DEFINITION_VERSION = "20190315"
220
+ EXPANSION_VERSION = "eCQM Update 2025-05-08"
221
+
222
+ LOINC = {
223
+ "101031-3", # Chiropody Consult note
224
+ "101032-1", # Physician assistant Consult note
225
+ "101038-8", # Aerospace medicine Consult note
226
+ "101043-8", # Urgent care center Consult note
227
+ "101047-9", # Undersea and hyperbaric medicine Consult note
228
+ "101048-7", # Hospitalist Consult note
229
+ "101052-9", # Osteopathic medicine Consult note
230
+ "101350-7", # Orthopaedic and Trauma Surgery Consult note
231
+ "101886-0", # General medicine Telephone encounter Consult note
232
+ "101887-8", # Surgery Telephone encounter Consult note
233
+ "101888-6", # Palliative care Telephone encounter Consult note
234
+ "103545-0", # Physical medicine and rehab Outpatient Consult note
235
+ "103549-2", # Gastroenterology Outpatient Consult note
236
+ "103793-6", # Mental health Outpatient Consult note
237
+ "103794-4", # Psychiatry Outpatient Consult note
238
+ "103799-3", # Healthcare navigator Consult note
239
+ "103968-4", # Hospice care Consult note
240
+ "104066-6", # Hospitalist Outpatient Consult note
241
+ "104121-9", # Vascular Access Consult note
242
+ "104582-2", # Pediatrics Telephone encounter Consult note
243
+ "104583-0", # Gynecology Telephone encounter Consult note
244
+ "104584-8", # Gynecologic oncology Telephone encounter Consult note
245
+ "11488-4", # Consult note
246
+ "34099-2", # Cardiology Consult note
247
+ "34100-8", # Intensive care unit Consult note
248
+ "34101-6", # General medicine Outpatient Consult note
249
+ "34102-4", # Psychiatry Hospital Consult note
250
+ "34103-2", # Pulmonary Consult note
251
+ "34104-0", # Hospital Consult note
252
+ "34749-2", # Anesthesiology Outpatient Consult note
253
+ "34756-7", # Dentistry Consult note
254
+ "34758-3", # Dermatology Consult note
255
+ "34760-9", # Diabetology Consult note
256
+ "34761-7", # Gastroenterology Consult note
257
+ "34764-1", # General medicine Consult note
258
+ "34776-5", # Geriatric medicine Consult note
259
+ "34777-3", # Obstetrics and Gynecology Consult note
260
+ "34779-9", # Hematology+Medical oncology Consult note
261
+ "34781-5", # Infectious disease Consult note
262
+ "34783-1", # Kinesiotherapy Consult note
263
+ "34785-6", # Mental health Consult note
264
+ "34788-0", # Psychiatry Consult note
265
+ "34791-4", # Psychology Consult note
266
+ "34795-5", # Nephrology Consult note
267
+ "34797-1", # Neurology Consult note
268
+ "34798-9", # Neurological surgery Consult note
269
+ "34800-3", # Nutrition and dietetics Consult note
270
+ "34803-7", # Occupational medicine Consult note
271
+ "34805-2", # Oncology Consult note
272
+ "34807-8", # Ophthalmology Consult note
273
+ "34810-2", # Optometry Consult note
274
+ "34812-8", # Oral and Maxillofacial Surgery Consult note
275
+ "34814-4", # Orthopaedic surgery Consult note
276
+ "34816-9", # Otolaryngology Consult note
277
+ "34820-1", # Pharmacology Consult note
278
+ "34822-7", # Physical medicine and rehab Consult note
279
+ "34824-3", # Physical therapy Consult note
280
+ "34826-8", # Plastic surgery Consult note
281
+ "34828-4", # Podiatry Consult note
282
+ "34831-8", # Radiation oncology Consult note
283
+ "34833-4", # Recreational therapy Consult note
284
+ "34837-5", # Respiratory therapy Consult note
285
+ "34839-1", # Rheumatology Consult note
286
+ "34841-7", # Social worker Consult note
287
+ "34845-8", # Speech-language pathology+Audiology Consult note
288
+ "34847-4", # Surgery Consult note
289
+ "34849-0", # Cardiothoracic surgery Consult note
290
+ "34851-6", # Urology Consult note
291
+ "34853-2", # Vascular surgery Consult note
292
+ "34855-7", # Occupational therapy Consult note
293
+ "34879-7", # Endocrinology Consult note
294
+ "51845-6", # Outpatient Consult note
295
+ "51846-4", # Emergency department Consult note
296
+ "51854-8", # Long term care facility Consult note
297
+ "60570-9", # Pathology Consult note
298
+ "64056-5", # General medicine Medical student Hospital Consult note
299
+ "64068-0", # Surgery Medical student Hospital Consult note
300
+ "64072-2", # Critical care medicine Medical student Hospital Consult note
301
+ "64076-3", # Cardiothoracic surgery Medical student Hospital Consult note
302
+ "64080-5", # Pulmonary Medical student Hospital Consult note
303
+ "68469-6", # Pastoral care Hospital Consult note
304
+ "68486-0", # Cardiology Medical student Hospital Consult note
305
+ "68551-1", # Dermatology Hospital Consult note
306
+ "68566-9", # Obstetrics and Gynecology Hospital Consult note
307
+ "68570-1", # Occupational therapy Hospital Consult note
308
+ "68575-0", # Ophthalmology Hospital Consult note
309
+ "68586-7", # Pharmacology Hospital Consult note
310
+ "68590-9", # Physical therapy Hospital Consult note
311
+ "68597-4", # Plastic surgery Hospital Consult note
312
+ "68619-6", # Adolescent medicine Hospital Consult note
313
+ "68633-7", # Allergy and Immunology Hospital Consult note
314
+ "68639-4", # Audiology Hospital Consult note
315
+ "68648-5", # Child and adolescent psychiatry Hospital Consult note
316
+ "68651-9", # Clinical biochemical genetics Hospital Consult note
317
+ "68661-8", # Clinical genetics Hospital Consult note
318
+ "68670-9", # Developmental-behavioral pediatrics Hospital Consult note
319
+ "68681-6", # Multi-specialty program Hospital Consult note
320
+ "68685-7", # Neonatal perinatal medicine Hospital Consult note
321
+ "68694-9", # Neurological surgery Hospital Consult note
322
+ "68705-3", # Neurology with special qualifications in child neurology Hospital Consult note
323
+ "68716-0", # Pain medicine Hospital Consult note
324
+ "68727-7", # Pediatric cardiology Hospital Consult note
325
+ "68746-7", # Pediatric gastroenterology Hospital Consult note
326
+ "68757-4", # Pediatric hematology-oncology Hospital Consult note
327
+ "68765-7", # Pediatric infectious diseases Hospital Consult note
328
+ "68787-1", # Pediatric pulmonology Hospital Consult note
329
+ "68802-8", # Pediatric surgery Hospital Consult note
330
+ "68812-7", # Pediatric urology Hospital Consult note
331
+ "68821-8", # Pediatrics Hospital Consult note
332
+ "68837-4", # Primary care Hospital Consult note
333
+ "68846-5", # Speech-language pathology Hospital Consult note
334
+ "68852-3", # Transplant surgery Hospital Consult note
335
+ "68864-8", # Pediatric transplant hepatology Hospital Consult note
336
+ "68869-7", # Pediatric nephrology Hospital Consult note
337
+ "68874-7", # Pediatric otolaryngology Hospital Consult note
338
+ "68879-6", # Pediatric rheumatology Hospital Consult note
339
+ "68892-9", # Pediatric dermatology Hospital Consult note
340
+ "68897-8", # Pediatric endocrinology Hospital Consult note
341
+ "72555-6", # Interventional radiology Consult note
342
+ "73575-3", # Radiology Consult note
343
+ "75424-2", # Audiology Consult note
344
+ "75465-5", # Orthotics prosthetics Consult note
345
+ "77403-4", # Anesthesiology Consult note
346
+ "77429-9", # Allergy and Immunology Consult note
347
+ "78250-8", # Colon and rectal surgery Consult note
348
+ "78251-6", # Hematology Consult note
349
+ "78252-4", # Multi-specialty program Consult note
350
+ "78253-2", # Family medicine Consult note
351
+ "78254-0", # Clinical genetics Consult note
352
+ "78405-8", # Neonatal perinatal medicine Consult note
353
+ "78406-6", # Nurse practitioner Consult note
354
+ "78496-7", # Critical care medicine Consult note
355
+ "78498-3", # Cardiopulmonary Consult note
356
+ "78567-5", # Pain medicine Consult note
357
+ "78568-3", # Palliative care Consult note
358
+ "78726-7", # Pediatrics Consult note
359
+ "78732-5", # Trauma Consult note
360
+ "78738-2", # Sports medicine Consult note
361
+ "79428-9", # Rapid response team Consult note
362
+ "80396-5", # Gynecologic oncology Consult note
363
+ "80575-4", # Cardiac surgery Consult note
364
+ "80664-6", # Clinical neurophysiology Consult note
365
+ "80666-1", # Vascular neurology Consult note
366
+ "80673-7", # Maternal and fetal medicine Consult note
367
+ "80736-2", # Blood banking and transfusion medicine Consult note
368
+ "80801-4", # Surgical oncology Consult note
369
+ "81191-9", # Chemical pathology Consult note
370
+ "81192-7", # Clinical pathology Consult note
371
+ "81193-5", # Medical microbiology - pathology Consult note
372
+ "81196-8", # Clinical pharmacology Consult note
373
+ "82356-7", # Obstetrics Midwife Consult note
374
+ "82359-1", # Reproductive endocrinology and infertility Consult note
375
+ "83570-2", # Diabetology Nurse Consult note
376
+ "83578-5", # Hematology+Medical oncology Nurse Consult note
377
+ "83609-8", # Psychiatry Nurse Consult note
378
+ "83621-3", # Geriatric medicine Nurse Consult note
379
+ "83653-6", # Pain medicine Team Consult note
380
+ "83685-8", # Hematology+Medical oncology Attending Consult note
381
+ "83720-3", # Physical medicine and rehab Long term care facility Consult note
382
+ "83722-9", # Physical medicine and rehabilitation Nurse Consult note
383
+ "83868-0", # Preventive medicine Consult note
384
+ "83873-0", # Primary care Consult note
385
+ "83888-8", # Psychiatry Long term care facility Consult note
386
+ "83909-2", # Public health Consult note
387
+ "83912-6", # Pulmonary Patient's home Consult note
388
+ "83926-6", # Recreational therapy Long term care facility Consult note
389
+ "83931-6", # Research Consult note
390
+ "83941-5", # Respiratory therapy Patient's home Consult note
391
+ "83960-5", # Social worker Patient's home Consult note
392
+ "83967-0", # Social worker Long term care facility Consult note
393
+ "83984-5", # Speech-language pathology Consult note
394
+ "83992-8", # Spinal cord injury medicine Consult note
395
+ "83996-9", # Spinal cord injury medicine Patient's home Consult note
396
+ "84035-5", # Transplant surgery Consult note
397
+ "84071-0", # Chiropractic medicine Consult note
398
+ "84115-5", # Geriatric medicine Long term care facility Consult note
399
+ "84126-2", # Surgery of the hand Consult note
400
+ "84131-2", # Primary care Patient's home Consult note
401
+ "84142-9", # Hematology+Medical oncology Hospital Consult note
402
+ "84145-2", # Hematology+Medical oncology Outpatient Consult note
403
+ "84152-8", # Hepatology Consult note
404
+ "84173-4", # Interventional cardiology Consult note
405
+ "84190-8", # Medical toxicology Consult note
406
+ "84213-8", # Mental health Team Consult note
407
+ "84231-0", # Neurology Telehealth Consult note
408
+ "84241-9", # Nurse Consult note
409
+ "84280-7", # Nutrition and dietetics Patient's home Consult note
410
+ "84292-2", # Nutrition and dietetics Team Consult note
411
+ "84303-7", # Wound care management Consult note
412
+ "84312-8", # Vocational rehabilitation Consult note
413
+ "84324-3", # Physical therapy Long term care facility Consult note
414
+ "84349-0", # Pastoral care Consult note
415
+ "84352-4", # Palliative care Team Consult note
416
+ "84358-1", # Palliative care Patient's home Consult note
417
+ "84394-6", # Occupational therapy Patient's home Consult note
418
+ "84398-7", # Occupational therapy Long term care facility Consult note
419
+ "85174-1", # Custodial care facility Consult note
420
+ "85208-7", # Telehealth Consult note
421
+ "85222-8", # Case manager Consult note
422
+ "85232-7", # Tumor board Consult note
423
+ "85237-6", # Acupuncture Consult note
424
+ "85238-4", # Internal medicine Consult note
425
+ "85517-1", # Bariatric surgery Consult note
426
+ "85519-7", # Child and adolescent psychology Consult note
427
+ "85866-2", # Sleep medicine Consult note
428
+ "85871-2", # Womens health Consult note
429
+ "85882-9", # Ophthalmology Teleimaging Consult note
430
+ "85884-5", # Epilepsy Consult note
431
+ "85886-0", # Clinical cardiac electrophysiology Consult note
432
+ "85890-2", # Neuropsychology Consult note
433
+ "85899-3", # Community health care Consult note
434
+ "86451-2", # Ethics Consult note
435
+ "87233-3", # Dialysis Consult note
436
+ "87254-9", # Addiction medicine Consult note
437
+ "87627-6", # Brain injury Consult note
438
+ "88351-2", # Polytrauma Consult note
439
+ "88640-8", # Community health care Adult day care center Consult note
440
+ "88644-0", # Outpatient hospital Consult note
441
+ "89031-9", # Hematology Telehealth Consult note
442
+ "89032-7", # Nephrology Telehealth Consult note
443
+ "89033-5", # Urology Telehealth Consult note
444
+ "89216-6", # Gynecology Consult note
445
+ "89227-3", # Obstetrics Consult note
446
+ "89446-9", # Obstetrics Hospital Consult note
447
+ "89447-7", # Gynecology Hospital Consult note
448
+ "89551-6", # Environmental health Consult note
449
+ "90006-8", # Pharmacogenomics Consult note
450
+ "90012-6", # Burn management Consult note
451
+ "90343-5", # Nuclear medicine Consult note
452
+ "90354-2", # Obesity medicine Consult note
453
+ "90709-7", # Adolescent medicine Consult note
454
+ "90710-5", # Developmental-behavioral pediatrics Consult note
455
+ "90712-1", # Sleep medicine Telehealth Consult note
456
+ "90714-7", # Pain medicine Telehealth Consult note
457
+ "90715-4", # Palliative care Telehealth Consult note
458
+ "90717-0", # Heart failure+Transplant cardiology Consult note
459
+ "90771-7", # Heart failure Consult note
460
+ "91986-0", # Integrative medicine Consult note
461
+ "92910-9", # Spinal surgery Consult note
462
+ "92912-5", # Eating disorders Consult note
463
+ "92915-8", # Immunology Consult note
464
+ "93024-8", # Pharmacist Consult note
465
+ "93413-3", # Mechanical circulatory support Consultation note
466
+ "93955-3", # Wound, Ostomy, and Continence Care Consult note
467
+ "94319-1", # Medical Aid in Dying Consult note
468
+ "94461-1", # Solid Organ Transplant Consult note
469
+ "94462-9", # Cardiology Intensive care unit Consult note
470
+ "94463-7", # Bone Marrow Transplant Consult note
471
+ "94528-7", # Thromboembolism Consult note
472
+ "94806-7", # COVID-19 Intubation Consultation note
473
+ "94807-5", # Attending COVID-19 Intubation Consultation note
474
+ "94808-3", # Resident COVID-19 Intubation Consultation note
475
+ "94814-1", # Critical care medicine COVID-19 Consultation note
476
+ "95132-7", # Dialysis and Therapeutic apheresis Consult note
477
+ "95761-3", # Allergy Consult note
478
+ "95806-6", # Breastfeeding Consult note
479
+ "96737-2", # COVID-19 Consultation note
480
+ }
481
+
482
+ SNOMEDCT = {
483
+ "371530004", # Clinical consultation report (record artifact)
484
+ "371531000", # Report of clinical encounter (record artifact)
485
+ "371545006", # Confirmatory consultation report (record artifact)
486
+ "721916007", # Physician consulting initial evaluation note (record artifact)
487
+ "721927009", # Referral note (record artifact)
488
+ }
489
+
490
+ __exports__ = (
491
+ "AutonomousEyeExamResultOrFinding",
492
+ "DiabeticRetinopathySeverityLevel",
493
+ "LevelOfSeverityOfRetinopathyFindings",
494
+ "MacularEdemaFindingsPresent",
495
+ "ConsultantReport",
496
+ )