canvas 0.38.0__py3-none-any.whl → 0.40.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.
Potentially problematic release.
This version of canvas might be problematic. Click here for more details.
- {canvas-0.38.0.dist-info → canvas-0.40.0.dist-info}/METADATA +1 -1
- {canvas-0.38.0.dist-info → canvas-0.40.0.dist-info}/RECORD +34 -32
- canvas_generated/messages/effects_pb2.py +2 -2
- canvas_generated/messages/effects_pb2.pyi +10 -0
- canvas_generated/messages/events_pb2.py +2 -2
- canvas_generated/messages/events_pb2.pyi +8 -0
- canvas_sdk/caching/__init__.py +1 -1
- canvas_sdk/effects/launch_modal.py +7 -1
- canvas_sdk/effects/note/message.py +123 -0
- canvas_sdk/effects/patient_metadata_create_form.py +70 -0
- canvas_sdk/utils/db.py +14 -0
- canvas_sdk/v1/data/__init__.py +2 -0
- canvas_sdk/v1/data/patient.py +16 -0
- canvas_sdk/value_set/custom.py +14 -2
- canvas_sdk/value_set/v2022/allergy.py +8 -3
- canvas_sdk/value_set/v2022/assessment.py +10 -3
- canvas_sdk/value_set/v2022/communication.py +5 -3
- canvas_sdk/value_set/v2022/condition.py +175 -3
- canvas_sdk/value_set/v2022/device.py +4 -3
- canvas_sdk/value_set/v2022/diagnostic_study.py +13 -3
- canvas_sdk/value_set/v2022/encounter.py +58 -3
- canvas_sdk/value_set/v2022/immunization.py +15 -3
- canvas_sdk/value_set/v2022/individual_characteristic.py +8 -3
- canvas_sdk/value_set/v2022/intervention.py +28 -3
- canvas_sdk/value_set/v2022/laboratory_test.py +27 -3
- canvas_sdk/value_set/v2022/medication.py +93 -3
- canvas_sdk/value_set/v2022/physical_exam.py +9 -3
- canvas_sdk/value_set/v2022/procedure.py +43 -3
- plugin_runner/sandbox.py +1 -0
- protobufs/canvas_generated/messages/effects.proto +6 -0
- protobufs/canvas_generated/messages/events.proto +5 -0
- settings.py +12 -0
- canvas_sdk/value_set/_utilities.py +0 -16
- {canvas-0.38.0.dist-info → canvas-0.40.0.dist-info}/WHEEL +0 -0
- {canvas-0.38.0.dist-info → canvas-0.40.0.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing import Any
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from pydantic_core import InitErrorDetails
|
|
6
|
+
|
|
7
|
+
from canvas_generated.messages.effects_pb2 import Effect
|
|
8
|
+
from canvas_sdk.base import TrackableFieldsModel
|
|
9
|
+
from canvas_sdk.v1.data import Message as MessageModel
|
|
10
|
+
from canvas_sdk.v1.data import Patient, Staff
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Message(TrackableFieldsModel):
|
|
14
|
+
"""
|
|
15
|
+
Effect to create and/or send a message.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
class Meta:
|
|
19
|
+
effect_type = "MESSAGE"
|
|
20
|
+
|
|
21
|
+
message_id: str | UUID | None = None
|
|
22
|
+
content: str
|
|
23
|
+
sender_id: str | UUID
|
|
24
|
+
recipient_id: str | UUID
|
|
25
|
+
|
|
26
|
+
def _get_error_details(self, method: Any) -> list[InitErrorDetails]:
|
|
27
|
+
errors = super()._get_error_details(method)
|
|
28
|
+
|
|
29
|
+
if (
|
|
30
|
+
not Patient.objects.filter(id=self.sender_id).exists()
|
|
31
|
+
and not Staff.objects.filter(id=self.sender_id).exists()
|
|
32
|
+
):
|
|
33
|
+
errors.append(
|
|
34
|
+
self._create_error_detail(
|
|
35
|
+
"value",
|
|
36
|
+
f"Sender with ID {self.sender_id} does not exist.",
|
|
37
|
+
self.sender_id,
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
if (
|
|
42
|
+
not Patient.objects.filter(id=self.recipient_id).exists()
|
|
43
|
+
and not Staff.objects.filter(id=self.recipient_id).exists()
|
|
44
|
+
):
|
|
45
|
+
errors.append(
|
|
46
|
+
self._create_error_detail(
|
|
47
|
+
"value",
|
|
48
|
+
f"Recipient with ID {self.recipient_id} does not exist.",
|
|
49
|
+
self.recipient_id,
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
if method == "edit":
|
|
54
|
+
if not self.message_id:
|
|
55
|
+
errors.append(
|
|
56
|
+
self._create_error_detail(
|
|
57
|
+
"value",
|
|
58
|
+
"Message ID is required when editing a message.",
|
|
59
|
+
self.message_id,
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
else:
|
|
63
|
+
if not MessageModel.objects.filter(id=self.message_id).exists():
|
|
64
|
+
errors.append(
|
|
65
|
+
self._create_error_detail(
|
|
66
|
+
"value",
|
|
67
|
+
f"Can't edit message with ID {self.message_id}: Does not exist.",
|
|
68
|
+
self.message_id,
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
elif (
|
|
72
|
+
method
|
|
73
|
+
in (
|
|
74
|
+
"create",
|
|
75
|
+
"create_and_send",
|
|
76
|
+
)
|
|
77
|
+
and self.message_id
|
|
78
|
+
):
|
|
79
|
+
errors.append(
|
|
80
|
+
self._create_error_detail(
|
|
81
|
+
"value",
|
|
82
|
+
"Can't set message ID when creating a message.",
|
|
83
|
+
self.message_id,
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
return errors
|
|
88
|
+
|
|
89
|
+
def create(self) -> Effect:
|
|
90
|
+
"""Originate a new command in the note body."""
|
|
91
|
+
self._validate_before_effect("create")
|
|
92
|
+
return Effect(
|
|
93
|
+
type=f"CREATE_{self.Meta.effect_type}",
|
|
94
|
+
payload=json.dumps(
|
|
95
|
+
{
|
|
96
|
+
"data": self.values,
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
def create_and_send(self) -> Effect:
|
|
102
|
+
"""Create and send message."""
|
|
103
|
+
self._validate_before_effect("create_and_send")
|
|
104
|
+
return Effect(
|
|
105
|
+
type="CREATE_AND_SEND_MESSAGE",
|
|
106
|
+
payload=json.dumps({"data": self.values}),
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
def edit(self) -> Effect:
|
|
110
|
+
"""Edit message."""
|
|
111
|
+
self._validate_before_effect("edit")
|
|
112
|
+
return Effect(type="EDIT_MESSAGE", payload=json.dumps({"data": self.values}))
|
|
113
|
+
|
|
114
|
+
def send(self) -> Effect:
|
|
115
|
+
"""Send message."""
|
|
116
|
+
self._validate_before_effect("send")
|
|
117
|
+
return Effect(
|
|
118
|
+
type="SEND_MESSAGE",
|
|
119
|
+
payload=json.dumps({"data": self.values}),
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
__exports__ = ("Message",)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
from enum import StrEnum
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from pydantic_core import InitErrorDetails
|
|
6
|
+
|
|
7
|
+
from canvas_sdk.effects import EffectType, _BaseEffect
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class InputType(StrEnum):
|
|
11
|
+
"""Type of input for a form field."""
|
|
12
|
+
|
|
13
|
+
TEXT = "text"
|
|
14
|
+
SELECT = "select"
|
|
15
|
+
DATE = "date"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@dataclass
|
|
19
|
+
class FormField:
|
|
20
|
+
"""A class representing a Field."""
|
|
21
|
+
|
|
22
|
+
key: str | None = None
|
|
23
|
+
label: str | None = None
|
|
24
|
+
required: bool = False
|
|
25
|
+
editable: bool = True
|
|
26
|
+
type: InputType = InputType.TEXT
|
|
27
|
+
options: list[str] | None = None
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> dict[str, Any]:
|
|
30
|
+
"""Convert the Field to a dictionary."""
|
|
31
|
+
return {
|
|
32
|
+
"key": self.key,
|
|
33
|
+
"label": self.label,
|
|
34
|
+
"required": self.required,
|
|
35
|
+
"editable": self.editable,
|
|
36
|
+
"type": self.type.value,
|
|
37
|
+
"options": self.options,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class PatientMetadataCreateFormEffect(_BaseEffect):
|
|
42
|
+
"""An Effect that will create a form."""
|
|
43
|
+
|
|
44
|
+
class Meta:
|
|
45
|
+
effect_type = EffectType.PATIENT_METADATA__CREATE_ADDITIONAL_FIELDS
|
|
46
|
+
|
|
47
|
+
form_fields: list[FormField]
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def values(self) -> dict[str, Any]:
|
|
51
|
+
"""Return the values of the form as a dictionary."""
|
|
52
|
+
return {"form": [field.to_dict() for field in self.form_fields]}
|
|
53
|
+
|
|
54
|
+
def _get_error_details(self, method: Any) -> list[InitErrorDetails]:
|
|
55
|
+
errors = super()._get_error_details(method)
|
|
56
|
+
|
|
57
|
+
for field in self.form_fields:
|
|
58
|
+
if field.type != InputType.SELECT and field.options:
|
|
59
|
+
errors.append(
|
|
60
|
+
self._create_error_detail(
|
|
61
|
+
"value",
|
|
62
|
+
"The options attribute is only used for fields of type select",
|
|
63
|
+
field.key,
|
|
64
|
+
)
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
return errors
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
__exports__ = ("PatientMetadataCreateFormEffect", "FormField", "InputType")
|
canvas_sdk/utils/db.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from django.db import close_old_connections, reset_queries
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def thread_cleanup() -> None:
|
|
5
|
+
"""
|
|
6
|
+
Call this method to do cleanup work at thread exit. For users doing
|
|
7
|
+
advanced work with threads there is a need to do cleanup after each thread
|
|
8
|
+
runs so that e.g. the database pool does not become exhausted.
|
|
9
|
+
"""
|
|
10
|
+
reset_queries()
|
|
11
|
+
close_old_connections()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
__exports__ = ("thread_cleanup",)
|
canvas_sdk/v1/data/__init__.py
CHANGED
|
@@ -36,6 +36,7 @@ from .patient import (
|
|
|
36
36
|
PatientAddress,
|
|
37
37
|
PatientContactPoint,
|
|
38
38
|
PatientExternalIdentifier,
|
|
39
|
+
PatientMetadata,
|
|
39
40
|
PatientSetting,
|
|
40
41
|
)
|
|
41
42
|
from .practicelocation import PracticeLocation, PracticeLocationSetting
|
|
@@ -106,6 +107,7 @@ __all__ = __exports__ = (
|
|
|
106
107
|
"PatientContactPoint",
|
|
107
108
|
"PatientExternalIdentifier",
|
|
108
109
|
"PatientSetting",
|
|
110
|
+
"PatientMetadata",
|
|
109
111
|
"PracticeLocation",
|
|
110
112
|
"PracticeLocationSetting",
|
|
111
113
|
"ProtocolOverride",
|
canvas_sdk/v1/data/patient.py
CHANGED
|
@@ -227,6 +227,21 @@ class PatientSetting(models.Model):
|
|
|
227
227
|
value = models.JSONField()
|
|
228
228
|
|
|
229
229
|
|
|
230
|
+
class PatientMetadata(models.Model):
|
|
231
|
+
"""A class representing Patient Metadata."""
|
|
232
|
+
|
|
233
|
+
class Meta:
|
|
234
|
+
managed = False
|
|
235
|
+
db_table = "canvas_sdk_data_api_patientmetadata_001"
|
|
236
|
+
|
|
237
|
+
dbid = models.BigIntegerField(primary_key=True)
|
|
238
|
+
patient = models.ForeignKey(
|
|
239
|
+
"v1.Patient", on_delete=models.DO_NOTHING, related_name="metadata", null=True
|
|
240
|
+
)
|
|
241
|
+
key = models.CharField(max_length=255)
|
|
242
|
+
value = models.CharField(max_length=255)
|
|
243
|
+
|
|
244
|
+
|
|
230
245
|
__exports__ = (
|
|
231
246
|
"SexAtBirth",
|
|
232
247
|
"PatientSettingConstants",
|
|
@@ -235,6 +250,7 @@ __exports__ = (
|
|
|
235
250
|
"PatientAddress",
|
|
236
251
|
"PatientExternalIdentifier",
|
|
237
252
|
"PatientSetting",
|
|
253
|
+
"PatientMetadata",
|
|
238
254
|
# not defined here but used by current plugins
|
|
239
255
|
"ContactPointState",
|
|
240
256
|
"ContactPointSystem",
|
canvas_sdk/value_set/custom.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
1
|
from canvas_sdk.value_set.value_set import ValueSet
|
|
3
2
|
|
|
4
3
|
|
|
@@ -1058,4 +1057,17 @@ class DiabetesOtherClassConditionSuspect(ValueSet):
|
|
|
1058
1057
|
}
|
|
1059
1058
|
|
|
1060
1059
|
|
|
1061
|
-
__exports__ =
|
|
1060
|
+
__exports__ = (
|
|
1061
|
+
"Antiarrhythmics",
|
|
1062
|
+
"DiabetesCirculatoryClassConditionSuspect",
|
|
1063
|
+
"DiabetesEyeClassConditionSuspect",
|
|
1064
|
+
"DiabetesEyeConditionSuspect",
|
|
1065
|
+
"DiabetesNeurologicConditionSuspect",
|
|
1066
|
+
"DiabetesOtherClassConditionSuspect",
|
|
1067
|
+
"DiabetesRenalConditionSuspect",
|
|
1068
|
+
"DiabetesWithoutComplication",
|
|
1069
|
+
"DysrhythmiaClassConditionSuspect",
|
|
1070
|
+
"Hcc005v1AnnualWellnessVisit",
|
|
1071
|
+
"HypertensiveChronicKidneyDisease",
|
|
1072
|
+
"LabReportCreatinine",
|
|
1073
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -234,4 +232,11 @@ class StatinAllergen(ValueSet):
|
|
|
234
232
|
}
|
|
235
233
|
|
|
236
234
|
|
|
237
|
-
__exports__ =
|
|
235
|
+
__exports__ = (
|
|
236
|
+
"AceInhibitorOrArbIngredient",
|
|
237
|
+
"BetaBlockerTherapyIngredient",
|
|
238
|
+
"EggSubstance",
|
|
239
|
+
"InfluenzaVaccination",
|
|
240
|
+
"InfluenzaVaccine",
|
|
241
|
+
"StatinAllergen",
|
|
242
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -217,4 +215,13 @@ class HistoryOfHipFractureInParent(ValueSet):
|
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
|
|
220
|
-
__exports__ =
|
|
218
|
+
__exports__ = (
|
|
219
|
+
"AverageNumberOfDrinksPerDrinkingDay",
|
|
220
|
+
"FallsScreening",
|
|
221
|
+
"HistoryOfHipFractureInParent",
|
|
222
|
+
"Phq9AndPhq9MTools",
|
|
223
|
+
"SexuallyActive",
|
|
224
|
+
"StandardizedPainAssessmentTool",
|
|
225
|
+
"StandardizedToolsForAssessmentOfCognition",
|
|
226
|
+
"TobaccoUseScreening",
|
|
227
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -327,4 +325,8 @@ class ConsultantReport(ValueSet):
|
|
|
327
325
|
}
|
|
328
326
|
|
|
329
327
|
|
|
330
|
-
__exports__ =
|
|
328
|
+
__exports__ = (
|
|
329
|
+
"ConsultantReport",
|
|
330
|
+
"LevelOfSeverityOfRetinopathyFindings",
|
|
331
|
+
"MacularEdemaFindingsPresent",
|
|
332
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -40656,4 +40654,178 @@ class UrinaryRetention(ValueSet):
|
|
|
40656
40654
|
}
|
|
40657
40655
|
|
|
40658
40656
|
|
|
40659
|
-
__exports__ =
|
|
40657
|
+
__exports__ = (
|
|
40658
|
+
"ActiveTuberculosisForUrologyCare",
|
|
40659
|
+
"AcuteAndSubacuteIridocyclitis",
|
|
40660
|
+
"AcutePharyngitis",
|
|
40661
|
+
"AcuteTonsillitis",
|
|
40662
|
+
"AlcoholAndDrugDependence",
|
|
40663
|
+
"AlcoholWithdrawal",
|
|
40664
|
+
"AllergyToAceInhibitorOrArb",
|
|
40665
|
+
"AllergyToBetaBlockerTherapy",
|
|
40666
|
+
"AllergyToEggs",
|
|
40667
|
+
"AllergyToInfluenzaVaccine",
|
|
40668
|
+
"Amblyopia",
|
|
40669
|
+
"AnaphylacticReactionToCommonBakersYeast",
|
|
40670
|
+
"AnaphylacticReactionToDtapVaccine",
|
|
40671
|
+
"AnkylosingSpondylitis",
|
|
40672
|
+
"Arrhythmia",
|
|
40673
|
+
"Asthma",
|
|
40674
|
+
"AtherosclerosisAndPeripheralArterialDisease",
|
|
40675
|
+
"AtrioventricularBlock",
|
|
40676
|
+
"BenzodiazepineWithdrawal",
|
|
40677
|
+
"BipolarDiagnosis",
|
|
40678
|
+
"BipolarDisorder",
|
|
40679
|
+
"BladderCancerForUrologyCare",
|
|
40680
|
+
"Bradycardia",
|
|
40681
|
+
"Breastfeeding",
|
|
40682
|
+
"BurnConfinedToEyeAndAdnexa",
|
|
40683
|
+
"Cancer",
|
|
40684
|
+
"CardiacPacerInSitu",
|
|
40685
|
+
"Cataract_Congenital",
|
|
40686
|
+
"Cataract_MatureOrHypermature",
|
|
40687
|
+
"Cataract_PosteriorPolar",
|
|
40688
|
+
"CataractSecondaryToOcularDisorders",
|
|
40689
|
+
"CentralCornealUlcer",
|
|
40690
|
+
"CerebrovascularDisease_Stroke_Tia",
|
|
40691
|
+
"CertainTypesOfIridocyclitis",
|
|
40692
|
+
"ChoroidalDegenerations",
|
|
40693
|
+
"ChoroidalDetachment",
|
|
40694
|
+
"ChoroidalHemorrhageAndRupture",
|
|
40695
|
+
"ChronicIridocyclitis",
|
|
40696
|
+
"ChronicKidneyDisease_Stage5",
|
|
40697
|
+
"ChronicLiverDisease",
|
|
40698
|
+
"ChronicMalnutrition",
|
|
40699
|
+
"CloudyCornea",
|
|
40700
|
+
"ComorbidConditionsForRespiratoryConditions",
|
|
40701
|
+
"CompetingConditionsForRespiratoryConditions",
|
|
40702
|
+
"ComplicationsOfPregnancy_ChildbirthAndThePuerperium",
|
|
40703
|
+
"CongenitalOrAcquiredAbsenceOfCervix",
|
|
40704
|
+
"CornealEdema",
|
|
40705
|
+
"CornealOpacityAndOtherDisordersOfCornea",
|
|
40706
|
+
"CoronaryArteryDiseaseNoMi",
|
|
40707
|
+
"CushingsSyndrome",
|
|
40708
|
+
"DegenerationOfMaculaAndPosteriorPole",
|
|
40709
|
+
"DegenerativeDisordersOfGlobe",
|
|
40710
|
+
"DementiaAndMentalDegenerations",
|
|
40711
|
+
"DentalCaries",
|
|
40712
|
+
"DepressionDiagnosis",
|
|
40713
|
+
"Diabetes",
|
|
40714
|
+
"DiabeticMacularEdema",
|
|
40715
|
+
"DiabeticNephropathy",
|
|
40716
|
+
"DiabeticRetinopathy",
|
|
40717
|
+
"DiagnosesUsedToIndicateSexualActivity",
|
|
40718
|
+
"DiagnosisOfHypertension",
|
|
40719
|
+
"DisordersOfOpticChiasm",
|
|
40720
|
+
"DisordersOfTheImmuneSystem",
|
|
40721
|
+
"DisordersOfVisualCortex",
|
|
40722
|
+
"DisseminatedChorioretinitisAndDisseminatedRetinochoroiditis",
|
|
40723
|
+
"Dysthymia",
|
|
40724
|
+
"EhlersDanlosSyndrome",
|
|
40725
|
+
"EncephalopathyDueToChildhoodVaccination",
|
|
40726
|
+
"EndStageRenalDisease",
|
|
40727
|
+
"EssentialHypertension",
|
|
40728
|
+
"FamilialHypercholesterolemia",
|
|
40729
|
+
"FocalChorioretinitisAndFocalRetinochoroiditis",
|
|
40730
|
+
"FractureLowerBody",
|
|
40731
|
+
"FrailtyDiagnosis",
|
|
40732
|
+
"GeneralizedAnxietyDisorder",
|
|
40733
|
+
"Glaucoma",
|
|
40734
|
+
"GlaucomaAssociatedWithCongenitalAnomalies_Dystrophies_AndSystemicSyndromes",
|
|
40735
|
+
"GlomerulonephritisAndNephroticSyndrome",
|
|
40736
|
+
"HeartFailure",
|
|
40737
|
+
"HepatitisA",
|
|
40738
|
+
"HepatitisB",
|
|
40739
|
+
"HereditaryChoroidalDystrophies",
|
|
40740
|
+
"HereditaryCornealDystrophies",
|
|
40741
|
+
"HereditaryRetinalDystrophies",
|
|
40742
|
+
"HistoryOfBilateralMastectomy",
|
|
40743
|
+
"Hiv",
|
|
40744
|
+
"Hyperparathyroidism",
|
|
40745
|
+
"HypertensiveChronicKidneyDisease",
|
|
40746
|
+
"Hyperthyroidism",
|
|
40747
|
+
"Hypotension",
|
|
40748
|
+
"HypotonyOfEye",
|
|
40749
|
+
"ImmunocompromisedConditions",
|
|
40750
|
+
"IndicatorsOfHumanImmunodeficiencyVirusHiv",
|
|
40751
|
+
"InjuryToOpticNerveAndPathways",
|
|
40752
|
+
"IntoleranceToAceInhibitorOrArb",
|
|
40753
|
+
"IntoleranceToBetaBlockerTherapy",
|
|
40754
|
+
"IntoleranceToInfluenzaVaccine",
|
|
40755
|
+
"Intussusception",
|
|
40756
|
+
"IschemicHeartDiseaseOrOtherRelatedDiagnoses",
|
|
40757
|
+
"KidneyFailure",
|
|
40758
|
+
"KidneyTransplantRecipient",
|
|
40759
|
+
"LimitedLifeExpectancy",
|
|
40760
|
+
"LiverDisease",
|
|
40761
|
+
"Lupus",
|
|
40762
|
+
"MacularScarOfPosteriorPolar",
|
|
40763
|
+
"MajorDepression",
|
|
40764
|
+
"MajorDepressionIncludingRemission",
|
|
40765
|
+
"MalabsorptionSyndromes",
|
|
40766
|
+
"MalignantNeoplasmOfColon",
|
|
40767
|
+
"MalignantNeoplasmOfLymphaticAndHematopoieticTissue",
|
|
40768
|
+
"MarfansSyndrome",
|
|
40769
|
+
"Measles",
|
|
40770
|
+
"MixedHistologyUrothelialCellCarcinomaForUrologyCare",
|
|
40771
|
+
"ModerateOrSevereLvsd",
|
|
40772
|
+
"MorbidObesity",
|
|
40773
|
+
"MorgagnianCataract",
|
|
40774
|
+
"Mumps",
|
|
40775
|
+
"MyocardialInfarction",
|
|
40776
|
+
"Narcolepsy",
|
|
40777
|
+
"NystagmusAndOtherIrregularEyeMovements",
|
|
40778
|
+
"OpenWoundOfEyeball",
|
|
40779
|
+
"OpticAtrophy",
|
|
40780
|
+
"OpticNeuritis",
|
|
40781
|
+
"OsteogenesisImperfecta",
|
|
40782
|
+
"Osteopenia",
|
|
40783
|
+
"Osteoporosis",
|
|
40784
|
+
"OsteoporoticFractures",
|
|
40785
|
+
"OtherAndUnspecifiedFormsOfChorioretinitisAndRetinochoroiditis",
|
|
40786
|
+
"OtherBackgroundRetinopathyAndRetinalVascularChanges",
|
|
40787
|
+
"OtherBipolarDisorder",
|
|
40788
|
+
"OtherDisordersOfOpticNerve",
|
|
40789
|
+
"OtherEndophthalmitis",
|
|
40790
|
+
"OtherProliferativeRetinopathy",
|
|
40791
|
+
"PainRelatedToProstateCancer",
|
|
40792
|
+
"PathologicMyopia",
|
|
40793
|
+
"PersonalityDisorderEmotionallyLabile",
|
|
40794
|
+
"PervasiveDevelopmentalDisorder",
|
|
40795
|
+
"PosteriorLenticonus",
|
|
40796
|
+
"Pregnancy",
|
|
40797
|
+
"PregnancyOrOtherRelatedDiagnoses",
|
|
40798
|
+
"PrimaryOpenAngleGlaucoma",
|
|
40799
|
+
"PriorPenetratingKeratoplasty",
|
|
40800
|
+
"ProstateCancer",
|
|
40801
|
+
"Proteinuria",
|
|
40802
|
+
"PsoriaticArthritis",
|
|
40803
|
+
"PurulentEndophthalmitis",
|
|
40804
|
+
"RemSleepBehaviorDisorder",
|
|
40805
|
+
"RenalFailureDueToAceInhibitor",
|
|
40806
|
+
"RetinalDetachmentWithRetinalDefect",
|
|
40807
|
+
"RetinalVascularOcclusion",
|
|
40808
|
+
"RetrolentalFibroplasias",
|
|
40809
|
+
"Rhabdomyolysis",
|
|
40810
|
+
"RheumatoidArthritis",
|
|
40811
|
+
"Rubella",
|
|
40812
|
+
"Schizophrenia",
|
|
40813
|
+
"SchizophreniaOrPsychoticDisorder",
|
|
40814
|
+
"Scleritis",
|
|
40815
|
+
"SeizureDisorder",
|
|
40816
|
+
"SeparationOfRetinalLayers",
|
|
40817
|
+
"SevereCombinedImmunodeficiency",
|
|
40818
|
+
"StableAndUnstableAngina",
|
|
40819
|
+
"StatinAssociatedMuscleSymptoms",
|
|
40820
|
+
"StatusPostLeftMastectomy",
|
|
40821
|
+
"StatusPostRightMastectomy",
|
|
40822
|
+
"TraumaticCataract",
|
|
40823
|
+
"Type1Diabetes",
|
|
40824
|
+
"UnilateralMastectomy_UnspecifiedLaterality",
|
|
40825
|
+
"UpperRespiratoryInfection",
|
|
40826
|
+
"UrinaryRetention",
|
|
40827
|
+
"Uveitis",
|
|
40828
|
+
"VaricellaZoster",
|
|
40829
|
+
"VascularDisordersOfIrisAndCiliaryBody",
|
|
40830
|
+
"VisualFieldDefects",
|
|
40831
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -176,4 +174,7 @@ class CardiacPacer(ValueSet):
|
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
|
|
179
|
-
__exports__ =
|
|
177
|
+
__exports__ = (
|
|
178
|
+
"CardiacPacer",
|
|
179
|
+
"FrailtyDevice",
|
|
180
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -4969,4 +4967,16 @@ class DexaDualEnergyXrayAbsorptiometry_BoneDensityForUrologyCare(ValueSet):
|
|
|
4969
4967
|
}
|
|
4970
4968
|
|
|
4971
4969
|
|
|
4972
|
-
__exports__ =
|
|
4970
|
+
__exports__ = (
|
|
4971
|
+
"BoneScan",
|
|
4972
|
+
"CtColonography",
|
|
4973
|
+
"CupToDiscRatio",
|
|
4974
|
+
"DexaDualEnergyXrayAbsorptiometry_BoneDensityForUrologyCare",
|
|
4975
|
+
"DiagnosticStudiesDuringPregnancy",
|
|
4976
|
+
"DxaDualEnergyXrayAbsorptiometryScan",
|
|
4977
|
+
"EjectionFraction",
|
|
4978
|
+
"MacularExam",
|
|
4979
|
+
"Mammography",
|
|
4980
|
+
"OpticDiscExamForStructuralAbnormalities",
|
|
4981
|
+
"XRayStudyAllInclusive",
|
|
4982
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -2566,4 +2564,61 @@ class HospitalServicesForUrologyCare(ValueSet):
|
|
|
2566
2564
|
}
|
|
2567
2565
|
|
|
2568
2566
|
|
|
2569
|
-
__exports__ =
|
|
2567
|
+
__exports__ = (
|
|
2568
|
+
"AcuteInpatient",
|
|
2569
|
+
"AnnualWellnessVisit",
|
|
2570
|
+
"AudiologyVisit",
|
|
2571
|
+
"BehavioralHealthFollowUpVisit",
|
|
2572
|
+
"BehavioralNeuropsychAssessment",
|
|
2573
|
+
"CareServicesInLongTermResidentialFacility",
|
|
2574
|
+
"ClinicalOralEvaluation",
|
|
2575
|
+
"ContactOrOfficeVisit",
|
|
2576
|
+
"DetoxificationVisit",
|
|
2577
|
+
"DischargeServicesHospitalInpatient",
|
|
2578
|
+
"DischargeServicesHospitalInpatientSameDayDischarge",
|
|
2579
|
+
"DischargeServicesNursingFacility",
|
|
2580
|
+
"EmergencyDepartmentVisit",
|
|
2581
|
+
"EncounterInfluenza",
|
|
2582
|
+
"EncounterInpatient",
|
|
2583
|
+
"EncounterToDocumentMedications",
|
|
2584
|
+
"EncounterToEvaluateBmi",
|
|
2585
|
+
"EncounterToScreenForBloodPressure",
|
|
2586
|
+
"EncounterToScreenForDepression",
|
|
2587
|
+
"EsrdMonthlyOutpatientServices",
|
|
2588
|
+
"FrailtyEncounter",
|
|
2589
|
+
"GroupPsychotherapy",
|
|
2590
|
+
"HomeHealthcareServices",
|
|
2591
|
+
"HospitalInpatientVisitInitial",
|
|
2592
|
+
"HospitalObservationCareInitial",
|
|
2593
|
+
"HospitalServicesForUrologyCare",
|
|
2594
|
+
"MedicalDisabilityExam",
|
|
2595
|
+
"NonacuteInpatient",
|
|
2596
|
+
"NursingFacilityVisit",
|
|
2597
|
+
"Observation",
|
|
2598
|
+
"OccupationalTherapyEvaluation",
|
|
2599
|
+
"OfficeVisit",
|
|
2600
|
+
"OnlineAssessments",
|
|
2601
|
+
"OphthalmologicalServices",
|
|
2602
|
+
"OphthalmologicServices",
|
|
2603
|
+
"Outpatient",
|
|
2604
|
+
"OutpatientConsultation",
|
|
2605
|
+
"OutpatientEncountersForPreventiveCare",
|
|
2606
|
+
"PalliativeCareEncounter",
|
|
2607
|
+
"PatientProviderInteraction",
|
|
2608
|
+
"PhysicalTherapyEvaluation",
|
|
2609
|
+
"PreventiveCare_EstablishedOfficeVisit_0To17",
|
|
2610
|
+
"PreventiveCareServices_InitialOfficeVisit_0To17",
|
|
2611
|
+
"PreventiveCareServicesEstablishedOfficeVisit_18AndUp",
|
|
2612
|
+
"PreventiveCareServicesGroupCounseling",
|
|
2613
|
+
"PreventiveCareServicesIndividualCounseling",
|
|
2614
|
+
"PreventiveCareServicesInitialOfficeVisit_18AndUp",
|
|
2615
|
+
"PreventiveCareServicesOther",
|
|
2616
|
+
"Psychoanalysis",
|
|
2617
|
+
"PsychotherapyAndPharmacologicManagement",
|
|
2618
|
+
"PsychVisitDiagnosticEvaluation",
|
|
2619
|
+
"PsychVisitFamilyPsychotherapy",
|
|
2620
|
+
"PsychVisitPsychotherapy",
|
|
2621
|
+
"SpeechAndHearingEvaluation",
|
|
2622
|
+
"TelehealthServices",
|
|
2623
|
+
"TelephoneVisits",
|
|
2624
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -343,4 +341,18 @@ class PneumococcalPolysaccharide23Vaccine(ValueSet):
|
|
|
343
341
|
}
|
|
344
342
|
|
|
345
343
|
|
|
346
|
-
__exports__ =
|
|
344
|
+
__exports__ = (
|
|
345
|
+
"DtapVaccine",
|
|
346
|
+
"HepatitisAVaccine",
|
|
347
|
+
"HepatitisBVaccine",
|
|
348
|
+
"HibVaccine3DoseSchedule",
|
|
349
|
+
"HibVaccine4DoseSchedule",
|
|
350
|
+
"InactivatedPolioVaccineIpv",
|
|
351
|
+
"InfluenzaVaccine",
|
|
352
|
+
"InfluenzaVirusLaivImmunization",
|
|
353
|
+
"Measles_MumpsAndRubellaMmrVaccine",
|
|
354
|
+
"PneumococcalConjugateVaccine",
|
|
355
|
+
"PneumococcalPolysaccharide23Vaccine",
|
|
356
|
+
"RotavirusVaccine3DoseSchedule",
|
|
357
|
+
"VaricellaZosterVaccineVzv",
|
|
358
|
+
)
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from canvas_sdk.value_set._utilities import get_overrides
|
|
2
|
-
|
|
3
1
|
from ..value_set import ValueSet
|
|
4
2
|
|
|
5
3
|
|
|
@@ -315,4 +313,11 @@ class White(ValueSet):
|
|
|
315
313
|
}
|
|
316
314
|
|
|
317
315
|
|
|
318
|
-
__exports__ =
|
|
316
|
+
__exports__ = (
|
|
317
|
+
"Ethnicity",
|
|
318
|
+
"Female",
|
|
319
|
+
"OncAdministrativeSex",
|
|
320
|
+
"Payer",
|
|
321
|
+
"Race",
|
|
322
|
+
"White",
|
|
323
|
+
)
|