canvas 0.15.0__py3-none-any.whl → 0.16.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.15.0.dist-info → canvas-0.16.0.dist-info}/METADATA +2 -2
- {canvas-0.15.0.dist-info → canvas-0.16.0.dist-info}/RECORD +46 -32
- canvas_cli/templates/plugins/application/{{ cookiecutter.__project_slug }}/CANVAS_MANIFEST.json +6 -3
- canvas_cli/templates/plugins/application/{{ cookiecutter.__project_slug }}/applications/my_application.py +4 -1
- canvas_cli/utils/validators/manifest_schema.py +9 -2
- canvas_generated/messages/effects_pb2.py +2 -2
- canvas_generated/messages/effects_pb2.pyi +14 -0
- canvas_generated/messages/events_pb2.py +2 -2
- canvas_generated/messages/events_pb2.pyi +40 -0
- canvas_sdk/effects/launch_modal.py +14 -3
- canvas_sdk/handlers/action_button.py +33 -16
- canvas_sdk/templates/__init__.py +3 -0
- canvas_sdk/templates/tests/__init__.py +0 -0
- canvas_sdk/templates/tests/test_utils.py +43 -0
- canvas_sdk/templates/utils.py +44 -0
- canvas_sdk/v1/data/__init__.py +23 -1
- canvas_sdk/v1/data/allergy_intolerance.py +22 -2
- canvas_sdk/v1/data/appointment.py +56 -0
- canvas_sdk/v1/data/assessment.py +40 -0
- canvas_sdk/v1/data/base.py +35 -22
- canvas_sdk/v1/data/billing.py +2 -2
- canvas_sdk/v1/data/care_team.py +60 -0
- canvas_sdk/v1/data/command.py +1 -1
- canvas_sdk/v1/data/common.py +53 -0
- canvas_sdk/v1/data/condition.py +19 -3
- canvas_sdk/v1/data/coverage.py +294 -0
- canvas_sdk/v1/data/detected_issue.py +1 -0
- canvas_sdk/v1/data/lab.py +26 -3
- canvas_sdk/v1/data/medication.py +13 -3
- canvas_sdk/v1/data/note.py +5 -1
- canvas_sdk/v1/data/observation.py +15 -3
- canvas_sdk/v1/data/patient.py +140 -1
- canvas_sdk/v1/data/protocol_override.py +18 -2
- canvas_sdk/v1/data/questionnaire.py +15 -2
- canvas_sdk/value_set/hcc2018.py +55369 -0
- plugin_runner/sandbox.py +28 -0
- plugin_runner/tests/fixtures/plugins/test_render_template/CANVAS_MANIFEST.json +47 -0
- plugin_runner/tests/fixtures/plugins/test_render_template/README.md +11 -0
- plugin_runner/tests/fixtures/plugins/test_render_template/protocols/__init__.py +0 -0
- plugin_runner/tests/fixtures/plugins/test_render_template/protocols/my_protocol.py +43 -0
- plugin_runner/tests/fixtures/plugins/test_render_template/templates/template.html +10 -0
- plugin_runner/tests/test_plugin_runner.py +0 -46
- plugin_runner/tests/test_sandbox.py +21 -1
- settings.py +10 -0
- {canvas-0.15.0.dist-info → canvas-0.16.0.dist-info}/WHEEL +0 -0
- {canvas-0.15.0.dist-info → canvas-0.16.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
from typing import cast
|
|
2
|
+
|
|
1
3
|
from django.db import models
|
|
2
4
|
|
|
3
|
-
from canvas_sdk.v1.data.base import
|
|
5
|
+
from canvas_sdk.v1.data.base import (
|
|
6
|
+
BaseModelManager,
|
|
7
|
+
BaseQuerySet,
|
|
8
|
+
CommittableQuerySetMixin,
|
|
9
|
+
ForPatientQuerySetMixin,
|
|
10
|
+
)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class IntervalUnit(models.TextChoices):
|
|
@@ -18,6 +25,15 @@ class Status(models.TextChoices):
|
|
|
18
25
|
INACTIVE = "inactive", "inactive"
|
|
19
26
|
|
|
20
27
|
|
|
28
|
+
class ProtocolOverrideQuerySet(BaseQuerySet, ForPatientQuerySetMixin, CommittableQuerySetMixin):
|
|
29
|
+
"""ProtocolOverrideQuerySet."""
|
|
30
|
+
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
ProtocolOverrideManager = BaseModelManager.from_queryset(ProtocolOverrideQuerySet)
|
|
35
|
+
|
|
36
|
+
|
|
21
37
|
class ProtocolOverride(models.Model):
|
|
22
38
|
"""ProtocolOverride."""
|
|
23
39
|
|
|
@@ -25,7 +41,7 @@ class ProtocolOverride(models.Model):
|
|
|
25
41
|
managed = False
|
|
26
42
|
db_table = "canvas_sdk_data_api_protocoloverride_001"
|
|
27
43
|
|
|
28
|
-
objects =
|
|
44
|
+
objects = cast(ProtocolOverrideQuerySet, ProtocolOverrideManager())
|
|
29
45
|
|
|
30
46
|
id = models.UUIDField()
|
|
31
47
|
dbid = models.BigIntegerField(primary_key=True)
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
from collections.abc import Container
|
|
2
|
+
from typing import cast
|
|
2
3
|
|
|
3
4
|
from django.db import models
|
|
4
5
|
from django.db.models import Q
|
|
5
6
|
|
|
6
7
|
from canvas_sdk.v1.data.base import (
|
|
7
|
-
|
|
8
|
+
BaseModelManager,
|
|
9
|
+
BaseQuerySet,
|
|
10
|
+
CommittableQuerySetMixin,
|
|
11
|
+
ForPatientQuerySetMixin,
|
|
8
12
|
ValueSetLookupByNameQuerySet,
|
|
9
13
|
)
|
|
10
14
|
|
|
@@ -123,6 +127,15 @@ class QuestionnaireQuestionMap(models.Model):
|
|
|
123
127
|
question = models.ForeignKey(Question, on_delete=models.DO_NOTHING, null=True)
|
|
124
128
|
|
|
125
129
|
|
|
130
|
+
class InterviewQuerySet(BaseQuerySet, ForPatientQuerySetMixin, CommittableQuerySetMixin):
|
|
131
|
+
"""InterviewQuerySet."""
|
|
132
|
+
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
InterviewManager = BaseModelManager.from_queryset(InterviewQuerySet)
|
|
137
|
+
|
|
138
|
+
|
|
126
139
|
class Interview(models.Model):
|
|
127
140
|
"""Interview."""
|
|
128
141
|
|
|
@@ -130,7 +143,7 @@ class Interview(models.Model):
|
|
|
130
143
|
managed = False
|
|
131
144
|
db_table = "canvas_sdk_data_api_interview_001"
|
|
132
145
|
|
|
133
|
-
objects =
|
|
146
|
+
objects = cast(InterviewQuerySet, InterviewManager())
|
|
134
147
|
|
|
135
148
|
id = models.UUIDField()
|
|
136
149
|
dbid = models.BigIntegerField(primary_key=True)
|